]>
Commit | Line | Data |
---|---|---|
ab2f6604 | 1 | ############################### GEODB Makefile ################################ |
2 | ||
3 | # Include machine specific definitions | |
4 | ||
5 | include $(ALICE_ROOT)/conf/GeneralDef | |
6 | include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET) | |
7 | ||
8 | PACKAGE = GEODB | |
9 | ||
10 | # C++ sources | |
11 | ||
12 | SRCS = 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 | ||
20 | HDRS = $(SRCS:.cxx=.h) GEODBLinkDef.h | |
21 | ||
22 | # Library dictionary | |
23 | ||
24 | DICT = GEODBCint.cxx | |
25 | DICTH = $(DICT:.cxx=.h) | |
26 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) | |
27 | ||
28 | # FORTRAN Objectrs | |
29 | ||
30 | FOBJS = $(FSRCS:.f=.o) | |
31 | ||
32 | # C Objects | |
33 | ||
34 | COBJS = $(CSRCS:.c=.o) | |
35 | ||
36 | # C++ Objects | |
37 | ||
38 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) | |
39 | ||
40 | # C++ compilation flags | |
41 | ||
42 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
43 | ||
44 | # FORTRAN compilation flags | |
45 | ||
46 | FFLAGS = $(FOPT) | |
47 | ||
48 | ##### TARGETS ##### | |
49 | ||
50 | # Target | |
51 | ||
52 | SLIBRARY = $(LIBDIR)/libGEODB.$(SL) | |
53 | ALIBRARY = $(LIBDIR)/libGEODB.a | |
54 | ||
55 | default: $(SLIBRARY) headers | |
56 | ||
57 | $(LIBDIR)/libGEODB.$(SL): $(OBJS) | |
58 | ||
59 | $(DICT): $(HDRS) | |
60 | ||
61 | depend: $(SRCS) | |
62 | ||
63 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
64 | ||
e2fe4c02 | 65 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
66 | ||
ab2f6604 | 67 | ############################### General Macros ################################ |
68 | ||
69 | include $(ALICE_ROOT)/conf/GeneralMacros | |
70 | ||
71 | ############################ Dependencies ##################################### | |
72 | ||
1207d6f2 | 73 | -include tgt_$(ALICE_TARGET)/Make-depend |