]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/Makefile
added methods: Open/CloseMaterials(), WriteRotation(), Increase/DecreaseIndention()
[u/mrichter/AliRoot.git] / TGeant4 / Makefile
1 # $Id$
2
3 ############################### TGeant4 Makefile ###############################
4
5 # Include Geant4 specific definitions
6
7 include $(G4INSTALL)/config/architecture.gmk
8
9 # Include machine specific definitions
10
11 include $(ALICE_ROOT)/conf/GeneralDef
12 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
13
14 # Include Alice Geant4 specific definitions
15
16 include $(ALICE_ROOT)/conf/Geant4.gmk
17
18 PACKAGE = TGeant4
19
20 # C++ sources
21
22 SRCS           = $(wildcard *.cxx)
23
24 # C++ Headers
25
26 HDRS          =  $(wildcard *.icc) $(wildcard *.h)
27
28 # Library Root dictionary
29 # only for selected classes
30 # (temporarily excluded for OSF1 due to compilation errors)
31
32 ifneq ($(ALICE_TARGET),OSF1)
33 DICT          = TGeant4Cint.cxx
34 DICTH         = TGeant4.h TG4VRunConfiguration.h TGeant4LinkDef.h
35 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
36 endif
37
38 # C++ Objects
39
40 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
41
42 # C++ compilation flags
43
44 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
45  
46  
47 ##### TARGETS #####
48  
49 # Target
50
51 SLIBRARY        = $(LIBDIR)/libTGeant4.$(SL)
52 ALIBRARY        = $(LIBDIR)/libTGeant4.a
53
54 default:        $(SLIBRARY)
55
56 $(LIBDIR)/libTGeant4.$(SL):             $(OBJS)
57 $(LIBDIR)/libTGeant4.a:                 $(OBJS)
58
59 $(DICT):                                $(DICTH)
60
61 depend:                                 $(SRCS)
62
63 clean: macroclean
64
65 #HEADERS =      $(filter-out %LinkDef.h,$(HDRS))
66
67 TOCLEAN =       $(OBJS) *Cint.cxx *Cint.h
68
69 CHECKS  =       $(patsubst %.cxx,check/%.viol,$(SRCS))
70
71 ############################### General Macros ################################
72
73 include $(ALICE_ROOT)/conf/GeneralMacros
74
75
76 # Geant4 specific compiler flags
77
78 CXXFLAGS += $(CPPFLAGS)
79
80
81 ############################ Dependencies #####################################
82
83 -include tgt_$(ALICE_TARGET)/Make-depend