Bugfix in AliPoints2Memory
[u/mrichter/AliRoot.git] / AliGeant4 / Makefile.old
CommitLineData
0ce35b5d 1# $Id$
2
3############################### AliGeant4 Makefile #############################
4
5# Include Geant4 specific definitions
6
7include $(G4INSTALL)/config/architecture.gmk
8
9# Include machine specific definitions
10
11include $(ALICE_ROOT)/conf/GeneralDef
12include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
13
14# Include Alice Geant4 specific definitions
15
16NEED_G4_LIBS := 1
17include $(ALICE_ROOT)/conf/Geant4.gmk
18
19PACKAGE = AliGeant4
20TARGET = aligeant4
21
22# C++ sources
23
24SRCS = $(wildcard *.cxx)
25SRCS := $(filter-out $(TARGET).cxx,$(SRCS))
26
27# C++ Headers
28
29HDRS = $(wildcard *.icc) $(wildcard *.h)
30
31# Library Root dictionary
32# only for selected classes
33# (temporarily excluded for OSF1 due to compilation errors)
34
35ifneq ($(ALICE_TARGET),OSF1)
36DICT = AliGeant4Cint.cxx
37DICTH = AliRunConfiguration.h AliGeant4LinkDef.h
38DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
39endif
40
41# C++ Objects
42
43OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
44
45# Program C++ source, objects
46
47PSRC = $(TARGET).cxx
48POBJ = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(PSRC))
49
50# C++ compilation flags
51
52CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \
53 -I$(ALICE)/geant4_vmc/source/global/include \
54 -I$(ALICE)/geant4_vmc/source/geometry/include \
55 -I$(ALICE)/geant4_vmc/source/digits+hits/include \
56 -I$(ALICE)/geant4_vmc/source/physics/include \
57 -I$(ALICE)/geant4_vmc/source/event/include \
58 -I$(ALICE)/geant4_vmc/source/run/include \
59 -I$(ALICE)/geant4_vmc/source/interfaces/include \
60 -I$(ALICE)/geant4_vmc/source/visualization/include
61##### TARGETS #####
62
63# Target
64
65SLIBRARY = $(LIBDIR)/libAliGeant4.$(SL)
66ALIBRARY = $(LIBDIR)/libAliGeant4.a
67PROGRAM = $(BINDIR)/$(TARGET)
68
69default: $(SLIBRARY) $(PROGRAM)
70archived: $(ALIBRARY)
71
72$(LIBDIR)/libAliGeant4.$(SL): $(OBJS)
73$(LIBDIR)/libAliGeant4.a: $(OBJS)
74
75$(BINDIR)/$(TARGET): $(POBJ)
76
77$(DICT): $(DICTH)
78
79depend: $(SRCS)
80
81clean: macroclean
82
83#HEADERS = $(filter-out %LinkDef.h,$(HDRS))
84
85# filter-out Geant3 dependent libraries (ZDC requires symbols from G3)
86# and add Geant4 dependent ones
87ALILIBS := $(filter-out -lgeant321,$(ALILIBS))
88ALILIBS := $(filter-out -lgeant3,$(ALILIBS))
89ALILIBS := $(filter-out -lZDC,$(ALILIBS))
90ALILIBS := $(filter-out -lITS,$(ALILIBS))
91ALILIBS += -lAliGeant4 -L$(ALICE)/geant4_vmc/lib/tgt_$(G4SYSTEM) -lgeant4vmc
92
93LIBS = $(ALILIBS) $(CLIBS) $(GLIBS) -lEG -lEGPythia6 -lpythia6 -lpdf \
94 -lTHijing -lhijing -lTMEVSIM -lMEVSIM -lTHbtp -lHBTP \
95 -lTHerwig -lherwig $(G4LDLIBS)
96
97TOCLEAN = $(OBJS) $(POBJ) *Cint.cxx *Cint.h
98
99CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
100
101############################### General Macros ################################
102
103include $(ALICE_ROOT)/conf/GeneralMacros
104
105
106# Geant4 specific compiler flags
107
108CXXFLAGS += $(CPPFLAGS)
109
110
111############################ Dependencies #####################################
112
113-include tgt_$(ALICE_TARGET)/Make-depend