]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.macosx64
new functions, mc analysis can be performed also for pi0 and k0. eta of seed can...
[u/mrichter/AliRoot.git] / build / Makefile.macosx64
index 4a25e053c3240fa4d7bfd1f12c8871436e9f761e..781093761762b722734eb4d424b419c6c305da5d 100644 (file)
@@ -1,3 +1,4 @@
+# -*- mode: makefile -*-
 # Makefile for AliRoot for MacOS X with gcc
 
 XARGS = xargs
@@ -13,16 +14,6 @@ ifeq (,$(FINK_ROOT))
 FINK_ROOT=/usr/local
 endif
 
-# The compilers
-CXX           = g++ 
-CC           = gcc
-
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
-F77          = g95
-else
-F77          = gfortran
-endif
-
 # Global optimisation
 OPT           = -O -g
 NOOPT         = -O0 -g
@@ -30,8 +21,8 @@ NOOPT         = -O0 -g
 CXXOPT        = $(OPT) 
 CXXNOOPT      = $(NOOPT) 
 COPT         = $(OPT)
-FOPT         = $(OPT) -fno-second-underscore -m64
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+FOPT         = $(OPT) -fno-second-underscore
+ifneq (,$(findstring g95,$(F77)))
 FOPT        += -fbounds-check
 endif
 
@@ -41,17 +32,19 @@ CLIBCXXOPTS   =
 CLIBCOPT      =
 CLIBFOPT      = $(CLIBDEFS)
 
-CXXSTF        = -m64 -pipe -Wall -W -Wno-long-double -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wconversion -fno-default-inline -fno-inline -I/usr/X11R6/include -I$(FINK_ROOT)/include
+CXXWARN              = -Wall -Wno-long-long -W -Weffc++ -Wshadow -Woverloaded-virtual -ansi
+
+CXXSTF        = -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -fno-default-inline -fno-inline -I/usr/X11R6/include -I$(FINK_ROOT)/include
 
 # Compiler flags
 CXXFLAGS      = $(CXXOPT) $(CXXSTF)
 
 CXXFLAGSNO    = $(CXXNOOPT) $(CXXSTF) 
 
-CFLAGS       = $(COPT) -m64 -Wall -W -fno-common -pipe -I$(FINK_ROOT)/include
+CFLAGS       = $(COPT) -Wall -W -fno-common -pipe -I$(FINK_ROOT)/include
 
 FFLAGS        = $(CLIBFOPT) $(FOPT)
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
+ifneq (,$(findstring g95,$(F77)))
 FFLAGS        += -ftrace=full
 FFLAGS       +=-DFORTRAN_G95
 else
@@ -66,19 +59,14 @@ CINTFLAGS     =
 
 LD            = export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_MAJOR).$(MACOSX_MINOR) ; \
                unset LD_PREBIND ; \
-               g++
-LDFLAGS       = $(OPT) -m64 $(DICTLOAD)
+               $(shell root-config --ld)
+LDFLAGS       = $(OPT) $(DICTLOAD)
 
 SHLD        := $(LD)
-SOFLAGS      := -m64 -bundle -undefined dynamic_lookup
+SOFLAGS      := -m64 -dynamiclib -undefined dynamic_lookup -single_module
 SHLIB        := 
 SOEXT       := so
 
-DYLD        := $(LD)
-DYFLAGS       = -m64 -dynamiclib -undefined dynamic_lookup -single_module
-DYLIB        := 
-DYEXT        := dylib
-
 ALLD         = ar
 ALFLAGS       = cr
 ALLIB         = 
@@ -92,8 +80,8 @@ EXEFLAGS     := -bind_at_load
 
 #System libraries
 
-ifeq (g95,$(findstring g95,$(ROOTBUILD)))
-SYSLIBS += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
+ifneq (,$(findstring g95,$(F77)))
+SYSLIBS += -L$(shell $(F77) --print-search-dirs | sed -n -e 's/install: //p') -lf95
 else
 SYSLIBS += -ldl $(shell $(F77) -m64 -print-file-name=libgfortran.dylib)
 SYSLIBS += $(shell $(F77) -m64 -print-file-name=libgfortranbegin.a)