]>
Commit | Line | Data |
---|---|---|
73042f01 | 1 | ############################## TPC Makefile ################################## |
fe4da5cc | 2 | |
3 | # Include machine specific definitions | |
4 | ||
5 | include $(ALICE_ROOT)/conf/GeneralDef | |
6 | include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET) | |
7 | ||
8 | PACKAGE = TPC | |
9 | ||
10 | # C++ sources | |
11 | ||
cf98c13f | 12 | SRCS = AliTPCClusterFinder.cxx AliTPC.cxx AliTPCv0.cxx AliTPCv1.cxx AliTPCv2.cxx \ |
cc80f89e | 13 | AliTPCv3.cxx AliDetectorParam.cxx AliTPCParam.cxx \ |
14 | AliTPCParamSR.cxx AliTPCParamCR.cxx AliTPCPRF2D.cxx \ | |
cf98c13f | 15 | AliTPCRF1D.cxx \ |
cc80f89e | 16 | AliSimDigits.cxx AliDigitsArray.cxx AliTPCDigitsArray.cxx \ |
fa562da6 | 17 | AliComplexCluster.cxx AliClusters.cxx AliClustersArray.cxx \ |
73042f01 | 18 | AliTPCClustersRow.cxx \ |
19 | AliTPCClustersArray.cxx AliH2F.cxx \ | |
20 | AliTPCcluster.cxx AliTPCclusterer.cxx \ | |
cf98c13f | 21 | AliTPCtrack.cxx AliTPCtracker.cxx \ |
defdcccf | 22 | AliTPCTrackHits.cxx AliTPCDigitizer.cxx \ |
d952e289 | 23 | AliTPCTrackHitsV2.cxx AliTPCtrackerParam.cxx \ |
24 | AliTPCkineGrid.cxx | |
cc80f89e | 25 | |
fe4da5cc | 26 | |
27 | # C++ Headers | |
28 | ||
cc80f89e | 29 | HDRS = $(SRCS:.cxx=.h) TPCLinkDef.h |
fe4da5cc | 30 | |
31 | # Library dictionary | |
32 | ||
33 | DICT = TPCCint.cxx | |
34 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 35 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 36 | |
37 | # FORTRAN Objectrs | |
38 | ||
39 | FOBJS = $(FSRCS:.f=.o) | |
40 | ||
41 | # C Objects | |
42 | ||
43 | COBJS = $(CSRCS:.c=.o) | |
44 | ||
45 | # C++ Objects | |
46 | ||
4adb943a | 47 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 48 | |
49 | # C++ compilation flags | |
50 | ||
cf98c13f | 51 | CXXFLAGS = $(CXXOPTS) -g -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \ |
52 | -I$(ALICE_ROOT)/CONTAINERS | |
fe4da5cc | 53 | |
54 | # FORTRAN compilation flags | |
55 | ||
56 | FFLAGS = $(FOPT) | |
57 | ||
cc80f89e | 58 | ##### TARGETS ####### |
fe4da5cc | 59 | |
60 | # Target | |
61 | ||
cb342460 | 62 | SLIBRARY = $(LIBDIR)/libTPC.$(SL) |
cf98c13f | 63 | ALIBRARY = $(LIBDIR)/static/libTPC.a |
fe4da5cc | 64 | |
cf98c13f | 65 | default: $(SLIBRARY) |
fe4da5cc | 66 | |
cb342460 | 67 | $(LIBDIR)/libTPC.$(SL): $(OBJS) |
cf98c13f | 68 | $(LIBDIR)/static/libTPC.a: $(OBJS) |
fe4da5cc | 69 | |
70 | $(DICT): $(HDRS) | |
71 | ||
72 | depend: $(SRCS) | |
73 | ||
74 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx | |
75 | ||
e2fe4c02 | 76 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
77 | ||
fe4da5cc | 78 | ############################### General Macros ################################ |
79 | ||
80 | include $(ALICE_ROOT)/conf/GeneralMacros | |
81 | ||
82 | ############################ Dependencies ##################################### | |
83 | ||
e2fe4c02 | 84 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 85 | |
73042f01 | 86 | check : $(CHECKS) |
41f6cf69 | 87 |