]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
new makefile (Marian)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jun 2007 15:33:56 +0000 (15:33 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 27 Jun 2007 15:33:56 +0000 (15:33 +0000)
TPC/TPCcalib/makefile [new file with mode: 0644]

diff --git a/TPC/TPCcalib/makefile b/TPC/TPCcalib/makefile
new file mode 100644 (file)
index 0000000..dcff9c2
--- /dev/null
@@ -0,0 +1,33 @@
+PACKAGE = TPCcalib
+
+include Makefile.arch
+include lib$(PACKAGE).pkg2
+
+ifndef PACKCXXFLAGS
+PACKCXXFLAGS = $(CXXFLAGS)
+endif
+
+SRCS         += G__$(PACKAGE).cxx
+OBJS          = $(SRCS:.cxx=.o)
+
+lib$(PACKAGE).so: $(OBJS)
+       @echo "Linking" $@ ...
+       @/bin/rm -f $@
+ifeq ($(PLATFORM),macosx)
+       @$(LD) -bundle -undefined $(UNDEFOPT) $(LDFLAGS) $^ -o $@
+else
+       @$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
+endif
+       @chmod a+x $@
+       @echo "done"
+
+%.o:    %.cxx %.h
+       $(CXX) $(PACKCXXFLAGS)  -I$(ALICE_ROOT)/TPC  -I$(ALICE_ROOT)/STEER -c $< -o $@
+
+clean:
+       @rm -f $(OBJS) *.so G__$(PACKAGE).*
+
+G__$(PACKAGE).cxx G__$(PACKAGE).h: $(HDRS) $(DHDR)
+       @echo "Generating dictionary ..."
+       rootcint -f $@ -c $(CINTFLAGS) $(ALICEINC) $^
+