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