11de90d0dbdfc3e2c8c54721522712677a5fed36
[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 AliGenPythiaEventHeader.cxx \
23                 AliDecayer.cxx AliDecayerPythia.cxx \
24                 AliGenMevSim.cxx AliMevSimParticle.cxx AliMevSimConfig.cxx \
25                 AliGenMC.cxx AliGenCocktailAfterBurner.cxx
26 # C++ Headers
27
28 HDRS          = $(SRCS:.cxx=.h) $(ALICE_ROOT)/include/THijing.h \
29                 $(ROOTSYS)/include/TF1.h $(ROOTSYS)/include/TChain.h \
30                 $(ROOTSYS)/include/TParticle.h \
31                 EVGENLinkDef.h
32
33 # Library dictionary
34
35 DICT          = EVGENCint.cxx
36 DICTH         = $(DICT:.cxx=.h) 
37 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
38
39 # FORTRAN Objectrs
40
41 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
42
43 # C Objects
44
45 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
46
47 # C++ Objects
48
49 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
50
51 # C++ compilation flags
52
53 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TMevSim -I.
54  
55 # FORTRAN compilation flags
56
57 FFLAGS      = $(FOPT)
58
59 ##### TARGETS #####
60  
61 # Target
62
63 SLIBRARY        = $(LIBDIR)/libEVGEN.$(SL)
64 ALIBRARY        = $(LIBDIR)/libEVGEN.a
65
66 default:        $(SLIBRARY)
67
68 $(LIBDIR)/libEVGEN.$(SL):               $(OBJS)
69
70 $(DICT):                                $(HDRS)
71
72 depend:                                 $(SRCS)
73
74 HEADERS       = AliPythia.h AliDecayer.h AliDecayerPythia.h AliGenHijingEventHeader.h
75
76 TOCLEAN         = $(OBJS) *Cint.cxx *Cint.h
77
78 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
79
80 ############################### General Macros ################################
81
82 include $(ALICE_ROOT)/conf/GeneralMacros
83
84 ############################ Dependencies #####################################
85
86 -include tgt_$(ALICE_TARGET)/Make-depend 
87
88
89
90
91
92
93