New MachineDef for ROOT 2.22
[u/mrichter/AliRoot.git] / conf / GeneralMacros
... / ...
CommitLineData
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
32headers: $(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
39depend:
40 @$(MAKEDEPEND) -ftgt_$(ALICE_TARGET)/Make-depend -ptgt_$(ALICE_TARGET)/ -- $(CXXFLAGS) $(DEPINC) -- $^
41
42tgt_$(ALICE_TARGET)/Make-depend:
43 @[ -d $(dir $@) ] || mkdir $(dir $@)
44 @cp $(ALICE_ROOT)/conf/Makedepend $@
45
46macroclean:
47 @rm -f $(TOCLEAN) *~ \#*
48