]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### STEER 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 = STEER | |
9 | ||
10 | # C++ sources | |
11 | ||
2a33668d | 12 | SRCS = AliDetector.cxx AliHeader.cxx AliMagF.cxx \ |
13 | AliDigit.cxx AliHit.cxx AliPoints.cxx \ | |
14 | AliDisplay.cxx AliMC.cxx AliRun.cxx AliGenerator.cxx \ | |
15 | AliLego.cxx AliModule.cxx AliDigitNew.cxx \ | |
d9d543ab | 16 | AliGeometry.cxx AliRecPoint.cxx AliSegmentation.cxx \ |
aee8290b | 17 | AliHitMap.cxx AliMagFC.cxx AliMagFCM.cxx \ |
c5ca52b2 | 18 | AliMagFDM.cxx AliLegoGenerator.cxx AliLegoGeneratorXYZ.cxx\ |
65fb704d | 19 | AliLegoGeneratorEta.cxx AliRndm.cxx \ |
20 | AliKalmanTrack.cxx AliCluster.cxx \ | |
21 | AliMCQA.cxx | |
fe4da5cc | 22 | |
23 | # C++ Headers | |
24 | ||
65fb704d | 25 | HDRS = $(SRCS:.cxx=.h) AliPDG.h $(ROOTSYS)/include/TH2.h \ |
26 | $(ROOTSYS)/include/TRandom.h STEERLinkDef.h | |
fe4da5cc | 27 | |
28 | # Library dictionary | |
29 | ||
30 | DICT = STEERCint.cxx | |
31 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 32 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 33 | |
34 | # FORTRAN Objectrs | |
35 | ||
4adb943a | 36 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 37 | |
38 | # C Objects | |
39 | ||
4adb943a | 40 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 41 | |
42 | # C++ Objects | |
43 | ||
4adb943a | 44 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 45 | |
46 | # C++ compilation flags | |
47 | ||
48 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
49 | ||
50 | # FORTRAN compilation flags | |
51 | ||
52 | FFLAGS = $(FOPT) | |
53 | ||
54 | ##### TARGETS ##### | |
55 | ||
56 | # Target | |
57 | ||
cb342460 | 58 | SLIBRARY = $(LIBDIR)/libSTEER.$(SL) |
59 | ALIBRARY = $(LIBDIR)/lib/libSTEER.a | |
fe4da5cc | 60 | |
31ccd13b | 61 | default: $(SLIBRARY) |
fe4da5cc | 62 | |
cb342460 | 63 | $(LIBDIR)/libSTEER.$(SL): $(OBJS) |
fe4da5cc | 64 | |
65 | $(DICT): $(HDRS) | |
66 | ||
67 | depend: $(SRCS) | |
68 | ||
65fb704d | 69 | HEADERS = $(SRCS:.cxx=.h) AliPDG.h AliConst.h AliCallf77.h AliMCProcess.h |
fe4da5cc | 70 | |
71 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
72 | ||
94de3818 | 73 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
e2fe4c02 | 74 | |
fe4da5cc | 75 | ############################### General Macros ################################ |
76 | ||
77 | include $(ALICE_ROOT)/conf/GeneralMacros | |
78 | ||
79 | ############################ Dependencies ##################################### | |
80 | ||
1207d6f2 | 81 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 82 | |
83 | ||
84 | ||
85 | ||
86 | ||
87 | ||
88 |