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