Adding Geant4 configuration file
[u/mrichter/AliRoot.git] / conf / GeneralDef
CommitLineData
809ca4d8 1# $Id$
2
fe4da5cc 3##### RULES #####
4
cb342460 5.SUFFIXES: .cxx .h
6
50e125f7 7# IRST coding rule check
3e27ea2b 8export IRST_INSTALLDIR=$(ALICE)/local/IRST
9export CLASSPATH=$(IRST_INSTALLDIR)
10STRIP=$(IRST_INSTALLDIR)/syntax/strip-cpp.prl
e5089d30 11CODE_CHECK=java rules.RuleChecker
3e27ea2b 12REV_ENG=$(IRST_INSTALLDIR)/scripts/revEng.sh
50e125f7 13
cb342460 14$(ALICE_ROOT)/include/%.h : %.h
15 @[ -d $(dir $@) ] || mkdir $(dir $@)
16 @cp -p $? $(ALICE_ROOT)/include
fe4da5cc 17
4adb943a 18tgt_$(ALICE_TARGET)/%.o : %.cxx
cb342460 19 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
3b8595a0 20ifeq ($(CXXVERBOSE),)
4adb943a 21 @$(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
3b8595a0 22else
23 $(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
24endif
cb342460 25
50e125f7 26# IRST coding rule check
27check/%.i : %.cxx
28 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
29 @$(CXX) -E $(CXXFLAGS) $*.cxx > check/$*.i
30
31# IRST coding rule check
32check/%.ii : check/%.i
33 @$(STRIP) check/$*.i > check/$*.ii
34
35# IRST coding rule check
36check/%.viol : check/%.ii
37 @$(CODE_CHECK) check/$*.ii ./ > check/$*.viol
38
4adb943a 39tgt_$(ALICE_TARGET)/%.o : %.c
cb342460 40 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 41 @$(CC) $(CFLAGS) -c $*.c -o tgt_$(ALICE_TARGET)/$*.o
cb342460 42
4adb943a 43tgt_$(ALICE_TARGET)/%.o : %.f
cb342460 44 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 45 @$(F77) $(FFLAGS) -c $*.f -o tgt_$(ALICE_TARGET)/$*.o
cb342460 46
4adb943a 47tgt_$(ALICE_TARGET)/%.o : %.F
cb342460 48 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 49 @$(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o
cb342460 50
51# Needed binary directories
4adb943a 52LIBDIR = $(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)
53BINDIR = $(ALICE_ROOT)/bin/tgt_$(ALICE_TARGET)
cb342460 54
71e7e638 55
56# Current Version
57
0237511c 58VERSION = 3.03pre
fe4da5cc 59
60# Which makedepend
1756964f 61MAKEDEPEND = $(ROOTSYS)/bin/rmkdepend
fe4da5cc 62
63# Root libraries
64
084c1b4a 65ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
a4c95ff7 66ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS))
fe4da5cc 67
68# Alice libraries
69
cb342460 70ALILIBS = -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \
cf4f94e5 71 -lITS -lPHOS -lCASTOR -lRICH -lZDC -lSTRUCT \
44c62722 72 -lTGeant3 -lSTART -lEVGEN -lSTEER
fe4da5cc 73
fe4da5cc 74# CERN Libraries
75
76CLIBS = -lminicern
505de164 77
fe4da5cc 78G3LIBS = -lgeant321
084c1b4a 79