]>
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 | ||
cb342460 | 18 | FOBJS = $(patsubst %.F,$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 19 | |
20 | SRCS = $(FSRCS) | |
21 | OBJS = $(FOBJS) | |
22 | ||
23 | DSRCS = dummypythia.F | |
24 | ||
cb342460 | 25 | DOBJS = $(patsubst %.F,$(ALICE_TARGET)/%.o,$(DSRCS)) |
fe4da5cc | 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 | ||
cb342460 | 43 | SLIBRARY = $(LIBDIR)/libpythia.$(SL) $(LIBDIR)/libdummypythia.$(SL) |
44 | ALIBRARY = $(LIBDIR)/libpythia.a | |
fe4da5cc | 45 | |
46 | default: $(SLIBRARY) | |
47 | ||
cb342460 | 48 | $(LIBDIR)/libpythia.$(SL): $(OBJS) |
49 | $(LIBDIR)/libdummypythia.$(SL): $(DOBJS) | |
fe4da5cc | 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 | ||
9f84158c | 61 | -include Make-depend |