Unify syntax for alpha and other systems for the creation of shared libraries.
[u/mrichter/AliRoot.git] / conf / GeneralMacros
1 ########################## General Macros #####################################
2
3 $(SLIBRARY):
4                 @echo "Generating $@ for $(PACKAGE)..."
5                 @rm -f $@
6                 ifeq ($(PLATFORM),aix)
7                    @$(SHLD) -o $@ $(LIBS) -p 0 $^
8                 else
9                    @$(SHLD) $(SOFLAGS) $(LDFLAGS) $^ $(SHLIB) -o $@
10                 endif
11                 @chmod 555 $@
12                 @echo "$@ done"
13
14
15 $(ALIBRARY):
16                 @echo "Generating $@ for $(PACKAGE)..."
17                 @rm -f $@
18                 @ar rv $@ $^
19                 @echo "$@ done"
20  
21 $(PROGRAM):
22                 @echo "Generating $@ for $(PACKAGE)..."
23                 @rm -f $@
24                 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
25                 @echo "$@ done"
26  
27 headers:        $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
28
29 $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS)) : $(ALICE_ROOT)/include/% : %
30                 @cp -p $^ $@
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