]>
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 \ |
22 | AliTPCTrackHits.cxx | |
cc80f89e | 23 | |
fe4da5cc | 24 | |
25 | # C++ Headers | |
26 | ||
cc80f89e | 27 | HDRS = $(SRCS:.cxx=.h) TPCLinkDef.h |
fe4da5cc | 28 | |
29 | # Library dictionary | |
30 | ||
31 | DICT = TPCCint.cxx | |
32 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 33 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 34 | |
35 | # FORTRAN Objectrs | |
36 | ||
37 | FOBJS = $(FSRCS:.f=.o) | |
38 | ||
39 | # C Objects | |
40 | ||
41 | COBJS = $(CSRCS:.c=.o) | |
42 | ||
43 | # C++ Objects | |
44 | ||
4adb943a | 45 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 46 | |
47 | # C++ compilation flags | |
48 | ||
cf98c13f | 49 | CXXFLAGS = $(CXXOPTS) -g -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \ |
50 | -I$(ALICE_ROOT)/CONTAINERS | |
fe4da5cc | 51 | |
52 | # FORTRAN compilation flags | |
53 | ||
54 | FFLAGS = $(FOPT) | |
55 | ||
cc80f89e | 56 | ##### TARGETS ####### |
fe4da5cc | 57 | |
58 | # Target | |
59 | ||
cb342460 | 60 | SLIBRARY = $(LIBDIR)/libTPC.$(SL) |
cf98c13f | 61 | ALIBRARY = $(LIBDIR)/static/libTPC.a |
fe4da5cc | 62 | |
cf98c13f | 63 | default: $(SLIBRARY) |
fe4da5cc | 64 | |
cb342460 | 65 | $(LIBDIR)/libTPC.$(SL): $(OBJS) |
cf98c13f | 66 | $(LIBDIR)/static/libTPC.a: $(OBJS) |
fe4da5cc | 67 | |
68 | $(DICT): $(HDRS) | |
69 | ||
70 | depend: $(SRCS) | |
71 | ||
72 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx | |
73 | ||
e2fe4c02 | 74 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
75 | ||
fe4da5cc | 76 | ############################### General Macros ################################ |
77 | ||
78 | include $(ALICE_ROOT)/conf/GeneralMacros | |
79 | ||
80 | ############################ Dependencies ##################################### | |
81 | ||
e2fe4c02 | 82 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 83 | |
73042f01 | 84 | check : $(CHECKS) |
41f6cf69 | 85 |