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