endif
#endif
+ifeq ($(PLATFORM),macosx)
+ROOTLIBDIR := $(shell $(RC) --libdir)
+ifeq ($(PACKAGE),ANALYSIS)
+ PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) -L$(ROOTLIBDIR)
+endif
+ifeq ($(PACKAGE),ANALYSISalice)
+ PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) $(OADB_LIBS) -L$(ROOTLIBDIR) -lXMLIO -lEG -lTreePlayer
+endif
+endif
+
CHECKXML := $(shell root-config --has-xml)
ifeq ($(CHECKXML),yes)
lib$(PACKAGE).so: $(OBJS_ANALYSIS)
@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"
#! /bin/sh
-make
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
+make
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
// Set our location, so that other packages can find us
gSystem->Setenv("ANALYSIS_INCLUDE", "ANALYSIS");
-
+ // Set our lib coordinates, so that other packages can link to us
+ TString lib = TString::Format("-L%s -lANALYSIS", gSystem->WorkingDirectory());
+ gSystem->Setenv("ANALYSIS_LIBS", lib.Data());
}
#! /bin/sh
-make
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
+make
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
// Set our location, so that other packages can find us
gSystem->Setenv("ANALYSISalice_INCLUDE", "ANALYSISalice");
+
+ // Set our lib coordinates, so that other packages can link to us
+ TString lib = TString::Format("-L%s -lANALYSISalice", gSystem->WorkingDirectory());
+ gSystem->Setenv("ANALYSISalice_LIBS", lib.Data());
}
+ifeq ($(PLATFORM),macosx)
+ROOTLIBDIR := $(shell $(RC) --libdir)
+ifeq ($(PACKAGE),OADB)
+ PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) -L$(ROOTLIBDIR) -lVMC -lMinuit -lEG -lGeom
+endif
+endif
+
CXXFLAGS += $(ALICEINC) -g
lib$(PACKAGE).so: $(OBJS)
@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"
#! /bin/sh
+
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
make
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
+
if (!oadbPath || oadbPath[0] == '\0')
gSystem->Setenv("OADB_PATH", "OADB");
+ // Set our lib coordinates, so that other packages can link to us
+ TString lib = TString::Format("-L%s -lOADB", gSystem->WorkingDirectory());
+ gSystem->Setenv("OADB_LIBS", lib.Data());
+
// We're happy
return 0;
ALICEINC = -I.
ALICEINC += -I./$(PACKAGE)/
+ifneq ($(STEERBase_INCLUDE),)
+ ALICEINC += -I../$(STEERBase_INCLUDE)
+endif
+ifneq ($(ESD_INCLUDE),)
+ ALICEINC += -I../$(ESD_INCLUDE)
+endif
+ifneq ($(AOD_INCLUDE),)
+ ALICEINC += -I../$(AOD_INCLUDE)
+endif
+ifneq ($(ANALYSIS_INCLUDE),)
+ ALICEINC += -I../$(ANALYSIS_INCLUDE)
+endif
+ifneq ($(ANALYSISalice_INCLUDE),)
+ ALICEINC += -I../$(ANALYSISalice_INCLUDE)
+endif
ifneq ($(PWGUDbase_INCLUDE),)
ALICEINC += -I../$(PWGUDbase_INCLUDE)
endif
-
ifneq ($(PWGUDdep_INCLUDE),)
ALICEINC += -I../$(PWGUDdep_INCLUDE)
endif
endif
#endif
-
-
+ifeq ($(PLATFORM),macosx)
+ROOTLIBDIR := $(shell $(RC) --libdir)
+ifeq ($(PACKAGE),PWGUDbase)
+ PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) $(ANALYSIS_LIBS) $(OADB_LIBS) $(ANALYSISalice_LIBS) -L$(ROOTLIBDIR) -lEG
+endif
+endif
CXXFLAGS += $(ALICEINC) -g
lib$(PACKAGE).so: $(OBJS)
@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"
# touch libPWGUDselectors.pkg
# touch libPWGUDdep.pkg
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
make libPWGUDbase.so
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
// Set our location, so that other packages can find us
gSystem->Setenv("PWGUDbase_INCLUDE", "PWGUDbase/base");
+
+ TString lib = TString::Format("-L%s -lPWGUDbase", gSystem->WorkingDirectory());
+ gSystem->Setenv("PWGUDbase_LIBS", lib.Data());
}
Int_t CheckLoadLibrary(const char* library)
endif
#endif
-
+ifeq ($(PLATFORM),macosx)
+ROOTLIBDIR := $(shell $(RC) --libdir)
+ifeq ($(PACKAGE),STEERBase)
+ PACKLDFLAGS = -L$(ROOTLIBDIR) -lVMC -lMinuit -lEG -lGeom
+endif
+ifeq ($(PACKAGE),ESD)
+ PACKLDFLAGS = $(STEERBase_LIBS) -L$(ROOTLIBDIR) -lVMC -lEG -lGeom
+endif
+ifeq ($(PACKAGE),AOD)
+ PACKLDFLAGS = $(STEERBase_LIBS) -L$(ROOTLIBDIR) -lEG -lGeom
+endif
+ifeq ($(PACKAGE),CDB)
+ PACKLDFLAGS = $(STEERBase_LIBS) -L$(ROOTLIBDIR) -lMinuit -lTree -lXMLParser
+endif
+endif
CXXFLAGS += $(ALICEINC) -g
lib$(PACKAGE).so: $(OBJS)
@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"
#! /bin/sh
-make
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
+make
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
gSystem->Load("libSTEERBase");
// Load the AOD library
+ TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
+ gSystem->SetDynamicPath(dypath);
gSystem->Load("libAOD");
// Set the include paths
// Set our location, so that other packages can find us
gSystem->Setenv("AOD_INCLUDE", "AOD/AOD");
+
+ // Set our lib coordinates, so that other packages can link to us
+ TString lib = TString::Format("-L%s -lAOD", gSystem->WorkingDirectory());
+ gSystem->Setenv("AOD_LIBS", lib.Data());
}
+
#! /bin/sh
-make
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
+make
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
gSystem->Load("libSTEERBase");
// Load the CDB library
+ TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
+ gSystem->SetDynamicPath(dypath);
gSystem->Load("libCDB");
// Set the include paths
// Set our location, so that other packages can find us
gSystem->Setenv("CDB_INCLUDE", "CDB/CDB");
+
+ // Set our lib coordinates, so that other packages can link to us
+ TString lib = TString::Format("-L%s -lCDB", gSystem->WorkingDirectory());
+ gSystem->Setenv("CDB_LIBS", lib.Data());
}
#! /bin/sh
-make
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
+make
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
gSystem->Load("libSTEERBase");
// Load the ESD library
+ TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
+ gSystem->SetDynamicPath(dypath);
gSystem->Load("libESD");
// Set the include paths
// Set our location, so that other packages can find us
gSystem->Setenv("ESD_INCLUDE", "ESD/ESD");
+
+ // Set our lib coordinates, so that other packages can link to us
+ TString lib = TString::Format("-L%s -lESD", gSystem->WorkingDirectory());
+ gSystem->Setenv("ESD_LIBS", lib.Data());
}
+
#! /bin/sh
-make
+if [ "" = "clean" ]; then
+ make clean
+ exit 0
+fi
+
+make
+rc=$?
+echo "rc=$?"
+if [ $? != "0" ] ; then
+ exit 1
+fi
+exit 0
gSystem->Load("libMinuit");
// Load the STEERBase library
- TString dypath = gSystem->GetDynamicPath();
- dypath.Prepend(".:");
+ TString dypath = TString::Format("%s:%s", gSystem->WorkingDirectory(), gSystem->GetDynamicPath());
gSystem->SetDynamicPath(dypath);
gSystem->Load("libSTEERBase");
// Set our location, so that other packages can find us
gSystem->Setenv("STEERBase_INCLUDE", "STEERBase/STEERBase");
+
+ // Set our lib coordinates, so that other packages can link to us
+ TString lib = TString::Format("-L%s -lSTEERBase", gSystem->WorkingDirectory());
+ gSystem->Setenv("STEERBase_LIBS", lib.Data());
}