]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - build/Makefile.macosx64
Rotate MUON trigger chambers around the x-axis with 0.794 degrees
[u/mrichter/AliRoot.git] / build / Makefile.macosx64
index b56957097e2d8128057210a1c94f5b9ef99d8801..df94e5edad9fafc209eddead8abcc85d9d526c72 100644 (file)
@@ -14,11 +14,6 @@ ifeq (,$(FINK_ROOT))
 FINK_ROOT=/usr/local
 endif
 
-# The compilers
-CXX           = g++ 
-CC           = gcc
-F77          = $(shell root-config --f77)
-
 # Global optimisation
 OPT           = -O -g
 NOOPT         = -O0 -g
@@ -26,8 +21,8 @@ NOOPT         = -O0 -g
 CXXOPT        = $(OPT) 
 CXXNOOPT      = $(NOOPT) 
 COPT         = $(OPT)
-FOPT         = $(OPT) -fno-second-underscore -m64
-ifeq (g95,$(F77))
+FOPT         = $(OPT) -fno-second-underscore
+ifneq (,$(findstring g95,$(F77)))
 FOPT        += -fbounds-check
 endif
 
@@ -36,18 +31,19 @@ CLIBDEFS      = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC
 CLIBCXXOPTS   =
 CLIBCOPT      =
 CLIBFOPT      = $(CLIBDEFS)
+CXXSTF        = -pipe -Wall -W -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wconversion -Wshadow -fno-default-inline -fno-inline -I/usr/X11R6/include -I$(FINK_ROOT)/include
 
-CXXSTF        = -m64 -pipe -Wall -W -Wno-long-double -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wconversion -Wshadow -fno-default-inline -fno-inline -I/usr/X11R6/include -I$(FINK_ROOT)/include
+CXXSTF        = -pipe -Wall -W -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -Woverloaded-virtual -Weffc++ -Wshadow -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,$(F77))
+ifneq (,$(findstring g95,$(F77)))
 FFLAGS        += -ftrace=full
 FFLAGS       +=-DFORTRAN_G95
 else
@@ -62,19 +58,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         = 
@@ -88,8 +79,8 @@ EXEFLAGS     := -bind_at_load
 
 #System libraries
 
-ifeq (g95,$(F77))
-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)