Moved from AliTransbit to AliL3Transbit.
[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 $@
65225d1f 29ifeq ($(CXXVERBOSE),)
fe4da5cc 30 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
65225d1f 31else
32 $(LD) $(LDFLAGS) $^ $(LIBS) -o $@
33endif
fe4da5cc 34
35headers: $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
36
fe4da5cc 37$(DICT):
82124304 38 @echo "Generating $@"
65225d1f 39ifeq ($(CXXVERBOSE),)
a4c95ff7 40 @rootcint -f $@ -c $(filter -I%,$(CXXFLAGS)) $^
65225d1f 41else
42 rootcint -f $@ -c $(filter -I%,$(CXXFLAGS)) $^
43endif
fe4da5cc 44
45depend:
8ea9ce66 46 -@$(MAKEDEPEND) -ftgt_$(ALICE_TARGET)/Make-depend -ptgt_$(ALICE_TARGET)/ -- $(CXXFLAGS) $(DEPINC) -- $^ 2>/dev/null
fe4da5cc 47
1207d6f2 48tgt_$(ALICE_TARGET)/Make-depend:
eb23adce 49 @[ -d $(dir $@) ] || mkdir $(dir $@)
1207d6f2 50 @cp $(ALICE_ROOT)/conf/Makedepend $@
9f84158c 51
fe4da5cc 52macroclean:
53 @rm -f $(TOCLEAN) *~ \#*
54
e2fe4c02 55
56### Target check creates violation reports (.viol), which depend on
57### stripped files (.ii), which in turn depend on preprocessed
58### files (.i). Dependences are in GeneralDef.
59
60check: $(CHECKS)
61
fba6d07c 62PREPROC = $(patsubst %.viol,%.i,$(CHECKS))
63
3e27ea2b 64REVENGS = $(patsubst %.viol,%.ii,$(CHECKS))
65
fba6d07c 66.SECONDARY: $(REVENGS) $(PREPROC)
3e27ea2b 67
68reveng: check/classDiagram.dot
69
cbfd6991 70check/classDiagram.dot: $(PREPROC)
3e27ea2b 71 @$(REV_ENG) $^
72 @-mv classDiagram.dot $@
73
74revdisp: reveng
75 @$(IRST_INSTALLDIR)/scripts/revEngInterface.sh check/classDiagram.dot
cbfd6991 76
77