2765724c752a14b876e66ed462d172dbcdd9db7b
[u/mrichter/AliRoot.git] / EVGEN / Makefile
1 ############################### EVGEN 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 = EVGEN
9
10 # C++ sources
11
12 SRCS          = AliGenHIJINGpara.cxx AliGenBox.cxx AliGenFixed.cxx \
13                 AliGenCocktail.cxx AliGenFLUKAsource.cxx \
14                 AliGenLib.cxx \
15                 AliGenMUONlib.cxx AliGenParam.cxx AliGenPythia.cxx \
16                 AliPythia.cxx AliDimuCombinator.cxx AliGenHalo.cxx \
17                 AliGenHaloProtvino.cxx \
18                 AliGenExtFile.cxx AliGenScan.cxx AliGenPHOSlib.cxx \
19                 AliGenDoubleScan.cxx AliGenCocktailEntry.cxx \
20                 AliGenGSIlib.cxx AliGenPMDlib.cxx\
21                 AliGenHijing.cxx \
22                 AliGenHijingEventHeader.cxx \
23                 AliDecayer.cxx AliDecayerPythia.cxx \
24                 AliGenMevSim.cxx AliMevSimParticle.cxx AliMevSimConfig.cxx
25 # C++ Headers
26
27 HDRS          = $(SRCS:.cxx=.h) $(ALICE_ROOT)/include/THijing.h \
28                 $(ROOTSYS)/include/TF1.h $(ROOTSYS)/include/TChain.h \
29                 $(ROOTSYS)/include/TParticle.h \
30                 EVGENLinkDef.h
31
32 # Library dictionary
33
34 DICT          = EVGENCint.cxx
35 DICTH         = $(DICT:.cxx=.h) 
36 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
37
38 # FORTRAN Objectrs
39
40 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
41
42 # C Objects
43
44 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
45
46 # C++ Objects
47
48 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
49
50 # C++ compilation flags
51
52 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TMevSim -I.
53  
54 # FORTRAN compilation flags
55
56 FFLAGS      = $(FOPT)
57
58 ##### TARGETS #####
59  
60 # Target
61
62 SLIBRARY        = $(LIBDIR)/libEVGEN.$(SL)
63 ALIBRARY        = $(LIBDIR)/libEVGEN.a
64
65 default:        $(SLIBRARY)
66
67 $(LIBDIR)/libEVGEN.$(SL):               $(OBJS)
68
69 $(DICT):                                $(HDRS)
70
71 depend:                                 $(SRCS)
72
73 HEADERS       = AliPythia.h AliDecayer.h AliDecayerPythia.h
74
75 TOCLEAN         = $(OBJS) *Cint.cxx *Cint.h
76
77 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
78
79 ############################### General Macros ################################
80
81 include $(ALICE_ROOT)/conf/GeneralMacros
82
83 ############################ Dependencies #####################################
84
85 -include tgt_$(ALICE_TARGET)/Make-depend 
86
87
88
89
90
91
92