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