4aa1e8f4f4c3dd6fa0fe15cc574af9d485f182f9
[u/mrichter/AliRoot.git] / conf / GeneralMacros
1 ########################## General Macros #####################################
2
3 $(SLIBRARY):
4                 @echo "Generating $@ for $(PACKAGE)..."
5                 @[ -d $(dir $@) ] || mkdir $(dir $@)
6                 @rm -f $@
7                 ifeq ($(PLATFORM),aix)
8                    @$(SHLD) -o $@ $(LIBS) -p 0 $(filter-out dirs,$^)
9                 else
10                    @$(SHLD) $(SOFLAGS) $(LDFLAGS) $(filter-out dirs,$^) $(SHLIB) -o $@
11                 endif
12                 @chmod 555 $@
13                 @echo "$@ done"
14
15
16 $(ALIBRARY):    
17                 @echo "Generating $@ for $(PACKAGE)..."
18                 @[ -d $(dir $@) ] || mkdir $(dir $@)
19                 @rm -f $@
20                 @ar rv $@ $^
21                 @echo "$@ done"
22  
23 $(PROGRAM):     
24                 @echo "Generating $@ for $(PACKAGE)..."
25                 @[ -d $(dir $@) ] || mkdir $(dir $@)
26                 @rm -f $@
27                 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
28                 @echo "$@ done"
29  
30 headers:        $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
31
32 $(DICT):
33                 @echo "Generating $@ for $(PACKAGE)..."
34                 @rootcint -f $@ -c -I$(ALICE_ROOT)/include $^
35                 @echo "$@ done"
36  
37 depend:
38                 @$(MAKEDEPEND) -fMake-depend -- $(CXXFLAGS) $(DEPINC) -- $^
39
40 Make-depend:
41                 @cp $(ALICE_ROOT)/conf/Makedepend ./Make-depend
42
43 macroclean:
44                 @rm -f $(TOCLEAN) *~ \#*
45