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