X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=conf%2FGeneralDef;h=f9e15a8f4809d5931091b8bc3d60e78fea62d630;hp=eb8e401369e254490c407af32d54be33cc95c312;hb=50e125f7fdf9013d44b9dc38ccc13ca47e2f2236;hpb=1283eee5d6d2906e45aa3694b191d63e1b34dcaa diff --git a/conf/GeneralDef b/conf/GeneralDef index eb8e401369e..f9e15a8f480 100644 --- a/conf/GeneralDef +++ b/conf/GeneralDef @@ -2,6 +2,11 @@ .SUFFIXES: .cxx .h +# IRST coding rule check +STRIP=$(ALICE)/local/IRST/syntax/strip-cpp.prl +CODE_CHECK=java syntax.CPPParser +export CLASSPATH=$(ALICE)/local/IRST + $(ALICE_ROOT)/include/%.h : %.h @[ -d $(dir $@) ] || mkdir $(dir $@) @cp -p $? $(ALICE_ROOT)/include @@ -10,6 +15,19 @@ tgt_$(ALICE_TARGET)/%.o : %.cxx @[ -d $(dir $@) ] || mkdir -p $(dir $@) @$(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o +# IRST coding rule check +check/%.i : %.cxx + @[ -d $(dir $@) ] || mkdir -p $(dir $@) + @$(CXX) -E $(CXXFLAGS) $*.cxx > check/$*.i + +# IRST coding rule check +check/%.ii : check/%.i + @$(STRIP) check/$*.i > check/$*.ii + +# IRST coding rule check +check/%.viol : check/%.ii + @$(CODE_CHECK) check/$*.ii ./ > check/$*.viol + tgt_$(ALICE_TARGET)/%.o : %.c @[ -d $(dir $@) ] || mkdir -p $(dir $@) @$(CC) $(CFLAGS) -c $*.c -o tgt_$(ALICE_TARGET)/$*.o @@ -55,3 +73,13 @@ ROOTGLIBS = -lGpad -lGui -lGX11 -lX3d -lXpm CLIBS = -lminicern G3LIBS = -lgeant321 + + + + + + + + + +