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