Moved from AliTransbit to AliL3Transbit.
[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)
e5089d30 10CODE_CHECK=java rules.RuleChecker
3e27ea2b 11REV_ENG=$(IRST_INSTALLDIR)/scripts/revEng.sh
53a6f207 12# This is to avoid a problem with the declaration of .SECONDARY in the
13# GeneralMacros
14CHECKS = none
50e125f7 15
cb342460 16$(ALICE_ROOT)/include/%.h : %.h
17 @[ -d $(dir $@) ] || mkdir $(dir $@)
18 @cp -p $? $(ALICE_ROOT)/include
fe4da5cc 19
5c76f8ad 20tgt_$(ALICE_TARGET)/%Cint.o : %Cint.cxx
21 @echo $*Cint.cxx
22 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
23ifeq ($(CXXVERBOSE),)
44f356c4 24 @$(CXX) $(filter-out -prof_gen, $(filter-out -O%, $(CXXFLAGS))) -O0 -c $*Cint.cxx -o tgt_$(ALICE_TARGET)/$*Cint.o
5c76f8ad 25else
44f356c4 26 $(CXX) $(filter-out -prof_gen, $(filter-out -O%, $(CXXFLAGS))) -O0 -c $*Cint.cxx -o tgt_$(ALICE_TARGET)/$*Cint.o
5c76f8ad 27endif
28
4adb943a 29tgt_$(ALICE_TARGET)/%.o : %.cxx
5c76f8ad 30 @echo $*.cxx
cb342460 31 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
3b8595a0 32ifeq ($(CXXVERBOSE),)
4adb943a 33 @$(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
3b8595a0 34else
35 $(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
36endif
cb342460 37
50e125f7 38# IRST coding rule check
39check/%.i : %.cxx
40 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
41 @$(CXX) -E $(CXXFLAGS) $*.cxx > check/$*.i
42
43# IRST coding rule check
2f193aef 44check/%.viol : check/%.i
45 @$(CODE_CHECK) check/$*.i ./ > check/$*.viol
50e125f7 46
4adb943a 47tgt_$(ALICE_TARGET)/%.o : %.c
bf71e087 48 @echo $*.c
cb342460 49 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 50 @$(CC) $(CFLAGS) -c $*.c -o tgt_$(ALICE_TARGET)/$*.o
cb342460 51
4adb943a 52tgt_$(ALICE_TARGET)/%.o : %.f
bf71e087 53 @echo $*.f
cb342460 54 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 55 @$(F77) $(FFLAGS) -c $*.f -o tgt_$(ALICE_TARGET)/$*.o
cb342460 56
4adb943a 57tgt_$(ALICE_TARGET)/%.o : %.F
bf71e087 58 @echo $*.F
cb342460 59 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
6c2482d6 60ifeq ($(CXXVERBOSE),)
4adb943a 61 @$(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o
6c2482d6 62else
63 $(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o
64endif
cb342460 65
66# Needed binary directories
4adb943a 67LIBDIR = $(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)
68BINDIR = $(ALICE_ROOT)/bin/tgt_$(ALICE_TARGET)
cb342460 69
71e7e638 70
71# Current Version
72
0237511c 73VERSION = 3.03pre
fe4da5cc 74
75# Which makedepend
1756964f 76MAKEDEPEND = $(ROOTSYS)/bin/rmkdepend
fe4da5cc 77
78# Root libraries
79
084c1b4a 80ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
a4c95ff7 81ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS))
47696e4f 82ROOTLIBS := $(filter-out -lThread,$(ROOTLIBS))
83ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS))
fe4da5cc 84
85# Alice libraries
86
cb342460 87ALILIBS = -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \
9963f6b9 88 -lITS -lPHOS -lCRT -lRICH -lEMCAL -lZDC -lSTRUCT \
89 -lTGeant3 -lTFluka -lSTART -lVZERO -lEVGEN -lSTEER -lCONTAINERS
fe4da5cc 90
fe4da5cc 91# CERN Libraries
92
93CLIBS = -lminicern
505de164 94
fe4da5cc 95G3LIBS = -lgeant321
084c1b4a 96