Add all subroutines, functions and common blocks used by THijing
[u/mrichter/AliRoot.git] / HIJING / Makefile
CommitLineData
e74335a4 1############################### PYTHIA Makefile ###############################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = HIJING
9
10# C++ sources
11
12SRCS =
13##### MACROS #####
14
65fb704d 15FSRCS := $(wildcard hipyset1_35/*.F) $(wildcard hijing1_36/*.F)
16FSRCS := $(filter-out %rluget_hijing.F,$(FSRCS))
17FSRCS := $(filter-out %rluset_hijing.F,$(FSRCS))
18FSRCS := $(filter-out %rlu_hijing.F,$(FSRCS))
e74335a4 19
20FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
21
22SRCS = $(FSRCS)
23OBJS = $(FOBJS)
24
25DSRCS = dummyhijing.F
26
27DOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(DSRCS))
28
29# C++ compilation flags
30
31CXXFLAGS = $(CXXOPTS) $(CLIBCXXOPTS) $(CLIBDEFS)
32
33# C compilation flags
34
35CFLAGS = $(COPT) (CLIBCOPT) $(CLIBDEFS)
36
37# FORTRAN compilation flags
38
e74335a4 39FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) -Ihijing
40
41##### TARGETS #####
42
43# Target
44
45SLIBRARY = $(LIBDIR)/libhijing.$(SL) $(LIBDIR)/libdummyhijing.$(SL)
46ALIBRARY = $(LIBDIR)/libhijing.a
47
48default: $(SLIBRARY)
49
50$(LIBDIR)/libhijing.$(SL): $(OBJS)
51$(LIBDIR)/libdummyhijing.$(SL): $(DOBJS)
52
53depend: $(SRCS) $(DSRCS)
54
55TOCLEAN = $(OBJS) $(DOBJS) *Cint.cxx *Cint.h
56
078c34cb 57DEPINC += -Ihijing
58
e74335a4 59############################### General Macros ################################
60
61include $(ALICE_ROOT)/conf/GeneralMacros
62
63############################ Dependencies #####################################
64
65-include tgt_$(ALICE_TARGET)/Make-depend
66