]>
Commit | Line | Data |
---|---|---|
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 = HIJING | |
9 | ||
10 | # C++ sources | |
11 | ||
12 | SRCS = | |
13 | ##### MACROS ##### | |
14 | ||
15 | FSRCS := $(wildcard hipyset1_35/*.F) $(wildcard hijing1_36/*.F) | |
16 | FSRCS := $(filter-out %rluget_hijing.F,$(FSRCS)) | |
17 | FSRCS := $(filter-out %rluset_hijing.F,$(FSRCS)) | |
18 | FSRCS := $(filter-out %rlu_hijing.F,$(FSRCS)) | |
19 | ||
20 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) | |
21 | ||
22 | SRCS = $(FSRCS) | |
23 | OBJS = $(FOBJS) | |
24 | ||
25 | DSRCS = dummyhijing.F | |
26 | ||
27 | DOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) | |
28 | ||
29 | # C++ compilation flags | |
30 | ||
31 | CXXFLAGS = $(CXXOPTS) $(CLIBCXXOPTS) $(CLIBDEFS) | |
32 | ||
33 | # C compilation flags | |
34 | ||
35 | CFLAGS = $(COPT) (CLIBCOPT) $(CLIBDEFS) | |
36 | ||
37 | # FORTRAN compilation flags | |
38 | FOPTH = -g -fno-second-underscore | |
39 | FFLAGS = $(FOPTH) $(CLIBFOPT) $(CLIBDEFS) -Ihijing | |
40 | ||
41 | ##### TARGETS ##### | |
42 | ||
43 | # Target | |
44 | ||
45 | SLIBRARY = $(LIBDIR)/libhijing.$(SL) $(LIBDIR)/libdummyhijing.$(SL) | |
46 | ALIBRARY = $(LIBDIR)/libhijing.a | |
47 | ||
48 | default: $(SLIBRARY) | |
49 | ||
50 | $(LIBDIR)/libhijing.$(SL): $(OBJS) | |
51 | $(LIBDIR)/libdummyhijing.$(SL): $(DOBJS) | |
52 | ||
53 | depend: $(SRCS) $(DSRCS) | |
54 | ||
55 | TOCLEAN = $(OBJS) $(DOBJS) *Cint.cxx *Cint.h | |
56 | ||
57 | DEPINC += -Ihijing | |
58 | ||
59 | ############################### General Macros ################################ | |
60 | ||
61 | include $(ALICE_ROOT)/conf/GeneralMacros | |
62 | ||
63 | ############################ Dependencies ##################################### | |
64 | ||
65 | -include tgt_$(ALICE_TARGET)/Make-depend | |
66 |