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