]> git.uio.no Git - u/mrichter/AliRoot.git/blame - AliGeant4/Makefile
moving to AliRoot and tag al-3-00__ar-3-7-00__g4-1-1 comments
[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
31# Library dictionary
32# only for selected classes
33
34DICT = AliGeant4Cint.cxx
35DICTH = AliRunConfiguration.h AliGeant4LinkDef.h
36DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
37
38# C++ Objects
39
40OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
41
42# Program C++ source, objects
43
44PSRC = $(TARGET).cxx
45POBJ = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(PSRC))
46
47# C++ compilation flags
48
12656483 49CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \
50 -I$(ALICE_ROOT)/TGeant4
676fb573 51
52##### TARGETS #####
53
54# Target
55
56SLIBRARY = $(LIBDIR)/libAliGeant4.$(SL)
57ALIBRARY = $(LIBDIR)/lib/libAliGeant4.a
58PROGRAM = $(BINDIR)/$(TARGET)
59
60default: $(SLIBRARY) $(PROGRAM)
61
62$(LIBDIR)/libAliGeant4.$(SL): $(OBJS)
63
64$(BINDIR)/$(TARGET): $(POBJ)
65
66$(DICT): $(DICTH)
67
68depend: $(SRCS)
69
aecdbdac 70clean: macroclean
71
676fb573 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
76ALILIBS := $(filter-out -lTGeant3,$(ALILIBS))
77ALILIBS := $(filter-out -lZDC,$(ALILIBS))
78ALILIBS += -lTGeant4 -lAliGeant4
79
80LIBS = $(ALILIBS) $(G4LDLIBS) $(CLIBS) $(GLIBS) -lEG -lEGPythia -lpythia -lpdf
81
aecdbdac 82TOCLEAN = $(OBJS) $(POBJ) *Cint.cxx *Cint.h
676fb573 83
84CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
85
86############################### General Macros ################################
87
88include $(ALICE_ROOT)/conf/GeneralMacros
89
90
91# Geant4 specific compiler flags
92
93CXXFLAGS += $(CPPFLAGS)
94
95
96############################ Dependencies #####################################
97
98-include tgt_$(ALICE_TARGET)/Make-depend