]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AliGeant4/Makefile
AliTracking/SteppingAction update commented
[u/mrichter/AliRoot.git] / AliGeant4 / Makefile
CommitLineData
676fb573 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)
12656483 25SRCS := $(filter-out $(TARGET).cxx,$(SRCS))
676fb573 26
27# C++ Headers
28
29HDRS = $(wildcard *.icc) $(wildcard *.h)
30
2669be90 31# Library Root dictionary
676fb573 32# only for selected classes
2669be90 33# (temporarily excluded for OSF1 due to compilation errors)
676fb573 34
2669be90 35ifneq ($(ALICE_TARGET),OSF1)
676fb573 36DICT = AliGeant4Cint.cxx
37DICTH = AliRunConfiguration.h AliGeant4LinkDef.h
38DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
2669be90 39endif
676fb573 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
12656483 52CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \
53 -I$(ALICE_ROOT)/TGeant4
676fb573 54
55##### TARGETS #####
56
57# Target
58
59SLIBRARY = $(LIBDIR)/libAliGeant4.$(SL)
2669be90 60ALIBRARY = $(LIBDIR)/libAliGeant4.a
676fb573 61PROGRAM = $(BINDIR)/$(TARGET)
62
63default: $(SLIBRARY) $(PROGRAM)
64
65$(LIBDIR)/libAliGeant4.$(SL): $(OBJS)
2669be90 66$(LIBDIR)/libAliGeant4.a: $(OBJS)
676fb573 67
68$(BINDIR)/$(TARGET): $(POBJ)
69
70$(DICT): $(DICTH)
71
72depend: $(SRCS)
73
aecdbdac 74clean: macroclean
75
676fb573 76#HEADERS = $(filter-out %LinkDef.h,$(HDRS))
77
78# filter-out Geant3 dependent libraries (ZDC requires symbols from G3)
79# and add Geant4 dependent ones
80ALILIBS := $(filter-out -lTGeant3,$(ALILIBS))
81ALILIBS := $(filter-out -lZDC,$(ALILIBS))
2669be90 82ALILIBS += -lAliGeant4 -lTGeant4
676fb573 83
3ba49ff6 84LIBS = $(ALILIBS) $(CLIBS) $(GLIBS) -lEG -lEGPythia6 -lpythia6 -lpdf \
2669be90 85 -lTHijing -lhijing $(G4LDLIBS)
676fb573 86
aecdbdac 87TOCLEAN = $(OBJS) $(POBJ) *Cint.cxx *Cint.h
676fb573 88
89CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
90
91############################### General Macros ################################
92
93include $(ALICE_ROOT)/conf/GeneralMacros
94
95
96# Geant4 specific compiler flags
97
98CXXFLAGS += $(CPPFLAGS)
99
100
101############################ Dependencies #####################################
102
103-include tgt_$(ALICE_TARGET)/Make-depend