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