]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### PYTHIA 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 = PYTHIA | |
9 | ||
10 | # C++ sources | |
11 | ||
12 | SRCS = | |
13 | ##### MACROS ##### | |
14 | ||
15 | FSRCS = $(filter-out %pdfset.F,$(filter-out %structm.F,$(wildcard pythia/*.F))) \ | |
16 | $(wildcard jetset/*.F) | |
17 | ||
18 | FOBJS = $(FSRCS:.F=.o) | |
19 | ||
20 | SRCS = $(FSRCS) | |
21 | OBJS = $(FOBJS) | |
22 | ||
23 | DSRCS = dummypythia.F | |
24 | ||
25 | DOBJS = $(DSRCS:.F=.o) | |
26 | ||
27 | # C++ compilation flags | |
28 | ||
29 | CXXFLAGS = $(CXXOPTS) $(CLIBCXXOPTS) $(CLIBDEFS) | |
30 | ||
31 | # C compilation flags | |
32 | ||
33 | CFLAGS = $(COPT) (CLIBCOPT) $(CLIBDEFS) | |
34 | ||
35 | # FORTRAN compilation flags | |
36 | ||
37 | FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) | |
38 | ||
39 | ##### TARGETS ##### | |
40 | ||
41 | # Target | |
42 | ||
43 | SLIBRARY = $(ALICE_ROOT)/lib/libpythia.$(SL) $(ALICE_ROOT)/lib/libdummypythia.$(SL) | |
44 | ALIBRARY = $(ALICE_ROOT)/lib/libpythia.a | |
45 | ||
46 | default: $(SLIBRARY) | |
47 | ||
48 | $(ALICE_ROOT)/lib/libpythia.$(SL): $(OBJS) | |
49 | $(ALICE_ROOT)/lib/libdummypythia.$(SL): $(DOBJS) | |
50 | ||
51 | depend: $(SRCS) $(DSRCS) | |
52 | ||
53 | TOCLEAN = $(OBJS) $(DOBJS) *Cint.cxx *Cint.h | |
54 | ||
55 | ############################### General Macros ################################ | |
56 | ||
57 | include $(ALICE_ROOT)/conf/GeneralMacros | |
58 | ||
59 | ############################ Dependencies ##################################### | |
60 | ||
61 | include Make-depend |