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