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