(martin) pt vs eta correction matrix calculation macro using CorrectionMatrix2D class.
[u/mrichter/AliRoot.git] / PWG0 / Makefile
1 include $(ROOTSYS)/test/Makefile.arch
2 include libPWG0base.pkg
3
4 ALICEINC = -I$(ALICE_ROOT)/include
5 CXXFLAGS += $(ALICEINC)
6 SRCS += dict.cxx
7 OBJS          = $(SRCS:.cxx=.o)
8 PROGRAM       = libPWG0.so
9
10 all:          $(PROGRAM)
11
12 $(PROGRAM):     $(OBJS)
13         @echo "Linking" $(PROGRAM) ...
14         @/bin/rm -f $(PROGRAM)
15 ifeq ($(PLATFORM),macosx)
16         @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $(PROGRAM)
17 else
18         @$(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) -o $(PROGRAM)
19 endif
20         @chmod a+x $(PROGRAM)
21         @echo "done"
22
23 %.o:    %.cxx %.h
24         $(CXX) $(CXXFLAGS) -c $< -o $@
25
26 clean:
27         @rm -f $(OBJS) core *~ *.so dict.*
28
29 dict.cxx dict.h: $(HDRS) $(DHDR)
30         @echo "Generating dictionary ..."
31         @[ -f dict ] || rm -f $@
32         rootcint -f $@ -c $(ALICEINC) $^