Workaround for a scoping problem of Cint
[u/mrichter/AliRoot.git] / conf / GeneralMacros
CommitLineData
809ca4d8 1# $Id$
2
fe4da5cc 3########################## General Macros #####################################
4
5$(SLIBRARY):
82124304 6 @echo "Generating $@"
017aaeec 7 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
fe4da5cc 8 @rm -f $@
9 ifeq ($(PLATFORM),aix)
4adb943a 10 @cd tgt_$(ALICE_TARGET) ;\
11 $(SHLD) -o $@ $(LIBS) -p 0 $(patsubst tgt_$(ALICE_TARGET)/%,%,$(filter-out dirs,$^))
fe4da5cc 12 else
4adb943a 13 @cd tgt_$(ALICE_TARGET) ;\
14 $(SHLD) $(SOFLAGS) $(LDFLAGS) $(patsubst tgt_$(ALICE_TARGET)/%,%,$(filter-out dirs,$^)) $(SHLIB) -o $@
fe4da5cc 15 endif
16 @chmod 555 $@
fe4da5cc 17
18
cb342460 19$(ALIBRARY):
82124304 20 @echo "Generating $@"
017aaeec 21 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
fe4da5cc 22 @rm -f $@
23 @ar rv $@ $^
fe4da5cc 24
cb342460 25$(PROGRAM):
82124304 26 @echo "Generating $@"
cb342460 27 @[ -d $(dir $@) ] || mkdir $(dir $@)
fe4da5cc 28 @rm -f $@
29 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
fe4da5cc 30
31headers: $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
32
fe4da5cc 33$(DICT):
82124304 34 @echo "Generating $@"
fe4da5cc 35 @rootcint -f $@ -c -I$(ALICE_ROOT)/include $^
fe4da5cc 36
37depend:
1207d6f2 38 @$(MAKEDEPEND) -ftgt_$(ALICE_TARGET)/Make-depend -ptgt_$(ALICE_TARGET)/ -- $(CXXFLAGS) $(DEPINC) -- $^
fe4da5cc 39
1207d6f2 40tgt_$(ALICE_TARGET)/Make-depend:
eb23adce 41 @[ -d $(dir $@) ] || mkdir $(dir $@)
1207d6f2 42 @cp $(ALICE_ROOT)/conf/Makedepend $@
9f84158c 43
fe4da5cc 44macroclean:
45 @rm -f $(TOCLEAN) *~ \#*
46
e2fe4c02 47
48### Target check creates violation reports (.viol), which depend on
49### stripped files (.ii), which in turn depend on preprocessed
50### files (.i). Dependences are in GeneralDef.
51
52check: $(CHECKS)
53
54.SECONDARY: $(CHECKS:%.viol=%.ii)