]> git.uio.no Git - u/mrichter/AliRoot.git/blame - build/Makefile.Darwin
Using makefile mode in Emacs
[u/mrichter/AliRoot.git] / build / Makefile.Darwin
CommitLineData
40c469d5 1PLATFORM:=Darwin
2
3# The compilers
4CXX = g++
5F77 = g77
6CC = gcc
7
8# Global optimisation
9OPT = -O -g
10
3c5cb192 11CXXOPTS = $(OPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0
40c469d5 12COPT = $(OPT) -Wall -W -fno-common -fweak-coalesced
a744ab41 13FOPT = $(OPT) -fno-second-underscore
40c469d5 14CXXFLAGS = $(CXXOPTS) -I/sw/include
a744ab41 15CFLAGS = -Wall -pipe -I/sw/include
40c469d5 16
17# rootcint flags
94ad43f6 18CINTFLAGS =
40c469d5 19
20# CERNLIB defines
21
22CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
23CLIBCXXOPTS =
24CLIBCOPT =
25CLIBFOPT =
26
27# Common Fortran compilation flags
28FFLAGS = $(CLIBFOPT) $(CLIBDEFS) $(FOPT)
29
a744ab41 30LD = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
31 unset LD_PREBIND ; \
32 g++
40c469d5 33LDFLAGS = $(OPT)
34
35SHLD := $(LD)
a744ab41 36SOFLAGS := -bundle -flat_namespace -undefined dynamic_lookup
88cb7938 37#SHLIB := -lg2c
40c469d5 38SHLIB :=
39SOEXT := so
40
41DYLD := $(LD)
a744ab41 42DYFLAGS = -dynamiclib -flat_namespace -undefined dynamic_lookup -single_module
40c469d5 43DYLIB :=
44DYEXT := dylib
45
46ALLD = ar
47ALFLAGS = cr
48ALLIB =
49AEXT = a
50
51
52# rmkdepend flags for building dependencies of FORTRAN files
53DEPENDFFLAGS = $(FFLAGS)
54
55DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
56
57GLIBS = -L/usr/X11R6/lib -lX11
58
59#System libraries
60SYSLIBS = -ldl
61
88cb7938 62EXEFLAGS+= -Xlinker -bind_at_load -Xlinker -m #-lg2c
40c469d5 63
64
65
66