]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant4/Makefile
corrected includes from g4std
[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
59#HEADERS = $(filter-out %LinkDef.h,$(HDRS))
60
61TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
62
63CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
64
65############################### General Macros ################################
66
67include $(ALICE_ROOT)/conf/GeneralMacros
68
69
70# Geant4 specific compiler flags
71
72CXXFLAGS += $(CPPFLAGS)
73
74
75############################ Dependencies #####################################
76
77-include tgt_$(ALICE_TARGET)/Make-depend