Use ParticlesImport with TParticle instead than TMCParticle
[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)
cb342460 26GFOBJ = $(patsubst %.F,$(ALICE_TARGET)/%.o,$(GFSRC))
27GCOBJ = $(patsubst %.c,$(ALICE_TARGET)/%.o,$(GCSRC))
28GCXXOBJ = $(patsubst %.cxx,$(ALICE_TARGET)/%.o,$(GCXXSRC))
fe4da5cc 29GOBJ = $(GFOBJ) $(GCOBJ) $(GCXXOBJ)
30
31XFSRC = $(wildcard $(patsubst %,%/*.F,$(XDIRS)))
32XCSRC = $(wildcard $(patsubst %,%/*.c,$(XDIRS)))
33
34XSRC = $(XFSRC) $(XCSRC) $(XCXXSRC)
cb342460 35XFOBJ = $(patsubst %.F,$(ALICE_TARGET)/%.o,$(XFSRC))
36XCOBJ = $(patsubst %.c,$(ALICE_TARGET)/%.o,$(XCSRC))
fe4da5cc 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
cb342460 63SLIBRARY = $(LIBDIR)/libgeant321.$(SL) $(LIBDIR)/libgxint321.$(SL)
64ALIBRARY = $(LIBDIR)/libgeant321.a $(LIBDIR)/libgxint321.a
fe4da5cc 65
286aba6f 66ifeq ($(PLATFORM),alpha)
ca88e26c 67 default: $(ALIBRARY)
286aba6f 68else
ca88e26c 69 default: $(SLIBRARY)
286aba6f 70endif
71
cb342460 72$(LIBDIR)/libgeant321.$(SL) $(LIBDIR)/libgeant321.a: $(GOBJ)
73$(LIBDIR)/libgxint321.$(SL) $(LIBDIR)/libgxint321.$(SL): $(XOBJ)
fe4da5cc 74
75depend: $(SRCS)
76
77TOCLEAN = $(GOBJ) $(XOBJ)
78
79############################### General Macros ################################
80
81include $(ALICE_ROOT)/conf/GeneralMacros
82
83############################ Dependencies #####################################
84
f2bd4a7f 85-include Make-depend