]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### TPC 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 = TPC | |
9 | ||
10 | # C++ sources | |
11 | ||
8c555625 | 12 | SRCS = AliTPC.cxx AliTPCv0.cxx AliTPCv1.cxx AliTPCv2.cxx \ |
4b0fdcad | 13 | AliTPCD.cxx AliTPCPRF2D.cxx AliTPCRF1D.cxx AliTPCParam.cxx \ |
14 | AliTPCv3.cxx | |
fe4da5cc | 15 | |
16 | # C++ Headers | |
17 | ||
18 | HDRS = $(SRCS:.cxx=.h) AliTPCSecGeo.h TPCLinkDef.h | |
19 | ||
20 | # Library dictionary | |
21 | ||
22 | DICT = TPCCint.cxx | |
23 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 24 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 25 | |
26 | # FORTRAN Objectrs | |
27 | ||
28 | FOBJS = $(FSRCS:.f=.o) | |
29 | ||
30 | # C Objects | |
31 | ||
32 | COBJS = $(CSRCS:.c=.o) | |
33 | ||
34 | # C++ Objects | |
35 | ||
4adb943a | 36 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 37 | |
38 | # C++ compilation flags | |
39 | ||
40 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
41 | ||
42 | # FORTRAN compilation flags | |
43 | ||
44 | FFLAGS = $(FOPT) | |
45 | ||
46 | ##### TARGETS ##### | |
47 | ||
48 | # Target | |
49 | ||
cb342460 | 50 | SLIBRARY = $(LIBDIR)/libTPC.$(SL) |
fe4da5cc | 51 | |
52 | default: $(SLIBRARY) | |
53 | ||
cb342460 | 54 | $(LIBDIR)/libTPC.$(SL): $(OBJS) |
fe4da5cc | 55 | |
56 | $(DICT): $(HDRS) | |
57 | ||
58 | depend: $(SRCS) | |
59 | ||
60 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx | |
61 | ||
62 | ############################### General Macros ################################ | |
63 | ||
64 | include $(ALICE_ROOT)/conf/GeneralMacros | |
65 | ||
66 | ############################ Dependencies ##################################### | |
67 | ||
1207d6f2 | 68 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 69 | |
70 | ### Target check creates violation reports (.viol), which depend on | |
71 | ### stripped files (.ii), which in turn depend on preprocessed | |
72 | ### files (.i). Dependences are in conf/GeneralDef. | |
73 | ||
74 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
75 | ||
76 | check: $(CHECKS) | |
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 |