Moved from AliTransbit to AliL3Transbit.
[u/mrichter/AliRoot.git] / conf / GeneralMacros
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 $@
29 ifeq ($(CXXVERBOSE),)
30                 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
31 else
32                 $(LD) $(LDFLAGS) $^ $(LIBS) -o $@
33 endif
34  
35 headers:        $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
36
37 $(DICT):
38                 @echo "Generating $@"
39 ifeq ($(CXXVERBOSE),)
40                 @rootcint -f $@ -c $(filter -I%,$(CXXFLAGS)) $^
41 else
42                 rootcint -f $@ -c $(filter -I%,$(CXXFLAGS)) $^
43 endif
44  
45 depend:
46                 -@$(MAKEDEPEND) -ftgt_$(ALICE_TARGET)/Make-depend -ptgt_$(ALICE_TARGET)/ -- $(CXXFLAGS) $(DEPINC) -- $^ 2>/dev/null
47
48 tgt_$(ALICE_TARGET)/Make-depend:
49                 @[ -d $(dir $@) ] || mkdir $(dir $@)
50                 @cp $(ALICE_ROOT)/conf/Makedepend $@
51
52 macroclean:
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
60 check:          $(CHECKS)
61
62 PREPROC       = $(patsubst %.viol,%.i,$(CHECKS))
63
64 REVENGS       = $(patsubst %.viol,%.ii,$(CHECKS))
65
66 .SECONDARY: $(REVENGS) $(PREPROC)
67
68 reveng:         check/classDiagram.dot
69
70 check/classDiagram.dot: $(PREPROC)
71         @$(REV_ENG) $^
72         @-mv classDiagram.dot $@
73
74 revdisp:        reveng
75         @$(IRST_INSTALLDIR)/scripts/revEngInterface.sh check/classDiagram.dot
76
77