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 $@) |
4adb943a |
60 | @$(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o |
cb342460 |
61 | |
62 | # Needed binary directories |
4adb943a |
63 | LIBDIR = $(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) |
64 | BINDIR = $(ALICE_ROOT)/bin/tgt_$(ALICE_TARGET) |
cb342460 |
65 | |
71e7e638 |
66 | |
67 | # Current Version |
68 | |
0237511c |
69 | VERSION = 3.03pre |
fe4da5cc |
70 | |
71 | # Which makedepend |
1756964f |
72 | MAKEDEPEND = $(ROOTSYS)/bin/rmkdepend |
fe4da5cc |
73 | |
74 | # Root libraries |
75 | |
084c1b4a |
76 | ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml |
a4c95ff7 |
77 | ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS)) |
47696e4f |
78 | ROOTLIBS := $(filter-out -lThread,$(ROOTLIBS)) |
79 | ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS)) |
fe4da5cc |
80 | |
81 | # Alice libraries |
82 | |
cb342460 |
83 | ALILIBS = -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \ |
1cd01d78 |
84 | -lITS -lPHOS -lCASTOR -lRICH -lEMCAL -lZDC -lSTRUCT \ |
8ed53241 |
85 | -lTGeant3 -lSTART -lEVGEN -lSTEER -lCONTAINERS |
fe4da5cc |
86 | |
fe4da5cc |
87 | # CERN Libraries |
88 | |
89 | CLIBS = -lminicern |
505de164 |
90 | |
fe4da5cc |
91 | G3LIBS = -lgeant321 |
084c1b4a |
92 | |