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