Put headers before libraries in make.
[u/mrichter/AliRoot.git] / TGeant3 / Makefile
CommitLineData
fe4da5cc 1############################### TGeant3 Makefile ##############################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = TGeant3
9
10# FORTRAN sources
11
099385a4 12FSRCS = galicef.F
fe4da5cc 13
14# C++ sources
15
16GSRCS = TGeant3.cxx TPaveTree.cxx THIGZ.cxx gucode.cxx
17
18# C++ Headers
19
20GHDRS = $(filter-out gucode.h,$(GSRCS:.cxx=.h)) TGeant3LinkDef.h
21
22# Library dictionary
23
24GDICT = TGeant3Cint.cxx
25GDICTH = $(GDICT:.cxx=.h)
26GDICTO = $(GDICT:.cxx=.o)
27
28# Geant Objects
29
30GOBJS = $(GSRCS:.cxx=.o) $(FOBJS) $(GDICTO)
31
32# FORTRAN Objectrs
33
34FOBJS = $(FSRCS:.F=.o)
35
36# C Objects
37
38COBJS = $(CSRCS:.c=.o)
39
40# C++ Objects
41
42OBJS = $(SRCS:.cxx=.o) $(DICTO)
43
44# Dummy Geant321 class
45
46# C++ sources
47
48DSRCS = TGeant3Dummy.cxx
49
50# C++ Headers
51
52DHDRS = TGeant3.h TGeant3LinkDef.h
53
54# Library dictionary
55
56DDICT = TGeant3DummyCint.cxx
57DDICTH = $(DDICT:.cxx=.h)
58DDICTO = $(DDICT:.cxx=.o)
59
60# Geant Objects
61
62DOBJS = $(DSRCS:.cxx=.o) $(DDICTO)
63
64# Dummy Routines in Geant321
65
66JSRCS = G3Dummy.cxx
67JOBJS = G3Dummy.o
68
69# C++ compilation flags
70
71CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
72
73# FORTRAN compilation flags
74
75FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
76
77##### TARGETS #####
78
79# Target
80
81SLIBRARY = $(ALICE_ROOT)/lib/libTGeant3.$(SL) \
82 $(ALICE_ROOT)/lib/libG3Dummy.$(SL) \
83 $(ALICE_ROOT)/lib/libTGeant3Dummy.$(SL)
84ALIBRARY = $(ALICE_ROOT)/lib/libTGeant3.a
85
2685c3ce 86default: headers $(SLIBRARY)
fe4da5cc 87
88$(ALICE_ROOT)/lib/libTGeant3.$(SL): $(GOBJS)
89
90$(ALICE_ROOT)/lib/libG3Dummy.$(SL): $(JOBJS)
91
92$(ALICE_ROOT)/lib/libTGeant3Dummy.$(SL): $(DOBJS)
93
94$(GDICT): $(GHDRS)
95
96$(DDICT): $(DHDRS)
97
98DICT = $(GDICT) $(DDICT)
99
100DEPINC += -I$(ALICE_ROOT)/GEANT321
101
102HEADERS = $(filter-out %LinkDef.h,$(GHDRS))
103
104depend: $(GSRCS) $(FSRCS)
105
106TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
107
108############################### General Macros ################################
109
110include $(ALICE_ROOT)/conf/GeneralMacros
111
112############################ Dependencies #####################################
113
114include Make-depend