]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
standalone Makefile, preliminary (towards PROOF par archive)
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 May 2006 16:21:28 +0000 (16:21 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 May 2006 16:21:28 +0000 (16:21 +0000)
PWG0/Makefile [new file with mode: 0644]

diff --git a/PWG0/Makefile b/PWG0/Makefile
new file mode 100644 (file)
index 0000000..abe2ddf
--- /dev/null
@@ -0,0 +1,32 @@
+include $(ROOTSYS)/test/Makefile.arch
+include libPWG0base.pkg
+
+ALICEINC = -I$(ALICE_ROOT)/include
+CXXFLAGS += $(ALICEINC)
+SRCS += dict.cxx
+OBJS          = $(SRCS:.cxx=.o)
+PROGRAM       = libPWG0.so
+
+all:          $(PROGRAM)
+
+$(PROGRAM):     $(OBJS)
+       @echo "Linking" $(PROGRAM) ...
+       @/bin/rm -f $(PROGRAM)
+ifeq ($(PLATFORM),macosx)
+       @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $(PROGRAM)
+else
+       @$(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) -o $(PROGRAM)
+endif
+       @chmod a+x $(PROGRAM)
+       @echo "done"
+
+%.o:    %.cxx %.h
+       $(CXX) $(CXXFLAGS) -c $< -o $@
+
+clean:
+       @rm -f $(OBJS) core *~ *.so dict.*
+
+dict.cxx dict.h: $(HDRS) $(DHDR)
+       @echo "Generating dictionary ..."
+       @[ -f dict ] || rm -f $@
+       rootcint -f $@ -c $(ALICEINC) $^