]>
Commit | Line | Data |
---|---|---|
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 -O%, $(CXXFLAGS)) -c $*Cint.cxx -o tgt_$(ALICE_TARGET)/$*Cint.o | |
25 | else | |
26 | $(CXX) $(filter-out -O%, $(CXXFLAGS)) -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 | @$(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o | |
61 | ||
62 | # Needed binary directories | |
63 | LIBDIR = $(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) | |
64 | BINDIR = $(ALICE_ROOT)/bin/tgt_$(ALICE_TARGET) | |
65 | ||
66 | ||
67 | # Current Version | |
68 | ||
69 | VERSION = 3.03pre | |
70 | ||
71 | # Which makedepend | |
72 | MAKEDEPEND = $(ROOTSYS)/bin/rmkdepend | |
73 | ||
74 | # Root libraries | |
75 | ||
76 | ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml | |
77 | ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS)) | |
78 | ||
79 | # Alice libraries | |
80 | ||
81 | ALILIBS = -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \ | |
82 | -lITS -lPHOS -lCASTOR -lRICH -lEMCAL -lZDC -lSTRUCT \ | |
83 | -lTGeant3 -lSTART -lEVGEN -lSTEER -lCONTAINERS | |
84 | ||
85 | # CERN Libraries | |
86 | ||
87 | CLIBS = -lminicern | |
88 | ||
89 | G3LIBS = -lgeant321 | |
90 |