introduce platform dependent Makefiles using names as provided by
authorrdm <rdm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Jun 2004 11:29:55 +0000 (11:29 +0000)
committerrdm <rdm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Jun 2004 11:29:55 +0000 (11:29 +0000)
root-config --arch.

build/Makefile.alphacxx6 [new file with mode: 0644]
build/Makefile.hpuxacc [new file with mode: 0644]
build/Makefile.linux [new file with mode: 0644]
build/Makefile.linuxia64ecc [new file with mode: 0644]
build/Makefile.linuxia64gcc [new file with mode: 0644]
build/Makefile.linuxicc [new file with mode: 0644]
build/Makefile.macosx [new file with mode: 0644]
build/Makefile.macosxxlc [new file with mode: 0644]
build/Makefile.solarisCC5 [new file with mode: 0644]

diff --git a/build/Makefile.alphacxx6 b/build/Makefile.alphacxx6
new file mode 100644 (file)
index 0000000..32ecf23
--- /dev/null
@@ -0,0 +1,77 @@
+# Makefile to build ALIROOT for OSF1
+
+# Which Machine 
+PLATFORM      = alpha
+
+# The compilers
+CXX           = cxx 
+F77          = f77
+
+# Global optimisation
+OPT           = -g 
+
+CXXOPTS       = $(OPT) -nostdnew -rtti -taso
+COPT         = $(OPT)
+FOPT         = $(OPT) -nofor_main -warn noinformational -taso
+CXXFLAGS      = $(CXXOPTS)
+CFLAGS       = -fPIC -pipe -mcpu=ev5 -D__osf__ -D__alpha
+
+# rootcint flags
+CINTFLAGS     = -D__DECCXX
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(filter-out -warn noinformational,$(FFLAGS))
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_DECS -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      = -I. -warn noinformational
+
+# Common Fortran compilation flags
+FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS)
+               
+LD            = cxx
+LDFLAGS       = 
+
+SHLD         = ld
+SOFLAGS       =  -L/usr/lib/cmplrs/cxx -rpath /usr/lib/cmplrs/cxx \
+               -expect_unresolved "*" -msym -shared \
+               /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/cxx/_main.o 
+SOFLAGS += -lUfor -lfor -lFutil
+SOFLAGS += -taso
+
+SHLIB         = -lUfor -lfor -lFutil
+SOEXT        = so
+
+ROOTLIBS += 
+
+#System libraries
+SYSLIBS = -lbsd
+
+# Flags for static libraries
+AFLAGS = $(filter-out -rpath /usr/lib/cmplrs/cxx -msym -shared /usr/lib/cmplrs/cc/crt0.o,$(SOFLAGS))
+
+# Additional flags and libraries for building aliroot executable
+EXEFLAGS += -lXm -lXt -lX11 -lPW -lUfor -lfor -lFutil -lots 
+EXEFLAGS += -taso
+
+# Cure funny problem 
+# sometimes in dependencies system include files of the sort
+# /usr/.../filename AND /usr/.../filename.cc are present
+# DEC believes that /usr/.../filename is the executable to be
+# built from /usr/.../filename.cc 
+# Just avoid this to happen
+
+% : %.cc
+       @;
+
+
+
+
+
+
+
+
+
diff --git a/build/Makefile.hpuxacc b/build/Makefile.hpuxacc
new file mode 100644 (file)
index 0000000..dbc59ba
--- /dev/null
@@ -0,0 +1,56 @@
+PLATFORM:= hpux
+
+# The compilers
+
+# The compilers
+CXX           = aCC
+F77          = f77
+CC           = cc
+
+# Global optimisation
+OPT           = -O
+
+CXXOPTS       = $(OPT) -Wc,-ansi_for_scope,on +Z -z +W70,495,740,749,823,829 -Dextname
+COPT          = $(OPT) +Z -Ae
+FOPT          = $(OPT) +ppu +Z
+
+
+
+CXXFLAGS      = $(CXXOPTS)
+CFLAGS       = $(COPT)
+
+# rootcint flags
+CINTFLAGS     = 
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_HPUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      = +z -Ae 
+CLIBFOPT      = -WF,-P
+
+# Common Fortran compilation flags
+FFLAGS = $(CLIBFOPT)  $(CLIBDEFS) $(FOPT)
+
+LD            = aCC
+LDFLAGS       = $(OPT) -z -Wl,+s -Wl,-E
+
+SHLD         = $(LD)
+SOFLAGS       = -b /usr/lib/libm.sl 
+
+SOEXT        = sl
+
+# additional ROOT libraries
+ROOTLIBS  += -lcrypt 
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(FFLAGS)
+
+GLIBS         = -L/usr/lib/X11R6 -lX11 
+
+# System libraries
+
+
+
+
+
diff --git a/build/Makefile.linux b/build/Makefile.linux
new file mode 100644 (file)
index 0000000..bb00cee
--- /dev/null
@@ -0,0 +1,64 @@
+PLATFORM:=linux
+
+# The compilers
+CXX           = g++ 
+F77          = g77
+CC           = gcc
+CCMAJORV      = $(shell $(CC) -dumpversion | cut -d. -f1)
+
+# Global optimisation
+OPT           = -O -g
+
+ifeq ($(CCMAJORV),2)
+CXXOPTS       = $(OPT) -W -Wall -fPIC -pipe
+else
+CXXOPTS       = $(OPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi
+endif
+COPT         = $(OPT)
+FOPT         = $(OPT) -fno-second-underscore
+CXXFLAGS      = $(CXXOPTS)
+CFLAGS       = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi
+
+# rootcint flags
+CINTFLAGS     = 
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      =
+
+# Common Fortran compilation flags
+FFLAGS = $(CLIBFOPT)  $(CLIBDEFS) $(FOPT)
+               
+LD            = g++
+LDFLAGS       = $(OPT) 
+
+SHLD         = $(LD)
+SOFLAGS       = $(OPT) -shared -Wl 
+SHLIB         = -lg2c
+SOEXT        = so
+
+ALLD         = ar
+ALFLAGS       = cr
+ALLIB         = 
+AEXT         = a
+
+# additional ROOT libraries
+ROOTLIBS  += -lcrypt 
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(FFLAGS)
+
+LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
+GLIBS         = -L/usr/X11R6/lib -lX11  $(LIBNOVER)
+
+#System libraries
+SYSLIBS = -ldl
+
+EXEFLAGS+= -lg2c
+
+
+
+
diff --git a/build/Makefile.linuxia64ecc b/build/Makefile.linuxia64ecc
new file mode 100644 (file)
index 0000000..62f9219
--- /dev/null
@@ -0,0 +1,55 @@
+PLATFORM:=linuxicc
+
+# The compilers
+CXX           = ecc 
+F77          = efc
+CC           = ecc
+
+# Global optimisation
+OPT           = -g #-O
+
+CXXOPTS       = $(OPT)
+COPT         = $(OPT)
+FOPT         = $(OPT)
+CXXFLAGS      = $(CXXOPTS)
+CFLAGS       = $(COPT)
+
+# rootcint flags
+CINTFLAGS     = 
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      =
+
+# Common Fortran compilation flags
+FFLAGS = $(CLIBFOPT)  $(CLIBDEFS) $(FOPT)
+
+LD            = ecc
+LDFLAGS       = $(OPT) 
+
+SHLD         = $(LD)
+SOFLAGS       = -Wl,-soname,$$TMPLIB -shared -O
+SHLIB         =
+SOEXT        = so
+
+ALLD         = ar
+ALFLAGS       = cr
+ALLIB         = 
+AEXT         = a
+
+# additional ROOT libraries
+ROOTLIBS  += -lcrypt 
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(FFLAGS)
+
+LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
+GLIBS         = $(LIBNOVER)
+
+#System libraries
+SYSLIBS =
+
+EXEFLAGS+= -L/usr/local/lib -lXt -lCEPCF90 -lF90 -lPEPCF90 -lintrins
diff --git a/build/Makefile.linuxia64gcc b/build/Makefile.linuxia64gcc
new file mode 100644 (file)
index 0000000..fa2192c
--- /dev/null
@@ -0,0 +1,59 @@
+PLATFORM:=linux
+
+# The compilers
+CXX           = g++ 
+F77          = g77
+CC           = gcc
+
+# Global optimisation
+OPT           = -g #-O
+
+CXXOPTS       = $(OPT) -Wall -fPIC -pipe
+COPT         = $(OPT)
+FOPT         = $(OPT) -fno-second-underscore
+CXXFLAGS      = $(CXXOPTS)
+CFLAGS       = -Wall -fPIC -pipe
+
+# rootcint flags
+CINTFLAGS     = 
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      =
+
+# Common Fortran compilation flags
+FFLAGS = $(CLIBFOPT)  $(CLIBDEFS) $(FOPT)
+               
+LD            = g++
+LDFLAGS       = $(OPT) -Wl,-Map -Wl,$@.map
+
+SHLD         = $(LD)
+SOFLAGS       = -shared -Wl #-O2
+#SHLIB         = -lg2c
+SOEXT        = so
+
+ALLD         = ar
+ALFLAGS       = cr
+ALLIB         = 
+AEXT         = a
+
+# additional ROOT libraries
+ROOTLIBS  += -lcrypt 
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(FFLAGS)
+
+LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
+GLIBS         = -L/usr/X11R6/lib -lX11  $(LIBNOVER)
+
+#System libraries
+SYSLIBS = -ldl -lbsd
+
+EXEFLAGS+= -lg2c
+
+
+
+
diff --git a/build/Makefile.linuxicc b/build/Makefile.linuxicc
new file mode 100644 (file)
index 0000000..9cffb66
--- /dev/null
@@ -0,0 +1,74 @@
+PLATFORM:=linuxicc
+
+# The C/C++ compilers
+CXX           = icc
+CC            = icc
+
+# Compiler version:
+ICC_MAJOR    := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
+                cut -d'.' -f1)
+ICC_MINOR    := $(shell $(CXX) -V 2>&1 | awk '{ if (NR==1) print $$8 }' | \
+                cut -d'.' -f2)
+
+# The Fortran compiler
+ifeq ($(ICC_MAJOR),8)
+F77           = ifort
+else
+F77           = ifc
+endif
+
+# Global optimisation
+OPT           = -O -g
+
+CXXOPTS       = $(OPT)
+COPT          = $(OPT)
+FOPT          = $(OPT)
+CXXFLAGS      = $(CXXOPTS)
+CFLAGS        = $(COPT)
+
+# rootcint flags
+CINTFLAGS     =
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      =
+
+# Common Fortran compilation flags
+FFLAGS = $(CLIBFOPT) $(CLIBDEFS) $(FOPT)
+
+LD            = icc
+LDFLAGS       = $(OPT)
+
+SHLD          = $(LD)
+SOFLAGS       = -Wl,-soname,$$TMPLIB -shared $(OPT)
+SHLIB         =
+SOEXT        = so
+
+ALLD          = ar
+ALFLAGS       = cr
+ALLIB         =
+AEXT         = a
+
+# additional ROOT libraries
+ROOTLIBS     += -lcrypt
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS  = $(FFLAGS)
+
+LIBNOVER      = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'`
+GLIBS         = $(LIBNOVER)
+
+#System libraries
+SYSLIBS =
+
+EXEFLAGS     += -L/usr/local/lib -lXt
+ifeq ($(ICC_MAJOR),8)
+EXEFLAGS     += -L$(shell which ifort | sed -e 's|bin/ifort|lib|') \
+                -lifcore
+else
+EXEFLAGS     += -L$(shell which ifc | sed -e 's|bin/ifc|lib|') \
+                -lF90 -lCEPCF90 -lintrins
+endif
diff --git a/build/Makefile.macosx b/build/Makefile.macosx
new file mode 100644 (file)
index 0000000..e5f9ec1
--- /dev/null
@@ -0,0 +1,66 @@
+PLATFORM:=Darwin
+
+# The compilers
+CXX           = g++ 
+F77          = g77
+CC           = gcc
+
+# Global optimisation
+OPT           = -O -g
+
+CXXOPTS       = $(OPT) -Wall -W -pipe -fsigned-char -fno-common -fweak-coalesced -fmessage-length=0
+COPT         = $(OPT) -Wall -W -fno-common -fweak-coalesced
+FOPT         = $(OPT) -fno-second-underscore 
+CXXFLAGS      = $(CXXOPTS) -I/sw/include
+CFLAGS       = -Wall -pipe -I/sw/include
+
+# rootcint flags
+CINTFLAGS     = 
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      =
+
+# Common Fortran compilation flags
+FFLAGS = $(CLIBFOPT)  $(CLIBDEFS) $(FOPT)
+               
+LD            = export MACOSX_DEPLOYMENT_TARGET=10.3 ; \
+               unset LD_PREBIND ; \
+               g++
+LDFLAGS       = $(OPT) 
+
+SHLD        := $(LD)
+SOFLAGS      := -bundle -flat_namespace -undefined dynamic_lookup
+#SHLIB        := -lg2c
+SHLIB        :=
+SOEXT       := so
+
+DYLD        := $(LD)
+DYFLAGS       = -dynamiclib -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+= -Xlinker -bind_at_load -Xlinker -m #-lg2c
+
+
+
+
diff --git a/build/Makefile.macosxxlc b/build/Makefile.macosxxlc
new file mode 100644 (file)
index 0000000..4352f61
--- /dev/null
@@ -0,0 +1,71 @@
+PLATFORM:=Darwinxlc
+
+# The compilers
+CXX           = xlC
+F77          = xlf
+CC           = xlc
+
+# Global optimisation
+OPT           = -qnoopt #-O3 -g
+
+CXXOPTS       = $(OPT) -qpic \
+                -qflttrap=overflow:zerodivide:invalid:inexact:enable
+COPT         = $(OPT) -qpic \
+                -qflttrap=overflow:zerodivide:invalid:inexact:enable
+FOPT         = $(OPT) -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
+
+
+
+
diff --git a/build/Makefile.solarisCC5 b/build/Makefile.solarisCC5
new file mode 100644 (file)
index 0000000..ad82ba1
--- /dev/null
@@ -0,0 +1,53 @@
+# Makefile to build ALIROOT for SunOS
+
+# Which Machine 
+PLATFORM      = solaris
+
+# The compilers
+CXX           = /opt/SUNWspro/bin/CC
+CC           = /opt/SUNWspro/bin/cc
+F77          = f77
+
+# Global optimisation
+OPT           = -O 
+
+CXXOPTS       = $(OPT) +w -KPIC -features=rtti
+COPT         = $(OPT) -KPIC -erroff=%none
+FOPT         = $(OPT) -KPIC
+CXXFLAGS      = $(CXXOPTS)
+CFLAGS       = 
+
+# rootcint flags
+CINTFLAGS     = 
+
+# CERNLIB defines
+
+CLIBDEFS      = -DCERNLIB_SUN -DCERNLIB_BLDLIB -DCERNLIB_CZ
+CLIBCXXOPTS   =
+CLIBCOPT      =
+CLIBFOPT      = -xpp=cpp
+               
+SHLIB         =  -L/opt/SUNWspro/lib -lF77 -lM77 /opt/SUNWspro/lib/libsunmath.so.1
+SOEXT        = so
+
+LD            = /opt/SUNWspro/bin/CC
+LDFLAGS       = $(OPT) -Qoption ld -t
+
+SHLD         = $(LD)
+SOFLAGS       = -G $(LDFLAGS) $(SHLIB)  
+
+# Common Fortran compilation flags
+FFLAGS = $(FOPT) $(CLIBFOPT) $(CLIBDEFS) 
+
+# rmkdepend flags for building dependencies of FORTRAN files
+DEPENDFFLAGS = $(FFLAGS) 
+
+ROOTLIBS += -lm -ldl -lnsl -lsocket
+
+# Additional flags and libraries for building aliroot executable
+EXEFLAGS += -O -Qoption ld -t -L/usr/dt/lib -L/usr/openwin/lib -L/usr/ccs/lib -lXm -lXt -lX11 -lm -lgen -ldl -lsocket -lsunmath 
+
+
+
+
+