patch for GCC < 4.3
[u/mrichter/AliRoot.git] / build / Makefile.macosxicc
CommitLineData
d95a3ef8 1# -*- mode: makefile -*-
ae92f3f5 2# Makefile for AliRoot for MacOS X with gcc
3
4XARGS = xargs
5
6# fink directories
7FINK_ROOT := $(shell which fink | sed -e 's?/bin/fink??')
8ifeq (,$(FINK_ROOT))
9# No fink, build will probably fail, but we try a guess
10FINK_ROOT=/usr/local
11endif
12
ae92f3f5 13# Global optimisation
14OPT = -O -g
15NOOPT = -g
16
17CXXOPT = $(OPT)
18CXXNOOPT = $(NOOPT)
19COPT = $(OPT)
20FOPT = $(OPT)
21
22# CERNLIB defines
23CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC
24CLIBCXXOPTS =
25CLIBCOPT =
26CLIBFOPT = $(CLIBDEFS)
27
28# Compiler flags
29CXXFLAGS = $(CXXOPT) -fPIC -wd1476 -I/usr/X11R6/include -I$(FINK_ROOT)/include
30
31CXXFLAGSNO = $(CXXNOOPT)
32
33CFLAGS = $(COPT) -fPIC -restrict -I$(FINK_ROOT)/include
34
35FFLAGS = $(CLIBFOPT) $(FOPT)
36# rmkdepend flags for building dependencies of FORTRAN files
37DEPENDFFLAGS = $(FFLAGS)
38
39# rootcint flags
40CINTFLAGS =
41
5f30d16c 42LD = $(shell root-config --ld)
ae92f3f5 43LDFLAGS = $(OPT) $(DICTLOAD)
44
45SHLD := $(LD)
46SOFLAGS := $(OPT) -dynamiclib -undefined dynamic_lookup -single_module
47SHLIB :=
48SOEXT := so
49
50DYLD := $(LD)
51DYFLAGS = -dynamiclib -undefined dynamic_lookup -single_module
52DYLIB :=
53DYEXT := dylib
54
55ALLD = ar
56ALFLAGS = cr
57ALLIB =
58AEXT = a
59
60DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
61
62EXEFLAGS := -bind_at_load
63
64#System libraries
65
66SYSLIBS := -L/usr/X11R6/lib -lX11 -lGL $(LIBNOVER) -L/usr/local/lib \
67 -lXt -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
68 -lifcore -lifport
69
70