Using rmkdepend from ROOT and not makedepend
[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
8STRIP=$(ALICE)/local/IRST/syntax/strip-cpp.prl
9CODE_CHECK=java syntax.CPPParser
10export CLASSPATH=$(ALICE)/local/IRST
11
cb342460 12$(ALICE_ROOT)/include/%.h : %.h
13 @[ -d $(dir $@) ] || mkdir $(dir $@)
14 @cp -p $? $(ALICE_ROOT)/include
fe4da5cc 15
4adb943a 16tgt_$(ALICE_TARGET)/%.o : %.cxx
cb342460 17 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 18 @$(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
cb342460 19
50e125f7 20# IRST coding rule check
21check/%.i : %.cxx
22 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
23 @$(CXX) -E $(CXXFLAGS) $*.cxx > check/$*.i
24
25# IRST coding rule check
26check/%.ii : check/%.i
27 @$(STRIP) check/$*.i > check/$*.ii
28
29# IRST coding rule check
30check/%.viol : check/%.ii
31 @$(CODE_CHECK) check/$*.ii ./ > check/$*.viol
32
4adb943a 33tgt_$(ALICE_TARGET)/%.o : %.c
cb342460 34 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 35 @$(CC) $(CFLAGS) -c $*.c -o tgt_$(ALICE_TARGET)/$*.o
cb342460 36
4adb943a 37tgt_$(ALICE_TARGET)/%.o : %.f
cb342460 38 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 39 @$(F77) $(FFLAGS) -c $*.f -o tgt_$(ALICE_TARGET)/$*.o
cb342460 40
4adb943a 41tgt_$(ALICE_TARGET)/%.o : %.F
cb342460 42 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 43 @$(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o
cb342460 44
45# Needed binary directories
4adb943a 46LIBDIR = $(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)
47BINDIR = $(ALICE_ROOT)/bin/tgt_$(ALICE_TARGET)
cb342460 48
71e7e638 49
50# Current Version
51
52VERSION = 3.02pre
fe4da5cc 53
54# Which makedepend
1756964f 55MAKEDEPEND = $(ROOTSYS)/bin/rmkdepend
fe4da5cc 56
57# Root libraries
58
7b42cc14 59ROOTLIBS = -L$(ROOTSYS)/lib -lNew -lBase -lCint -lClib -lCont -lFunc \
60 -lGraf -lGraf3d -lHist -lHtml -lMeta -lMinuit -lNet \
61 -lPostscript -lProof -lRint -lTree -lUnix -lZip -lMatrix \
62 -lMeta -lPhysics
fe4da5cc 63
64# Alice libraries
65
cb342460 66ALILIBS = -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \
fe4da5cc 67 -lITS -lPHOSdummy -lPHOS -lCASTOR -lRICH -lZDC -lSTRUCT \
8afb075f 68 -lTGeant3 -lSTART -lCPV -lEVGEN -lSTEER
fe4da5cc 69
70# Graphic libraries
71
72ROOTGLIBS = -lGpad -lGui -lGX11 -lX3d -lXpm
73
74# CERN Libraries
75
76CLIBS = -lminicern
505de164 77
fe4da5cc 78G3LIBS = -lgeant321