Make coherent ROOTLIBS definition
[u/mrichter/AliRoot.git] / PYTHIA6 / Makefile
CommitLineData
952cc209 1############################### PYTHIA6 Makefile ###############################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = PYTHIA6
9
10
11# C sources
12
13CSRCS = main.c pythia6_address.c
14
15
16# C Objects
17
18COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
19
20##### MACROS #####
21
119b1766 22FSRCS = pythia6150.F pythia6_common_block_address.F pdf_alice.F \
23 openDecayTable.F \
952cc209 24 tpythia6_called_from_cc.F
25
26FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
27
28SRCS = $(FSRCS) $(CSRCS)
29OBJS = $(FOBJS) $(COBJS)
30
31DSRCS = dummypythia6.F
32
33DOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(DSRCS))
34
35# C++ compilation flags
36
37CXXFLAGS = $(CXXOPTS) $(CLIBCXXOPTS) $(CLIBDEFS)
38
39# C compilation flags
40
41CFLAGS = $(COPT) $(CLIBCOPT) $(CLIBDEFS)
42
43# FORTRAN compilation flags
44
45FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS)
46
47##### TARGETS #####
48
49# Target
50
51SLIBRARY = $(LIBDIR)/libpythia6.$(SL) $(LIBDIR)/libdummypythia6.$(SL)
52ALIBRARY = $(LIBDIR)/libpythia6.a
53
54default: $(SLIBRARY)
55
56$(LIBDIR)/libpythia6.$(SL): $(OBJS)
57$(LIBDIR)/libdummypythia6.$(SL): $(DOBJS)
58
59depend: $(CSRCS) $(DSRCS)
60
61TOCLEAN = $(OBJS) $(DOBJS) *Cint.cxx *Cint.h
62
63############################### General Macros ################################
64
65include $(ALICE_ROOT)/conf/GeneralMacros
66
67############################ Dependencies #####################################
68
69-include tgt_$(ALICE_TARGET)/Make-depend
70
71