Added cvs Id to all files
[u/mrichter/AliRoot.git] / conf / GeneralMacros
1 # $Id$
2  
3 ########################## General Macros #####################################
4
5 $(SLIBRARY):
6                 @echo "Generating $@"
7                 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
8                 @rm -f $@
9                 ifeq ($(PLATFORM),aix)
10                    @cd tgt_$(ALICE_TARGET) ;\
11                    $(SHLD) -o $@ $(LIBS) -p 0 $(patsubst tgt_$(ALICE_TARGET)/%,%,$(filter-out dirs,$^))
12                 else
13                    @cd tgt_$(ALICE_TARGET) ;\
14                    $(SHLD) $(SOFLAGS) $(LDFLAGS) $(patsubst tgt_$(ALICE_TARGET)/%,%,$(filter-out dirs,$^)) $(SHLIB) -o $@
15                 endif
16                 @chmod 555 $@
17
18
19 $(ALIBRARY):    
20                 @echo "Generating $@"
21                 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
22                 @rm -f $@
23                 @ar rv $@ $^
24  
25 $(PROGRAM):     
26                 @echo "Generating $@"
27                 @[ -d $(dir $@) ] || mkdir $(dir $@)
28                 @rm -f $@
29                 @$(LD) $(LDFLAGS) $^ $(LIBS) -o $@
30  
31 headers:        $(patsubst %,$(ALICE_ROOT)/include/%,$(HEADERS))
32
33 $(DICT):
34                 @echo "Generating $@"
35                 @rootcint -f $@ -c -I$(ALICE_ROOT)/include $^
36  
37 depend:
38                 @$(MAKEDEPEND) -ftgt_$(ALICE_TARGET)/Make-depend -ptgt_$(ALICE_TARGET)/ -- $(CXXFLAGS) $(DEPINC) -- $^
39
40 tgt_$(ALICE_TARGET)/Make-depend:
41                 @[ -d $(dir $@) ] || mkdir $(dir $@)
42                 @cp $(ALICE_ROOT)/conf/Makedepend $@
43
44 macroclean:
45                 @rm -f $(TOCLEAN) *~ \#*
46