]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### STRUCT 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 = STRUCT | |
9 | ||
10 | # C++ sources | |
11 | ||
2b91d99e | 12 | SRCS = AliMAG.cxx AliABSO.cxx AliABSOv0.cxx \ |
fe4da5cc | 13 | AliDIPO.cxx AliDIPOv1.cxx AliDIPOv2.cxx \ |
14 | AliFRAME.cxx AliFRAMEv0.cxx AliFRAMEv1.cxx \ | |
2b91d99e | 15 | AliHALL.cxx AliSHIL.cxx AliSHILv0.cxx \ |
fe4da5cc | 16 | AliPIPE.cxx AliPIPEv0.cxx AliPIPEv1.cxx \ |
77289c85 | 17 | AliPIPEv3.cxx AliBODY.cxx |
fe4da5cc | 18 | |
19 | # C++ Headers | |
20 | ||
21 | HDRS = $(SRCS:.cxx=.h) STRUCTLinkDef.h | |
22 | ||
23 | # Library dictionary | |
24 | ||
25 | DICT = STRUCTCint.cxx | |
26 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 27 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 28 | |
29 | # FORTRAN Objectrs | |
30 | ||
4adb943a | 31 | FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 32 | |
33 | # C Objects | |
34 | ||
4adb943a | 35 | COBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 36 | |
37 | # C++ Objects | |
38 | ||
4adb943a | 39 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 40 | |
41 | # C++ compilation flags | |
42 | ||
43 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
44 | ||
45 | # FORTRAN compilation flags | |
46 | ||
47 | FFLAGS = $(FOPT) | |
48 | ||
49 | ##### TARGETS ##### | |
50 | ||
51 | # Target | |
52 | ||
cb342460 | 53 | SLIBRARY = $(LIBDIR)/libSTRUCT.$(SL) |
54 | ALIBRARY = $(LIBDIR)/libSTRUCT.a | |
fe4da5cc | 55 | |
56 | default: $(SLIBRARY) | |
57 | ||
cb342460 | 58 | $(LIBDIR)/libSTRUCT.$(SL): $(OBJS) |
fe4da5cc | 59 | |
60 | $(DICT): $(HDRS) | |
61 | ||
62 | depend: $(SRCS) | |
63 | ||
64 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
65 | ||
e2fe4c02 | 66 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
67 | ||
fe4da5cc | 68 | ############################### General Macros ################################ |
69 | ||
70 | include $(ALICE_ROOT)/conf/GeneralMacros | |
71 | ||
72 | ############################ Dependencies ##################################### | |
73 | ||
1207d6f2 | 74 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 75 | |
41f6cf69 | 76 | |
77 | ||
78 | ||
79 | ||
80 | ||
81 |