]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/Makefile
revert commit 40e2a6d47710b0e36d8711fe85bab9f9043ecb9c
[u/mrichter/AliRoot.git] / ANALYSIS / Makefile
index 6b774da5a4483f13c52cf1ddfd31f506b0c06df5..fd1baa0891f2589c6e62949b48da0774dad1291d 100644 (file)
@@ -39,6 +39,16 @@ endif
   endif
 #endif
 
+ifeq ($(PLATFORM),macosx)
+ROOTLIBDIR     := $(shell $(RC) --libdir)
+ifeq ($(PACKAGE),ANALYSIS)
+   PACKLDFLAGS = $(STEERBase_LIBS) $(ESD_LIBS) $(AOD_LIBS) -L$(ROOTLIBDIR) -lXMLParser
+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)
@@ -63,7 +73,11 @@ PARFILE       = $(PACKAGE).par
 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"