introduce platform dependent Makefiles using names as provided by
[u/mrichter/AliRoot.git] / build / Makefile.macosx
CommitLineData
02a1d5c1 1PLATFORM:=Darwin
2
3# The compilers
4CXX = g++
5F77 = g77
6CC = gcc
7
8# Global optimisation
9OPT = -O -g
10
11CXXOPTS = $(OPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0
12COPT = $(OPT) -Wall -W -fno-common -fweak-coalesced
13FOPT = $(OPT) -fno-second-underscore
14CXXFLAGS = $(CXXOPTS) -I/sw/include
15CFLAGS = -Wall -pipe -I/sw/include
16
17# rootcint flags
18CINTFLAGS =
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
30LD = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
31 unset LD_PREBIND ; \
32 g++
33LDFLAGS = $(OPT)
34
35SHLD := $(LD)
36SOFLAGS := -bundle -flat_namespace -undefined dynamic_lookup
37#SHLIB := -lg2c
38SHLIB :=
39SOEXT := so
40
41DYLD := $(LD)
42DYFLAGS = -dynamiclib -flat_namespace -undefined dynamic_lookup -single_module
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
62EXEFLAGS+= -Xlinker -bind_at_load -Xlinker -m #-lg2c
63
64
65
66