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