]> git.uio.no Git - u/mrichter/AliRoot.git/blob - conf/GeneralDef
CXXVERBOSE also for FORTRAN compilation
[u/mrichter/AliRoot.git] / conf / GeneralDef
1 # $Id$
2  
3 ##### RULES #####
4  
5 .SUFFIXES: .cxx .h
6
7 # IRST coding rule check
8 export IRST_INSTALLDIR=$(ALICE)/local/IRST
9 export CLASSPATH=$(IRST_INSTALLDIR)
10 CODE_CHECK=java rules.RuleChecker
11 REV_ENG=$(IRST_INSTALLDIR)/scripts/revEng.sh
12 # This is to avoid a problem with the declaration of .SECONDARY in the 
13 # GeneralMacros
14 CHECKS = none
15
16 $(ALICE_ROOT)/include/%.h : %.h
17         @[ -d $(dir $@) ] || mkdir $(dir $@)
18         @cp -p $? $(ALICE_ROOT)/include
19  
20 tgt_$(ALICE_TARGET)/%Cint.o : %Cint.cxx
21         @echo $*Cint.cxx
22         @[ -d $(dir $@) ] || mkdir -p $(dir $@)
23 ifeq ($(CXXVERBOSE),)
24         @$(CXX) $(filter-out -prof_gen, $(filter-out -O%, $(CXXFLAGS))) -O0 -c $*Cint.cxx -o tgt_$(ALICE_TARGET)/$*Cint.o
25 else
26         $(CXX) $(filter-out -prof_gen, $(filter-out -O%, $(CXXFLAGS))) -O0 -c $*Cint.cxx -o tgt_$(ALICE_TARGET)/$*Cint.o
27 endif
28
29 tgt_$(ALICE_TARGET)/%.o : %.cxx
30         @echo $*.cxx
31         @[ -d $(dir $@) ] || mkdir -p $(dir $@)
32 ifeq ($(CXXVERBOSE),)
33         @$(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
34 else
35         $(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
36 endif
37
38 # IRST coding rule check 
39 check/%.i : %.cxx
40         @[ -d $(dir $@) ] || mkdir -p $(dir $@)
41         @$(CXX) -E $(CXXFLAGS) $*.cxx > check/$*.i
42
43 # IRST coding rule check
44 check/%.viol : check/%.i
45         @$(CODE_CHECK) check/$*.i ./ > check/$*.viol
46
47 tgt_$(ALICE_TARGET)/%.o : %.c
48         @echo $*.c
49         @[ -d $(dir $@) ] || mkdir -p $(dir $@)
50         @$(CC) $(CFLAGS) -c $*.c -o tgt_$(ALICE_TARGET)/$*.o
51
52 tgt_$(ALICE_TARGET)/%.o : %.f
53         @echo $*.f
54         @[ -d $(dir $@) ] || mkdir -p $(dir $@)
55         @$(F77) $(FFLAGS) -c $*.f -o tgt_$(ALICE_TARGET)/$*.o
56
57 tgt_$(ALICE_TARGET)/%.o : %.F
58         @echo $*.F
59         @[ -d $(dir $@) ] || mkdir -p $(dir $@)
60 ifeq ($(CXXVERBOSE),)
61         @$(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o
62 else
63         $(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o
64 endif
65
66 # Needed binary directories
67 LIBDIR = $(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)
68 BINDIR = $(ALICE_ROOT)/bin/tgt_$(ALICE_TARGET)
69
70
71 # Current Version
72
73 VERSION         = 3.03pre
74  
75 # Which makedepend
76 MAKEDEPEND    = $(ROOTSYS)/bin/rmkdepend
77
78 # Root libraries
79  
80 ROOTLIBS      = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
81 ROOTLIBS      := $(filter-out -lNew,$(ROOTLIBS))
82 ROOTLIBS      := $(filter-out -lThread,$(ROOTLIBS))
83 ROOTLIBS      := $(filter-out -lpthread,$(ROOTLIBS))
84
85 # Alice libraries
86
87 ALILIBS       = -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \
88                 -lITS -lPHOS -lCASTOR -lRICH -lEMCAL -lZDC -lSTRUCT \
89                 -lTGeant3 -lSTART -lVZERO -lEVGEN -lSTEER -lCONTAINERS
90
91 # CERN Libraries 
92
93 CLIBS         = -lminicern
94
95 G3LIBS        = -lgeant321
96