Fixex for #90303: Port to the Release --> Fix PROOF-INF/SETUP.C to create PAR files...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2012 12:43:39 +0000 (12:43 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 25 Jun 2012 12:43:39 +0000 (12:43 +0000)
CORRFW/Makefile
CORRFW/PROOF-INF.CORRFW/BUILD.sh
CORRFW/PROOF-INF.CORRFW/SETUP.C

index b7619f0..8d13bff 100644 (file)
@@ -1,7 +1,9 @@
 
 include Makefile.arch
 
-default-target: libCORRFW.so
+PACKAGE = CORRFW
+
+default-target: lib$(PACKAGE).so
 
 ALICEINC      = -I.
 
@@ -33,9 +35,12 @@ endif
   endif
 #endif
 
-CXXFLAGS     += $(ALICEINC) -g
+ifeq ($(PLATFORM),macosx)
+     ROOTLIBDIR     := $(shell $(RC) --libdir)
+     PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) $(ANALYSISalice_LIBS) -L$(ROOTLIBDIR)  -lVMC -lMinuit -lEG -lGeom
+endif
 
-PACKAGE = CORRFW
+CXXFLAGS     += $(ALICEINC) -g
 
 SRCS     = $(wildcard *.cxx)
 HDRS     = $(SRCS:.cxx=.h)
@@ -52,7 +57,11 @@ PARFILE       = $(PACKAGE).par
 lib$(PACKAGE).so: $(OBJS_CORRFW)
        @echo "Linking" $@ ...
        @/bin/rm -f $@
-       $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)
+ifeq ($(PLATFORM),macosx)
+       $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
+else
+       $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(PACKLDFLAGS) $(EXPLLINKLIBS)
+endif
        @chmod a+x $@
        @echo "done"
 
index fc9490a..7599197 100755 (executable)
@@ -1,3 +1,15 @@
 #! /bin/sh
 
+if [ "" = "clean" ]; then
+   make clean
+   exit 0
+fi
+
 make 
+
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+   exit 1
+fi
+exit 0
\ No newline at end of file
index c2138c0..327991d 100644 (file)
@@ -8,4 +8,8 @@ void SETUP()
 
    // Set our location, so that other packages can find us
    gSystem->Setenv("CORRFW_INCLUDE", "CORRFW");
+
+   // Set our lib coordinates, so that other packages can link to us
+   TString lib = TString::Format("-L%s -lCORRFW", gSystem->WorkingDirectory());
+   gSystem->Setenv("CORRFW_LIBS", lib.Data());
 }