set PLATFORM to the operating system (linux, macosx, alpha, ...) and
[u/mrichter/AliRoot.git] / build / Makefile.macosxxlc
CommitLineData
b934f194 1# Makefile for AliRoot for MacOS X using the IBM xlc compiler
2
3PLATFORM = macosx
4
02a1d5c1 5# The compilers
6CXX = xlC
7F77 = xlf
8CC = xlc
9
10# Global optimisation
11OPT = -qnoopt #-O3 -g
12
13CXXOPTS = $(OPT) -qpic \
14 -qflttrap=overflow:zerodivide:invalid:inexact:enable
15COPT = $(OPT) -qpic \
16 -qflttrap=overflow:zerodivide:invalid:inexact:enable
17FOPT = $(OPT) -qpic -qextname \
18 -qflttrap=overflow:zerodivide:invalid:inexact:enable
19CXXFLAGS = $(CXXOPTS) -I/sw/include
20CFLAGS =
21
22# rootcint flags
23CINTFLAGS =
24
25# CERNLIB defines
26
27CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
28CLIBCXXOPTS =
29CLIBCOPT =
30CLIBFOPT =
31
32# Common Fortran compilation flags
33FFLAGS = $(CLIBFOPT) $(shell echo $(CLIBDEFS) | sed -e's/-D/-WF,-D/g') $(FOPT)
34
35LD = xlC
36LDFLAGS = $(OPT)
37
38SHLD := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
39 unset LD_PREBIND ; \
40 xlC
41SOFLAGS := -bundle -flat_namespace -undefined dynamic_lookup
42#SHLIB := -lg2c
43SHLIB :=
44SOEXT := so
45
46DYLD := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
47 unset LD_PREBIND ; \
48 xlC
49DYFLAGS = -qmkshrobj -flat_namespace -undefined dynamic_lookup -single_module
50DYLIB :=
51DYEXT := dylib
52
53ALLD = ar
54ALFLAGS = cr
55ALLIB =
56AEXT = a
57
58
59# rmkdepend flags for building dependencies of FORTRAN files
60DEPENDFFLAGS = $(FFLAGS)
61
62DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
63
64GLIBS = -L/usr/X11R6/lib -lX11
65
66#System libraries
67SYSLIBS = -ldl
68
69EXEFLAGS+= -Wl,-bind_at_load #-lg2c
70
71
72
73