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