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