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