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