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