7d410050bfcc7befb8e36ad6c27275499b1a6b94
[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                    ifeq ($(PLATFORM),alpha)
10                       @$(SHLD) -msym -o $@ $^ -lcxxstd -lcxx -lexc -lots -lc
11                    else
12                       @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(SHLIB) -o $@
13                    endif
14                 endif
15                 @chmod 555 $@
16                 @echo "$@ done"
17
18
19 $(ALIBRARY):
20                 @echo "Generating $@ for $(PACKAGE)..."
21                 @rm -f $@
22                 @ar rv $@ $^
23                 @echo "$@ done"
24  
25 $(PROGRAM):
26                 @echo "Generating $@ for $(PACKAGE)..."
27                 @rm -f $@
28                 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
29                 @echo "$@ done"
30  
31 headers:        $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
32
33 $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS)) : $(ALICE_ROOT)/include/% : %
34                 @cp -p $^ $@
35
36 $(DICT):
37                 @echo "Generating $@ for $(PACKAGE)..."
38                 @rootcint -f $@ -c -I$(ALICE_ROOT)/include $^
39                 @echo "$@ done"
40  
41 depend:
42                 @$(MAKEDEPEND) -fMake-depend -- $(CXXFLAGS) $(DEPINC) -- $^
43
44 macroclean:
45                 @rm -f $(TOCLEAN) *~ \#*
46