Unify syntax for alpha and other systems for the creation of shared libraries.
[u/mrichter/AliRoot.git] / conf / GeneralMacros
CommitLineData
fe4da5cc 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
40da9a8f 9 @$(SHLD) $(SOFLAGS) $(LDFLAGS) $^ $(SHLIB) -o $@
fe4da5cc 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
27headers: $(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
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