Changed NVolumes into NofVolumes for readibility
[u/mrichter/AliRoot.git] / GEANT321 / Makefile
CommitLineData
fe4da5cc 1############################### GEANT321 Makefile #############################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = GEANT321
9
10GDIRS = gbase gcons gdraw geocad ggeom gheisha ghits ghrout ghutils giface \
11 giopa gkine gparal gphys gscan gstrag gtrak matx55 miface miguti \
12 neutron peanut fiface cgpack fluka block comad
13
14XDIRS = gxint cdf
15
16# C++ sources
17
18SRCS =
19##### MACROS #####
20
21GFSRC = $(wildcard $(patsubst %,%/*.F,$(GDIRS))) gcinit.F
22GCSRC = $(wildcard $(patsubst %,%/*.c,$(GDIRS)))
23GCXXSRC = $(wildcard $(patsubst %,%/*.cxx,$(GDIRS)))
24
25GSRC = $(GFSRC) $(GCSRC)
26GFOBJ = $(GFSRC:.F=.o)
27GCOBJ = $(GCSRC:.c=.o)
28GCXXOBJ = $(GCXXSRC:.cxx=.o)
29GOBJ = $(GFOBJ) $(GCOBJ) $(GCXXOBJ)
30
31XFSRC = $(wildcard $(patsubst %,%/*.F,$(XDIRS)))
32XCSRC = $(wildcard $(patsubst %,%/*.c,$(XDIRS)))
33
34XSRC = $(XFSRC) $(XCSRC) $(XCXXSRC)
35XFOBJ = $(XFSRC:.F=.o)
36XCOBJ = $(XCSRC:.c=.o)
37XOBJ = $(XFOBJ) $(XCOBJ) $(XCXXOBJ)
38
39SRCS = $(GSRC) $(XSRC)
40OBJS = $(GOBJ) $(XOBJ)
41
42# Global Macros
43
44ALLSRCS = $(SRCS) $(HDRS) $(FSRCS) $(CSRCS) $(DICT)
45ALLOBJS = $(OBJS) $(FOBJS) $(COBJS) $(DICTO)
46
47# C++ compilation flags
48
49CXXFLAGS = $(CXXOPTS) $(CLIBCXXOPTS) $(CLIBDEFS) -I.
50
51# C compilation flags
52
53CFLAGS = $(COPT) $(CLIBCOPT) $(CLIBDEFS) -I.
54
55# FORTRAN compilation flags
56
57FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) -I.
58
59##### TARGETS #####
60
61# Target
62
63SLIBRARY = $(ALICE_ROOT)/lib/libgeant321.$(SL) $(ALICE_ROOT)/lib/libgxint321.$(SL)
64ALIBRARY = $(ALICE_ROOT)/lib/libgeant321.a $(ALICE_ROOT)/lib/libgxint321.a
65
66default: $(SLIBRARY)
67
68$(ALICE_ROOT)/lib/libgeant321.$(SL): $(GOBJ)
69$(ALICE_ROOT)/lib/libgxint321.$(SL): $(XOBJ)
70
71depend: $(SRCS)
72
73TOCLEAN = $(GOBJ) $(XOBJ)
74
75############################### General Macros ################################
76
77include $(ALICE_ROOT)/conf/GeneralMacros
78
79############################ Dependencies #####################################
80
81include Make-depend