]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/Makefile
Removal of useless dependencies via forward declarations
[u/mrichter/AliRoot.git] / TGeant4 / Makefile
CommitLineData
2817d3e2 1# $Id$
2
3############################### TGeant4 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
16include $(ALICE_ROOT)/conf/Geant4.gmk
17
18PACKAGE = TGeant4
19
20# C++ sources
21
22SRCS = $(wildcard *.cxx)
23
24# C++ Headers
25
26HDRS = $(wildcard *.icc) $(wildcard *.h)
27
28# Library Root dictionary
29# only for selected classes
56a00aec 30# (temporarily excluded for OSF1 due to compilation errors)
2817d3e2 31
56a00aec 32ifneq ($(ALICE_TARGET),OSF1)
2817d3e2 33DICT = TGeant4Cint.cxx
34DICTH = TGeant4.h TG4VRunConfiguration.h TGeant4LinkDef.h
35DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
56a00aec 36endif
2817d3e2 37
38# C++ Objects
39
40OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
41
42# C++ compilation flags
43
44CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
45
46
47##### TARGETS #####
48
49# Target
50
51SLIBRARY = $(LIBDIR)/libTGeant4.$(SL)
56a00aec 52ALIBRARY = $(LIBDIR)/libTGeant4.a
2817d3e2 53
54default: $(SLIBRARY)
55
56$(LIBDIR)/libTGeant4.$(SL): $(OBJS)
56a00aec 57$(LIBDIR)/libTGeant4.a: $(OBJS)
2817d3e2 58
59$(DICT): $(DICTH)
60
61depend: $(SRCS)
62
2f5a2f2d 63clean: macroclean
64
2817d3e2 65#HEADERS = $(filter-out %LinkDef.h,$(HDRS))
66
67TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
68
69CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
70
71############################### General Macros ################################
72
73include $(ALICE_ROOT)/conf/GeneralMacros
74
75
76# Geant4 specific compiler flags
77
78CXXFLAGS += $(CPPFLAGS)
79
80
81############################ Dependencies #####################################
82
83-include tgt_$(ALICE_TARGET)/Make-depend