]>
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 \ |
1c7eb2b8 | 17 | AliGenExtFile.cxx AliGenScan.cxx AliGenPHOSlib.cxx \ |
014616eb | 18 | AliGenDoubleScan.cxx AliGenCocktailEntry.cxx \ |
34ae4501 | 19 | AliGenGSIlib.cxx \ |
56a10437 | 20 | AliGenHijing.cxx \ |
31e7c749 | 21 | AliGenEventHeader.cxx AliGenHijingEventHeader.cxx \ |
22 | AliDecayer.cxx AliDecayerPythia.cxx | |
fe4da5cc | 23 | # C++ Headers |
24 | ||
25 | HDRS = $(SRCS:.cxx=.h) EVGENLinkDef.h | |
26 | ||
27 | # Library dictionary | |
28 | ||
29 | DICT = EVGENCint.cxx | |
30 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 31 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 32 | |
33 | # FORTRAN Objectrs | |
34 | ||
4adb943a | 35 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 36 | |
37 | # C Objects | |
38 | ||
4adb943a | 39 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 40 | |
41 | # C++ Objects | |
42 | ||
4adb943a | 43 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 44 | |
45 | # C++ compilation flags | |
46 | ||
47 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
48 | ||
49 | # FORTRAN compilation flags | |
50 | ||
51 | FFLAGS = $(FOPT) | |
52 | ||
53 | ##### TARGETS ##### | |
54 | ||
55 | # Target | |
56 | ||
cb342460 | 57 | SLIBRARY = $(LIBDIR)/libEVGEN.$(SL) |
58 | ALIBRARY = $(LIBDIR)/libEVGEN.a | |
fe4da5cc | 59 | |
31ccd13b | 60 | default: $(SLIBRARY) |
fe4da5cc | 61 | |
cb342460 | 62 | $(LIBDIR)/libEVGEN.$(SL): $(OBJS) |
fe4da5cc | 63 | |
64 | $(DICT): $(HDRS) | |
65 | ||
66 | depend: $(SRCS) | |
67 | ||
e1006252 | 68 | HEADERS = AliPythia.h GenTypeDefs.h AliDecayer.h AliDecayerPythia.h |
50614497 | 69 | |
31e7c749 | 70 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc | 71 | |
e2fe4c02 | 72 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
73 | ||
fe4da5cc | 74 | ############################### General Macros ################################ |
75 | ||
76 | include $(ALICE_ROOT)/conf/GeneralMacros | |
77 | ||
78 | ############################ Dependencies ##################################### | |
79 | ||
1207d6f2 | 80 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 81 | |
41f6cf69 | 82 | |
83 | ||
84 | ||
85 | ||
86 | ||
87 |