Latest version
[u/mrichter/AliRoot.git] / GEODB / Makefile
CommitLineData
ab2f6604 1############################### GEODB Makefile ################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = GEODB
9
10# C++ sources
11
12SRCS = AliGBox.cxx AliGCone.cxx AliGConfig.cxx \
13 AliGMaterial.cxx AliGNode.cxx AliGShape.cxx AliGSphere.cxx \
14 AliGSuperShape.cxx AliGTransform.cxx AliGTube.cxx AliGPCone.cxx \
15 AliGTRD1.cxx AliGeometry.cxx AliGEODB.cxx
16
17
18# C++ Headers
19
20HDRS = $(SRCS:.cxx=.h) GEODBLinkDef.h
21
22# Library dictionary
23
24DICT = GEODBCint.cxx
25DICTH = $(DICT:.cxx=.h)
26DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
27
28# FORTRAN Objectrs
29
30FOBJS = $(FSRCS:.f=.o)
31
32# C Objects
33
34COBJS = $(CSRCS:.c=.o)
35
36# C++ Objects
37
38OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
39
40# C++ compilation flags
41
42CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
43
44# FORTRAN compilation flags
45
46FFLAGS = $(FOPT)
47
48##### TARGETS #####
49
50# Target
51
52SLIBRARY = $(LIBDIR)/libGEODB.$(SL)
53ALIBRARY = $(LIBDIR)/libGEODB.a
54
55default: $(SLIBRARY) headers
56
57$(LIBDIR)/libGEODB.$(SL): $(OBJS)
58
59$(DICT): $(HDRS)
60
61depend: $(SRCS)
62
63TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
64
e2fe4c02 65CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
66
ab2f6604 67############################### General Macros ################################
68
69include $(ALICE_ROOT)/conf/GeneralMacros
70
71############################ Dependencies #####################################
72
1207d6f2 73-include tgt_$(ALICE_TARGET)/Make-depend