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