Introducing new Rndm and QA classes
[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
65fb704d 10GDIRS := gbase gcons gdraw geocad ggeom gheisha ghits ghrout ghutils giface \
fe4da5cc 11 giopa gkine gparal gphys gscan gstrag gtrak matx55 miface miguti \
6d462b1c 12 neutron peanut fiface cgpack fluka block comad erdecks erpremc
fe4da5cc 13
14XDIRS = gxint cdf
15
16# C++ sources
17
18SRCS =
19##### MACROS #####
20
65fb704d 21GFSRC := $(wildcard $(patsubst %,%/*.F,$(GDIRS))) gcinit.F
22GFSRC := $(filter-out gtrak/grndm%.F,$(GFSRC))
23GCSRC := $(wildcard $(patsubst %,%/*.c,$(GDIRS)))
24GCXXSRC := $(wildcard $(patsubst %,%/*.cxx,$(GDIRS)))
fe4da5cc 25
26GSRC = $(GFSRC) $(GCSRC)
4adb943a 27GFOBJ = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(GFSRC))
28GCOBJ = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(GCSRC))
29GCXXOBJ = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GCXXSRC))
fe4da5cc 30GOBJ = $(GFOBJ) $(GCOBJ) $(GCXXOBJ)
31
32XFSRC = $(wildcard $(patsubst %,%/*.F,$(XDIRS)))
33XCSRC = $(wildcard $(patsubst %,%/*.c,$(XDIRS)))
34
35XSRC = $(XFSRC) $(XCSRC) $(XCXXSRC)
4adb943a 36XFOBJ = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(XFSRC))
37XCOBJ = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(XCSRC))
fe4da5cc 38XOBJ = $(XFOBJ) $(XCOBJ) $(XCXXOBJ)
39
40SRCS = $(GSRC) $(XSRC)
41OBJS = $(GOBJ) $(XOBJ)
42
43# Global Macros
44
45ALLSRCS = $(SRCS) $(HDRS) $(FSRCS) $(CSRCS) $(DICT)
46ALLOBJS = $(OBJS) $(FOBJS) $(COBJS) $(DICTO)
47
48# C++ compilation flags
49
65fb704d 50CXXFLAGS := $(CXXOPTS) $(CLIBCXXOPTS) $(CLIBDEFS) -I.
51CXXFLAGS := $(filter-out -O%,$(CXXFLAGS))
fe4da5cc 52
53# C compilation flags
54
65fb704d 55CFLAGS := $(COPT) $(CLIBCOPT) $(CLIBDEFS) -I.
fe4da5cc 56
57# FORTRAN compilation flags
58
65fb704d 59FFLAGS := $(FOPT) $(CLIBFOPT) $(CLIBDEFS) -I.
60FFLAGS := $(filter-out -O%,$(FFLAGS))
fe4da5cc 61
62##### TARGETS #####
63
64# Target
65
cb342460 66SLIBRARY = $(LIBDIR)/libgeant321.$(SL) $(LIBDIR)/libgxint321.$(SL)
67ALIBRARY = $(LIBDIR)/libgeant321.a $(LIBDIR)/libgxint321.a
fe4da5cc 68
286aba6f 69ifeq ($(PLATFORM),alpha)
ca88e26c 70 default: $(ALIBRARY)
286aba6f 71else
ca88e26c 72 default: $(SLIBRARY)
286aba6f 73endif
74
cb342460 75$(LIBDIR)/libgeant321.$(SL) $(LIBDIR)/libgeant321.a: $(GOBJ)
76$(LIBDIR)/libgxint321.$(SL) $(LIBDIR)/libgxint321.$(SL): $(XOBJ)
fe4da5cc 77
78depend: $(SRCS)
79
80TOCLEAN = $(GOBJ) $(XOBJ)
81
82############################### General Macros ################################
83
84include $(ALICE_ROOT)/conf/GeneralMacros
85
86############################ Dependencies #####################################
87
1207d6f2 88-include tgt_$(ALICE_TARGET)/Make-depend