(martin) Makefile for ptSpectra directory
authortpogos <tpogos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 May 2006 09:16:28 +0000 (09:16 +0000)
committertpogos <tpogos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 May 2006 09:16:28 +0000 (09:16 +0000)
PWG0/ptSpectra/Makefile [new file with mode: 0644]

diff --git a/PWG0/ptSpectra/Makefile b/PWG0/ptSpectra/Makefile
new file mode 100644 (file)
index 0000000..4f13083
--- /dev/null
@@ -0,0 +1,70 @@
+
+ROOTCINT       = rootcint
+ROOTLIBS       = $(shell root-config --glibs) -lEG 
+ROOTCFLAGS     = $(shell root-config --cflags)
+
+#
+# Compile variables 
+#
+LIBS           = $(ROOTLIBS)
+CPPFLAGS       = $(ROOTCFLAGS) -I./ 
+
+CXX            = g++   
+CXXFLAGS       = -c -g -Wall  
+LD             = g++
+LDFLAGS                = -rdynamic -Wl,-rpath,./ $(LIBS) -o
+SOFLAGS         = -shared -Wl,-soname,
+CP             = cp
+
+LIB      = libCorrectionMatrix2D.so
+LIBO     = CorrectionMatrix2D.o \
+           CorrectionMatrix2DCint.o 
+
+#
+# Rules
+
+%Cint.cxx:%.h
+       rootcint -f $@ -c $(ROOTCFLAGS) $(CPPFLAGS) -p -I./  $^
+
+%.o:%.cxx
+       $(CXX) $(CPPFLAGS) $(CXXFLAGS) $<
+
+%.so:
+       $(LD) $(SOFLAGS)$@ $^ -o $@
+
+%:%.o
+       $(LD) $(LDFLAGS) $(LIBS) $^ -o $@
+
+
+
+#
+#
+#----------------------------------------------------------------------------
+
+
+LIBRARIES = $(LIB)
+
+#
+# Targets 
+#
+.PHONY:all module 
+
+all            : $(LIBRARIES) 
+
+clean:
+       @echo "Cleaning up ..."
+       @$(RM) -f *~ core *Cint.* *.o
+
+realclean: clean 
+       @echo "Being very tidy ... "
+       @$(RM) -f $(LIBRARIES)*
+       @echo "done"
+
+
+#
+# Dependencies  
+#
+$(LIB):$(LIBO)
+
+
+