Use tgt_ prefix for binary target directories
[u/mrichter/AliRoot.git] / PYTHIA / Makefile
CommitLineData
fe4da5cc 1############################### PYTHIA Makefile ###############################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = PYTHIA
9
10# C++ sources
11
12SRCS =
13##### MACROS #####
14
15FSRCS = $(filter-out %pdfset.F,$(filter-out %structm.F,$(wildcard pythia/*.F))) \
16 $(wildcard jetset/*.F)
17
4adb943a 18FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 19
20SRCS = $(FSRCS)
21OBJS = $(FOBJS)
22
23DSRCS = dummypythia.F
24
4adb943a 25DOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(DSRCS))
fe4da5cc 26
27# C++ compilation flags
28
29CXXFLAGS = $(CXXOPTS) $(CLIBCXXOPTS) $(CLIBDEFS)
30
31# C compilation flags
32
33CFLAGS = $(COPT) (CLIBCOPT) $(CLIBDEFS)
34
35# FORTRAN compilation flags
36
37FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS)
38
39##### TARGETS #####
40
41# Target
42
cb342460 43SLIBRARY = $(LIBDIR)/libpythia.$(SL) $(LIBDIR)/libdummypythia.$(SL)
44ALIBRARY = $(LIBDIR)/libpythia.a
fe4da5cc 45
46default: $(SLIBRARY)
47
cb342460 48$(LIBDIR)/libpythia.$(SL): $(OBJS)
49$(LIBDIR)/libdummypythia.$(SL): $(DOBJS)
fe4da5cc 50
51depend: $(SRCS) $(DSRCS)
52
53TOCLEAN = $(OBJS) $(DOBJS) *Cint.cxx *Cint.h
54
55############################### General Macros ################################
56
57include $(ALICE_ROOT)/conf/GeneralMacros
58
59############################ Dependencies #####################################
60
9f84158c 61-include Make-depend