New makefiles for OSF and Solaris, compatibility changes in the others
[u/mrichter/AliRoot.git] / conf / GeneralDef
CommitLineData
809ca4d8 1# $Id$
2
fe4da5cc 3##### RULES #####
4
cb342460 5.SUFFIXES: .cxx .h
6
50e125f7 7# IRST coding rule check
8STRIP=$(ALICE)/local/IRST/syntax/strip-cpp.prl
e5089d30 9CODE_CHECK=java rules.RuleChecker
50e125f7 10export CLASSPATH=$(ALICE)/local/IRST
11
cb342460 12$(ALICE_ROOT)/include/%.h : %.h
13 @[ -d $(dir $@) ] || mkdir $(dir $@)
14 @cp -p $? $(ALICE_ROOT)/include
fe4da5cc 15
4adb943a 16tgt_$(ALICE_TARGET)/%.o : %.cxx
cb342460 17 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 18 @$(CXX) $(CXXFLAGS) -c $*.cxx -o tgt_$(ALICE_TARGET)/$*.o
cb342460 19
50e125f7 20# IRST coding rule check
21check/%.i : %.cxx
22 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
23 @$(CXX) -E $(CXXFLAGS) $*.cxx > check/$*.i
24
25# IRST coding rule check
26check/%.ii : check/%.i
27 @$(STRIP) check/$*.i > check/$*.ii
28
29# IRST coding rule check
30check/%.viol : check/%.ii
31 @$(CODE_CHECK) check/$*.ii ./ > check/$*.viol
32
4adb943a 33tgt_$(ALICE_TARGET)/%.o : %.c
cb342460 34 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 35 @$(CC) $(CFLAGS) -c $*.c -o tgt_$(ALICE_TARGET)/$*.o
cb342460 36
4adb943a 37tgt_$(ALICE_TARGET)/%.o : %.f
cb342460 38 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 39 @$(F77) $(FFLAGS) -c $*.f -o tgt_$(ALICE_TARGET)/$*.o
cb342460 40
4adb943a 41tgt_$(ALICE_TARGET)/%.o : %.F
cb342460 42 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
4adb943a 43 @$(F77) $(FFLAGS) -c $*.F -o tgt_$(ALICE_TARGET)/$*.o
cb342460 44
45# Needed binary directories
4adb943a 46LIBDIR = $(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)
47BINDIR = $(ALICE_ROOT)/bin/tgt_$(ALICE_TARGET)
cb342460 48
71e7e638 49
50# Current Version
51
0237511c 52VERSION = 3.03pre
fe4da5cc 53
54# Which makedepend
1756964f 55MAKEDEPEND = $(ROOTSYS)/bin/rmkdepend
fe4da5cc 56
57# Root libraries
58
084c1b4a 59ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs) -lMinuit -lHtml
fe4da5cc 60
61# Alice libraries
62
cb342460 63ALILIBS = -L$(LIBDIR) -lMUON -lTPC -lPMD -lTRD -lFMD -lTOF \
cf4f94e5 64 -lITS -lPHOS -lCASTOR -lRICH -lZDC -lSTRUCT \
44c62722 65 -lTGeant3 -lSTART -lEVGEN -lSTEER
fe4da5cc 66
fe4da5cc 67# CERN Libraries
68
69CLIBS = -lminicern
505de164 70
fe4da5cc 71G3LIBS = -lgeant321
084c1b4a 72