]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### EVGEN 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 = EVGEN | |
9 | ||
10 | # C++ sources | |
11 | ||
8828a23e | 12 | SRCS = AliGenHIJINGpara.cxx AliGenBox.cxx AliGenFixed.cxx \ |
13 | AliGenCocktail.cxx AliGenFLUKAsource.cxx \ | |
b22ee262 | 14 | AliGenLib.cxx \ |
fe4da5cc | 15 | AliGenMUONlib.cxx AliGenParam.cxx AliGenPythia.cxx \ |
dafbc1c5 | 16 | AliPythia.cxx AliDimuCombinator.cxx AliGenHalo.cxx \ |
14ab5373 | 17 | AliGenHaloProtvino.cxx \ |
1c7eb2b8 | 18 | AliGenExtFile.cxx AliGenScan.cxx AliGenPHOSlib.cxx \ |
014616eb | 19 | AliGenDoubleScan.cxx AliGenCocktailEntry.cxx \ |
cf8b45f4 | 20 | AliGenGSIlib.cxx AliGenPMDlib.cxx\ |
56a10437 | 21 | AliGenHijing.cxx \ |
c0ac61ca | 22 | AliGenHijingEventHeader.cxx AliGenPythiaEventHeader.cxx \ |
4005df34 | 23 | AliDecayer.cxx AliDecayerPythia.cxx \ |
e36044d6 | 24 | AliGenMevSim.cxx AliMevSimParticle.cxx AliMevSimConfig.cxx \ |
2b9786f4 | 25 | AliGenMC.cxx AliGenCocktailAfterBurner.cxx \ |
26 | AliGenHBTprocessor.cxx | |
fe4da5cc | 27 | # C++ Headers |
28 | ||
65fb704d | 29 | HDRS = $(SRCS:.cxx=.h) $(ALICE_ROOT)/include/THijing.h \ |
30 | $(ROOTSYS)/include/TF1.h $(ROOTSYS)/include/TChain.h \ | |
ced9217f | 31 | $(ROOTSYS)/include/TParticle.h \ |
65fb704d | 32 | EVGENLinkDef.h |
fe4da5cc | 33 | |
34 | # Library dictionary | |
35 | ||
36 | DICT = EVGENCint.cxx | |
ced9217f | 37 | DICTH = $(DICT:.cxx=.h) |
4adb943a | 38 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 39 | |
40 | # FORTRAN Objectrs | |
41 | ||
4adb943a | 42 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 43 | |
44 | # C Objects | |
45 | ||
4adb943a | 46 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 47 | |
48 | # C++ Objects | |
49 | ||
4adb943a | 50 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 51 | |
52 | # C++ compilation flags | |
53 | ||
9e1a0ddb | 54 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TMevSim -I. |
fe4da5cc | 55 | |
56 | # FORTRAN compilation flags | |
57 | ||
58 | FFLAGS = $(FOPT) | |
59 | ||
60 | ##### TARGETS ##### | |
61 | ||
62 | # Target | |
63 | ||
cb342460 | 64 | SLIBRARY = $(LIBDIR)/libEVGEN.$(SL) |
65 | ALIBRARY = $(LIBDIR)/libEVGEN.a | |
fe4da5cc | 66 | |
31ccd13b | 67 | default: $(SLIBRARY) |
fe4da5cc | 68 | |
cb342460 | 69 | $(LIBDIR)/libEVGEN.$(SL): $(OBJS) |
fe4da5cc | 70 | |
71 | $(DICT): $(HDRS) | |
72 | ||
73 | depend: $(SRCS) | |
74 | ||
a5599301 | 75 | HEADERS = AliPythia.h AliDecayer.h AliDecayerPythia.h AliGenHijingEventHeader.h |
50614497 | 76 | |
31e7c749 | 77 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc | 78 | |
e2fe4c02 | 79 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
80 | ||
fe4da5cc | 81 | ############################### General Macros ################################ |
82 | ||
83 | include $(ALICE_ROOT)/conf/GeneralMacros | |
84 | ||
85 | ############################ Dependencies ##################################### | |
86 | ||
1207d6f2 | 87 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 88 | |
41f6cf69 | 89 | |
90 | ||
91 | ||
92 | ||
93 | ||
94 |