Use tgt_ prefix for binary target directories
[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)
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 $@
15 @echo "$@ done"
16
17
cb342460 18$(ALIBRARY):
fe4da5cc 19 @echo "Generating $@ for $(PACKAGE)..."
cb342460 20 @[ -d $(dir $@) ] || mkdir $(dir $@)
fe4da5cc 21 @rm -f $@
22 @ar rv $@ $^
23 @echo "$@ done"
24
cb342460 25$(PROGRAM):
fe4da5cc 26 @echo "Generating $@ for $(PACKAGE)..."
cb342460 27 @[ -d $(dir $@) ] || mkdir $(dir $@)
fe4da5cc 28 @rm -f $@
29 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
30 @echo "$@ done"
31
32headers: $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
33
fe4da5cc 34$(DICT):
35 @echo "Generating $@ for $(PACKAGE)..."
36 @rootcint -f $@ -c -I$(ALICE_ROOT)/include $^
37 @echo "$@ done"
38
39depend:
40 @$(MAKEDEPEND) -fMake-depend -- $(CXXFLAGS) $(DEPINC) -- $^
41
9f84158c 42Make-depend:
5c74b91b 43 @cp $(ALICE_ROOT)/conf/Makedepend ./Make-depend
9f84158c 44
fe4da5cc 45macroclean:
46 @rm -f $(TOCLEAN) *~ \#*
47