In AddMisAlignModule/DetElement(): use AliAlignObj::LayerToVolUID
[u/mrichter/AliRoot.git] / build / Makefile.macosx
CommitLineData
b934f194 1# Makefile for AliRoot for MacOS X with gcc
2
f3564e28 3# OS version
4MACOSX_MAJOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 1))
5MACOSX_MINOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2))
6
7# fink directories
8FINK_ROOT := $(shell which fink | sed -e 's?/bin/fink??')
796dbee6 9ifeq (,$(FINK_ROOT))
10# No fink, build will probably fail, but we try a guess
11FINK_ROOT=/usr/local
12endif
f3564e28 13
02a1d5c1 14# The compilers
15CXX = g++
02a1d5c1 16CC = gcc
17
f3564e28 18ifeq (g95,$(findstring g95,$(ROOTBUILD)))
19F77 = g95
20else
21F77 = gfortran
22endif
f3564e28 23
02a1d5c1 24# Global optimisation
796dbee6 25OPT = -O -g
19ca05d1 26NOOPT = -g
02a1d5c1 27
19ca05d1 28CXXOPT = $(OPT)
29CXXNOOPT = $(NOOPT)
30COPT = $(OPT)
02a1d5c1 31FOPT = $(OPT) -fno-second-underscore
de6c7cfd 32ifeq (g95,$(findstring g95,$(ROOTBUILD)))
33FOPT += -fbounds-check
34endif
02a1d5c1 35
36# CERNLIB defines
796dbee6 37CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC
02a1d5c1 38CLIBCXXOPTS =
39CLIBCOPT =
19ca05d1 40CLIBFOPT = $(CLIBDEFS)
41
42# Compiler flags
21cf279e 43CXXFLAGS = $(CXXOPT) -Wall -W -Wno-long-double -pipe -fbounds-check -fsigned-char -fno-common -fmessage-length=0 -I$(FINK_ROOT)/include -Woverloaded-virtual #-Weffc++
796dbee6 44
6c111d79 45ifeq (g95,$(findstring g95,$(ROOTBUILD)))
46CXXFLAGS+=-DFORTRAN_G95
47endif
48CXXFLAGSNO = $(CXXNOOPT) -Wall -W -pipe -fsigned-char -fno-common -fmessage-length=0 -I$(FINK_ROOT)/include -Wno-long-double
796dbee6 49
6c111d79 50CFLAGS = $(COPT) -Wall -W -fno-common -pipe -I$(FINK_ROOT)/include
796dbee6 51
19ca05d1 52FFLAGS = $(CLIBFOPT) $(FOPT)
53# rmkdepend flags for building dependencies of FORTRAN files
54DEPENDFFLAGS = $(FFLAGS)
55
56# rootcint flags
57CINTFLAGS =
02a1d5c1 58
f3564e28 59LD = export MACOSX_DEPLOYMENT_TARGET=$(MACOSX_MAJOR).$(MACOSX_MINOR) ; \
02a1d5c1 60 unset LD_PREBIND ; \
61 g++
2bdfa405 62LDFLAGS = $(OPT) $(DICTLOAD)
02a1d5c1 63
64SHLD := $(LD)
2469b598 65SOFLAGS := -bundle -undefined dynamic_lookup
f3564e28 66SHLIB :=
02a1d5c1 67SOEXT := so
68
69DYLD := $(LD)
2469b598 70DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module
f3564e28 71DYLIB :=
02a1d5c1 72DYEXT := dylib
73
74ALLD = ar
75ALFLAGS = cr
76ALLIB =
77AEXT = a
78
02a1d5c1 79DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
80
de6c7cfd 81SYSLIBS := -L/usr/X11R6/lib -lX11
02a1d5c1 82
de6c7cfd 83EXEFLAGS := -bind_at_load
f3564e28 84
02a1d5c1 85#System libraries
796dbee6 86
f3564e28 87ifeq (g95,$(findstring g95,$(ROOTBUILD)))
21cf279e 88SYSLIBS += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
f3564e28 89else
21cf279e 90SYSLIBS += -ldl -L$(shell gfortran --print-search-dirs | sed -n -e 's/install: //p') -lgfortranbegin -lgfortran
f3564e28 91endif