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