Adding makefile for Darwin and XLC compiler
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Mar 2004 14:22:12 +0000 (14:22 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Mar 2004 14:22:12 +0000 (14:22 +0000)
build/Makefile.Darwinxlc [new file with mode: 0644]

diff --git a/build/Makefile.Darwinxlc b/build/Makefile.Darwinxlc
new file mode 100644 (file)
index 0000000..6a51ed9
--- /dev/null
@@ -0,0 +1,71 @@
+PLATFORM:=Darwinxlc
+
+# The compilers
+CXX           = xlC
+F77          = xlf
+CC           = xlc
+
+# Global optimisation
+OPT           = -qnoopt #-O3 -g
+
+CXXOPTS       = $(OPT) -D_xlc_ -qpic \
+                -qflttrap=overflow:zerodivide:invalid:inexact:enable
+COPT         = $(OPT) -D_xlc_ -qpic \
+                -qflttrap=overflow:zerodivide:invalid:inexact:enable
+FOPT         = $(OPT) -WF,-D_xlc_ -qpic -qextname \
+                -qflttrap=overflow:zerodivide:invalid:inexact:enable
+CXXFLAGS      = $(CXXOPTS) -I/sw/include
+CFLAGS       = 
+
+# rootcint flags
+CINTFLAGS     = 
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      =
+
+# Common Fortran compilation flags
+FFLAGS = $(CLIBFOPT)  $(shell echo $(CLIBDEFS) | sed -e's/-D/-WF,-D/g') $(FOPT)
+               
+LD            = xlC
+LDFLAGS       = $(OPT) 
+
+SHLD        := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
+               unset LD_PREBIND ; \
+               xlC
+SOFLAGS      := -bundle -flat_namespace -undefined dynamic_lookup
+#SHLIB        := -lg2c
+SHLIB        :=
+SOEXT       := so
+
+DYLD        := export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
+               unset LD_PREBIND ; \
+               xlC
+DYFLAGS       = -qmkshrobj -flat_namespace -undefined dynamic_lookup -single_module
+DYLIB        :=
+DYEXT        := dylib
+
+ALLD         = ar
+ALFLAGS       = cr
+ALLIB         = 
+AEXT         = a
+
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(FFLAGS)
+
+DEPENDCXXFLAGS = $(CXXFLAGS) -I/usr/include/sys
+
+GLIBS         = -L/usr/X11R6/lib -lX11
+
+#System libraries
+SYSLIBS = -ldl
+
+EXEFLAGS+= -Wl,-bind_at_load  #-lg2c
+
+
+
+