]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant4/Makefile
temporarily excluded PHOS
[u/mrichter/AliRoot.git] / AliGeant4 / Makefile
1 # $Id$
2
3 ############################### AliGeant4 Makefile #############################
4
5 # Include Geant4 specific definitions
6
7 include $(G4INSTALL)/config/architecture.gmk
8
9 # Include machine specific definitions
10
11 include $(ALICE_ROOT)/conf/GeneralDef
12 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
13
14 # Include Alice Geant4 specific definitions
15
16 NEED_G4_LIBS := 1
17 include $(ALICE_ROOT)/conf/Geant4.gmk
18
19 PACKAGE = AliGeant4
20 TARGET  = aligeant4
21
22 # C++ sources
23
24 SRCS           = $(wildcard *.cxx)
25 SRCS          := $(filter-out $(TARGET).cxx,$(SRCS))
26
27 # C++ Headers
28
29 HDRS          =  $(wildcard *.icc) $(wildcard *.h)
30
31 # Library dictionary
32 # only for selected classes
33
34 DICT          = AliGeant4Cint.cxx
35 DICTH         = AliRunConfiguration.h AliGeant4LinkDef.h
36 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
37
38 # C++ Objects
39
40 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
41
42 # Program C++ source, objects
43
44 PSRC          = $(TARGET).cxx
45 POBJ          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(PSRC))
46
47 # C++ compilation flags
48
49 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \
50                 -I$(ALICE_ROOT)/TGeant4       
51
52 ##### TARGETS #####
53  
54 # Target
55
56 SLIBRARY        = $(LIBDIR)/libAliGeant4.$(SL)
57 ALIBRARY        = $(LIBDIR)/lib/libAliGeant4.a
58 PROGRAM         = $(BINDIR)/$(TARGET)
59
60 default:        $(SLIBRARY) $(PROGRAM)
61
62 $(LIBDIR)/libAliGeant4.$(SL):           $(OBJS)
63
64 $(BINDIR)/$(TARGET):                    $(POBJ)
65
66 $(DICT):                                $(DICTH)
67
68 depend:                                 $(SRCS)
69
70 clean: macroclean
71
72 #HEADERS =      $(filter-out %LinkDef.h,$(HDRS))
73
74 # filter-out Geant3 dependent libraries (ZDC requires symbols from G3)
75 # and add Geant4 dependent ones
76 ALILIBS := $(filter-out -lTGeant3,$(ALILIBS))
77 ALILIBS := $(filter-out -lZDC,$(ALILIBS))
78 ALILIBS += -lTGeant4 -lAliGeant4
79
80 LIBS = $(ALILIBS) $(G4LDLIBS) $(CLIBS) $(GLIBS) -lEG -lEGPythia -lpythia -lpdf
81
82 TOCLEAN       = $(OBJS) $(POBJ) *Cint.cxx *Cint.h
83
84 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
85
86 ############################### General Macros ################################
87
88 include $(ALICE_ROOT)/conf/GeneralMacros
89
90
91 # Geant4 specific compiler flags
92
93 CXXFLAGS += $(CPPFLAGS)
94
95
96 ############################ Dependencies #####################################
97
98 -include tgt_$(ALICE_TARGET)/Make-depend