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