]>
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 \ |
87f8f72e | 20 | AliGenGSIlib.cxx AliGenPMDlib.cxx AliGenSTRANGElib.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 \ |
7abc54a0 | 26 | AliGenHBTprocessor.cxx \ |
27 | AliGenReader.cxx AliGenReaderCwn.cxx AliGenReaderTreeK.cxx | |
fe4da5cc | 28 | # C++ Headers |
29 | ||
65fb704d | 30 | HDRS = $(SRCS:.cxx=.h) $(ALICE_ROOT)/include/THijing.h \ |
31 | $(ROOTSYS)/include/TF1.h $(ROOTSYS)/include/TChain.h \ | |
ced9217f | 32 | $(ROOTSYS)/include/TParticle.h \ |
65fb704d | 33 | EVGENLinkDef.h |
fe4da5cc | 34 | |
35 | # Library dictionary | |
36 | ||
37 | DICT = EVGENCint.cxx | |
ced9217f | 38 | DICTH = $(DICT:.cxx=.h) |
4adb943a | 39 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 40 | |
41 | # FORTRAN Objectrs | |
42 | ||
4adb943a | 43 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 44 | |
45 | # C Objects | |
46 | ||
4adb943a | 47 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 48 | |
49 | # C++ Objects | |
50 | ||
4adb943a | 51 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 52 | |
53 | # C++ compilation flags | |
54 | ||
9e1a0ddb | 55 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TMevSim -I. |
fe4da5cc | 56 | |
57 | # FORTRAN compilation flags | |
58 | ||
59 | FFLAGS = $(FOPT) | |
60 | ||
61 | ##### TARGETS ##### | |
62 | ||
63 | # Target | |
64 | ||
cb342460 | 65 | SLIBRARY = $(LIBDIR)/libEVGEN.$(SL) |
66 | ALIBRARY = $(LIBDIR)/libEVGEN.a | |
fe4da5cc | 67 | |
31ccd13b | 68 | default: $(SLIBRARY) |
fe4da5cc | 69 | |
cb342460 | 70 | $(LIBDIR)/libEVGEN.$(SL): $(OBJS) |
fe4da5cc | 71 | |
72 | $(DICT): $(HDRS) | |
73 | ||
74 | depend: $(SRCS) | |
75 | ||
a5599301 | 76 | HEADERS = AliPythia.h AliDecayer.h AliDecayerPythia.h AliGenHijingEventHeader.h |
50614497 | 77 | |
31e7c749 | 78 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc | 79 | |
e2fe4c02 | 80 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
81 | ||
fe4da5cc | 82 | ############################### General Macros ################################ |
83 | ||
84 | include $(ALICE_ROOT)/conf/GeneralMacros | |
85 | ||
86 | ############################ Dependencies ##################################### | |
87 | ||
1207d6f2 | 88 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 89 | |
41f6cf69 | 90 | |
91 | ||
92 | ||
93 | ||
94 | ||
95 |