]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/Makefile
moved ifdef G4VIS_USE before the first include; removed unneed include
[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
30
31DICT = TGeant4Cint.cxx
32DICTH = TGeant4.h TG4VRunConfiguration.h TGeant4LinkDef.h
33DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
34
35# C++ Objects
36
37OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
38
39# C++ compilation flags
40
41CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
42
43
44##### TARGETS #####
45
46# Target
47
48SLIBRARY = $(LIBDIR)/libTGeant4.$(SL)
49ALIBRARY = $(LIBDIR)/lib/libTGeant4.a
50
51default: $(SLIBRARY)
52
53$(LIBDIR)/libTGeant4.$(SL): $(OBJS)
54
55$(DICT): $(DICTH)
56
57depend: $(SRCS)
58
2f5a2f2d 59clean: macroclean
60
2817d3e2 61#HEADERS = $(filter-out %LinkDef.h,$(HDRS))
62
63TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
64
65CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
66
67############################### General Macros ################################
68
69include $(ALICE_ROOT)/conf/GeneralMacros
70
71
72# Geant4 specific compiler flags
73
74CXXFLAGS += $(CPPFLAGS)
75
76
77############################ Dependencies #####################################
78
79-include tgt_$(ALICE_TARGET)/Make-depend