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