0f33a45b2cbe85395067052f70da5f65e82af4e9
[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                 AliGenMUONlib.cxx AliGenParam.cxx AliGenPythia.cxx \
15                 AliPythia.cxx AliDimuCombinator.cxx AliGenHalo.cxx \
16                 AliGenExtFile.cxx AliGenScan.cxx AliGenPHOSlib.cxx \
17                 AliGenDoubleScan.cxx
18 # C++ Headers
19
20 HDRS          = $(SRCS:.cxx=.h) EVGENLinkDef.h
21
22 # Library dictionary
23
24 DICT          = EVGENCint.cxx
25 DICTH         = $(DICT:.cxx=.h)
26 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
27
28 # FORTRAN Objectrs
29
30 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
31
32 # C Objects
33
34 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
35
36 # C++ Objects
37
38 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
39
40 # C++ compilation flags
41
42 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
43  
44 # FORTRAN compilation flags
45
46 FFLAGS      = $(FOPT)
47
48 ##### TARGETS #####
49  
50 # Target
51
52 SLIBRARY        = $(LIBDIR)/libEVGEN.$(SL)
53 ALIBRARY        = $(LIBDIR)/libEVGEN.a
54
55 default:        $(SLIBRARY)
56
57 $(LIBDIR)/libEVGEN.$(SL):               $(OBJS)
58
59 $(DICT):                                $(HDRS)
60
61 depend:                                 $(SRCS)
62
63 HEADERS         =       $(filter-out %LinkDef.h,$(HDRS))
64
65 TOCLEAN         = $(OBJS) *Cint.cxx *Cint.h
66
67 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
68
69 ############################### General Macros ################################
70
71 include $(ALICE_ROOT)/conf/GeneralMacros
72
73 ############################ Dependencies #####################################
74
75 -include tgt_$(ALICE_TARGET)/Make-depend 
76
77
78
79
80
81
82