]>
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 | ||
12 | SRCS = AliSimpleGen.cxx AliGenCocktail.cxx AliGenFLUKAsource.cxx \ | |
13 | AliGenMUONlib.cxx AliGenParam.cxx AliGenPythia.cxx \ | |
dafbc1c5 | 14 | AliPythia.cxx AliDimuCombinator.cxx AliGenHalo.cxx \ |
1c7eb2b8 | 15 | AliGenExtFile.cxx AliGenScan.cxx AliGenPHOSlib.cxx \ |
16 | AliGenDoubleScan.cxx | |
fe4da5cc | 17 | # C++ Headers |
18 | ||
19 | HDRS = $(SRCS:.cxx=.h) EVGENLinkDef.h | |
20 | ||
21 | # Library dictionary | |
22 | ||
23 | DICT = EVGENCint.cxx | |
24 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 25 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 26 | |
27 | # FORTRAN Objectrs | |
28 | ||
4adb943a | 29 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 30 | |
31 | # C Objects | |
32 | ||
4adb943a | 33 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 34 | |
35 | # C++ Objects | |
36 | ||
4adb943a | 37 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 38 | |
39 | # C++ compilation flags | |
40 | ||
41 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
42 | ||
43 | # FORTRAN compilation flags | |
44 | ||
45 | FFLAGS = $(FOPT) | |
46 | ||
47 | ##### TARGETS ##### | |
48 | ||
49 | # Target | |
50 | ||
cb342460 | 51 | SLIBRARY = $(LIBDIR)/libEVGEN.$(SL) |
52 | ALIBRARY = $(LIBDIR)/libEVGEN.a | |
fe4da5cc | 53 | |
31ccd13b | 54 | default: $(SLIBRARY) |
fe4da5cc | 55 | |
cb342460 | 56 | $(LIBDIR)/libEVGEN.$(SL): $(OBJS) |
fe4da5cc | 57 | |
58 | $(DICT): $(HDRS) | |
59 | ||
60 | depend: $(SRCS) | |
61 | ||
62 | HEADERS = $(filter-out %LinkDef.h,$(HDRS)) | |
63 | ||
64 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
65 | ||
66 | ############################### General Macros ################################ | |
67 | ||
68 | include $(ALICE_ROOT)/conf/GeneralMacros | |
69 | ||
70 | ############################ Dependencies ##################################### | |
71 | ||
1207d6f2 | 72 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 73 | |
74 | ### Target check creates violation reports (.viol), which depend on | |
75 | ### stripped files (.ii), which in turn depend on preprocessed | |
76 | ### files (.i). Dependences are in conf/GeneralDef. | |
77 | ||
78 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
79 | ||
80 | check: $(CHECKS) | |
81 | ||
82 | ||
83 | ||
84 | ||
85 | ||
86 | ||
87 |