Moved from AliTransbit to AliL3Transbit.
[u/mrichter/AliRoot.git] / conf / GeneralMacros
... / ...
CommitLineData
1# $Id$
2
3########################## General Macros #####################################
4
5$(SLIBRARY):
6 @echo "Generating $@"
7 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
8 @rm -f $@
9 ifeq ($(PLATFORM),aix)
10 @cd tgt_$(ALICE_TARGET) ;\
11 $(SHLD) -o $@ $(LIBS) -p 0 $(patsubst tgt_$(ALICE_TARGET)/%,%,$(filter-out dirs,$^))
12 else
13 @cd tgt_$(ALICE_TARGET) ;\
14 $(SHLD) $(SOFLAGS) $(LDFLAGS) $(patsubst tgt_$(ALICE_TARGET)/%,%,$(filter-out dirs,$^)) $(SHLIB) -o $@
15 endif
16 @chmod 555 $@
17
18
19$(ALIBRARY):
20 @echo "Generating $@"
21 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
22 @rm -f $@
23 @ar rv $@ $^
24
25$(PROGRAM):
26 @echo "Generating $@"
27 @[ -d $(dir $@) ] || mkdir $(dir $@)
28 @rm -f $@
29ifeq ($(CXXVERBOSE),)
30 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
31else
32 $(LD) $(LDFLAGS) $^ $(LIBS) -o $@
33endif
34
35headers: $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
36
37$(DICT):
38 @echo "Generating $@"
39ifeq ($(CXXVERBOSE),)
40 @rootcint -f $@ -c $(filter -I%,$(CXXFLAGS)) $^
41else
42 rootcint -f $@ -c $(filter -I%,$(CXXFLAGS)) $^
43endif
44
45depend:
46 -@$(MAKEDEPEND) -ftgt_$(ALICE_TARGET)/Make-depend -ptgt_$(ALICE_TARGET)/ -- $(CXXFLAGS) $(DEPINC) -- $^ 2>/dev/null
47
48tgt_$(ALICE_TARGET)/Make-depend:
49 @[ -d $(dir $@) ] || mkdir $(dir $@)
50 @cp $(ALICE_ROOT)/conf/Makedepend $@
51
52macroclean:
53 @rm -f $(TOCLEAN) *~ \#*
54
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
62PREPROC = $(patsubst %.viol,%.i,$(CHECKS))
63
64REVENGS = $(patsubst %.viol,%.ii,$(CHECKS))
65
66.SECONDARY: $(REVENGS) $(PREPROC)
67
68reveng: check/classDiagram.dot
69
70check/classDiagram.dot: $(PREPROC)
71 @$(REV_ENG) $^
72 @-mv classDiagram.dot $@
73
74revdisp: reveng
75 @$(IRST_INSTALLDIR)/scripts/revEngInterface.sh check/classDiagram.dot
76
77