Saving intermediate files for the reverse engineering tool
[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                 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
30  
31 headers:        $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
32
33 $(DICT):
34                 @echo "Generating $@"
35                 @rootcint -f $@ -c $(filter -I%,$(CXXFLAGS)) $^
36  
37 depend:
38                 @$(MAKEDEPEND) -ftgt_$(ALICE_TARGET)/Make-depend -ptgt_$(ALICE_TARGET)/ -- $(CXXFLAGS) $(DEPINC) -- $^
39
40 tgt_$(ALICE_TARGET)/Make-depend:
41                 @[ -d $(dir $@) ] || mkdir $(dir $@)
42                 @cp $(ALICE_ROOT)/conf/Makedepend $@
43
44 macroclean:
45                 @rm -f $(TOCLEAN) *~ \#*
46
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
52 check:          $(CHECKS)
53
54 PREPROC       = $(patsubst %.viol,%.i,$(CHECKS))
55
56 REVENGS       = $(patsubst %.viol,%.ii,$(CHECKS))
57
58 .SECONDARY: $(REVENGS) $(PREPROC)
59
60 reveng:         check/classDiagram.dot
61
62 check/classDiagram.dot: $(REVENGS)
63         @$(REV_ENG) $^
64         @-mv classDiagram.dot $@
65
66 revdisp:        reveng
67         @$(IRST_INSTALLDIR)/scripts/revEngInterface.sh check/classDiagram.dot