]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### PHOS 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 = PHOS | |
9 | ||
10 | # C++ sources | |
11 | ||
d15a28e7 | 12 | SRCS = AliPHOS.cxx AliPHOSv0.cxx AliPHOSHit.cxx \ |
13 | AliPHOSGeometry.cxx \ | |
14 | AliPHOSDigit.cxx \ | |
15 | AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx AliPHOSPpsdRecPoint.cxx \ | |
16 | AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx AliPHOSLink.cxx \ | |
17 | AliPHOSReconstructioner.cxx AliPHOSTrackSegment.cxx \ | |
9f616d61 | 18 | AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx ReconstructionTest.cxx PHOSHistos.cxx |
d15a28e7 | 19 | |
fe4da5cc | 20 | |
21 | # C++ Headers | |
22 | ||
23 | HDRS = $(SRCS:.cxx=.h) PHOSLinkDef.h | |
24 | ||
25 | # Library dictionary | |
26 | ||
27 | DICT = PHOSCint.cxx | |
28 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 29 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 30 | |
fe4da5cc | 31 | # C++ Objects |
32 | ||
4adb943a | 33 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 34 | |
35 | # C++ compilation flags | |
36 | ||
37 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
fe4da5cc | 38 | |
d15a28e7 | 39 | ALSRCS = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c |
fe4da5cc | 40 | |
d15a28e7 | 41 | ALOBJS = $(SHOBJS) $(RCOBJS) $(DUOBJS) |
fe4da5cc | 42 | |
43 | ##### COMMANDS ##### | |
44 | ||
52005fc3 | 45 | SLIBRARY = $(LIBDIR)/libPHOS.$(SL) |
fe4da5cc | 46 | |
47 | default: $(SLIBRARY) | |
48 | ||
cb342460 | 49 | $(LIBDIR)/libPHOS.$(SL): $(OBJS) $(FOBJS) |
fe4da5cc | 50 | |
51 | $(DICT): $(HDRS) | |
52 | ||
52005fc3 | 53 | depend: $(SRCS) |
fe4da5cc | 54 | |
d15a28e7 | 55 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc | 56 | |
57 | ############################### General Macros ################################ | |
58 | ||
59 | include $(ALICE_ROOT)/conf/GeneralMacros | |
60 | ||
61 | ############################ Dependencies ##################################### | |
62 | ||
1207d6f2 | 63 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 64 | |
65 | ### Target check creates violation reports (.viol), which depend on | |
66 | ### stripped files (.ii), which in turn depend on preprocessed | |
67 | ### files (.i). Dependences are in conf/GeneralDef. | |
68 | ||
69 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
70 | ||
71 | check: $(CHECKS) | |
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 |