diff --git a/cmake/modules/RootConfiguration.cmake b/cmake/modules/RootConfiguration.cmake index 97445596e7ace..71763dad7bf56 100644 --- a/cmake/modules/RootConfiguration.cmake +++ b/cmake/modules/RootConfiguration.cmake @@ -577,8 +577,6 @@ configure_file(${CMAKE_SOURCE_DIR}/config/rootdaemonrc.in ${CMAKE_BINARY_DIR}/et # file used in TROOT.cxx, not need in include/ dir and not need to install configure_file(${CMAKE_SOURCE_DIR}/config/RConfigOptions.in ginclude/RConfigOptions.h NEWLINE_STYLE UNIX) -configure_file(${CMAKE_SOURCE_DIR}/config/Makefile-comp.in config/Makefile.comp NEWLINE_STYLE UNIX) -configure_file(${CMAKE_SOURCE_DIR}/config/Makefile.in config/Makefile.config NEWLINE_STYLE UNIX) configure_file(${CMAKE_SOURCE_DIR}/config/mimes.unix.in ${CMAKE_BINARY_DIR}/etc/root.mimes NEWLINE_STYLE UNIX) # We need to have class.rules during configuration time to avoid silent error during generation of dictionary: # Error in : Cannot find rules diff --git a/config/Makefile-comp.in b/config/Makefile-comp.in deleted file mode 100644 index 6ca534ee727cd..0000000000000 --- a/config/Makefile-comp.in +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: makefile -*- -# -# Makefile compiler definitions included by the top Makefile. -# Used to override the compilers specified in the architecture -# specific Makefiles. - -CC = @altcc@ -CXX = @altcxx@ -F77 = @altf77@ -LD = @altld@ -GCCTOOLCHAIN = @gcctoolchain@ diff --git a/config/Makefile.in b/config/Makefile.in deleted file mode 100644 index 25d490d93fb60..0000000000000 --- a/config/Makefile.in +++ /dev/null @@ -1,295 +0,0 @@ -# -*- mode: makefile -*- -# -# Makefile definitions included by the top Makefile - -# The macro below is expanded when 'realpath' is not built-in. -# Built-in 'realpath' is available on GNU Make 3.81. -realpath = $(shell cd $(1); pwd) - -ROOT_SRCDIR := $(call realpath, @top_srcdir@) -ROOT_OBJDIR := $(call realpath, @top_builddir@) - -ifndef ROOT_SRCDIR -$(error Error determining ROOT_SRCDIR) -endif -ifndef ROOT_OBJDIR -$(error Error determining ROOT_OBJDIR) -endif - -# The macro below strips off the source dir path to make a relative path name -stripsrc = $(subst $(ROOT_SRCDIR)/,,$(1)) - -# This macro creates the list of pcm files to be passed to a library -# dictionary generation step, something like -# $(call pcm_rootcling_opt,$(TREELIBDEPM)) -pcm_rootcling_opt = -m lib/libCore_rdict.pcm $(addprefix -m ,$(subst $(SOEXT),_rdict.pcm,$1)) - -# This macro returns the name of the pcm corresponding to a library -# $(call pcmname,$(TREELIB)) -pcmname = $(subst .$(SOEXT),_rdict.pcm,$1) - -# This macro returns the list of pcm's that are needed for a package -# $(call pcmdep,TREE) -# the argument is the upper case name of the library (see the Module.mk) -pcmdep = lib/libCore_rdict.pcm $(subst .$(SOEXT),_rdict.pcm,$($1LIBDEPM)) - -# This macro builds the rootmap name starting from the library full path -# $(call rmfName, TREELIB) -# the argument is the upper case name of the library (see the Module.mk) -rmfName = $(dir $1)$(subst .$(SOEXT),.rootmap,$(notdir $1)) - -# This macro returns the arguments to be passed to rootcling to properly -# generate the rootmap file -# $(call rootmapModule, TREELIB) -# the argument is the upper case name of the library (see the Module.mk) -rootmapModule = -rml $(notdir $1) -rmf $(call rmfName, $1) - -# This macro returns the argument to be passed to rootcling to -# properly setup the pcm -# $(call dictModule,TREE) -# the argument is the upper case name of the library (see the Module.mk) -dictModule = -s $($1LIB) $(call rootmapModule, $($1LIB)) $(call pcm_rootcling_opt, $($1LIBDEPM)) - -# This macro is used to setup the rule where the pcm depends on the -# dictionary and the library's dependent pcm's -# $(call pcmrule,TREE) -# the argument is the upper case name of the library (see the Module.mk) -pcmrule = $(call pcmname, $($1LIB)): $(call pcmdep, $1) $($1DS) - -noop = @true # "Do nothing really, this is just to make the rule stick" - -ARCH := @architecture@ -HOST := @host@ -@rootbuild@ -USECONFIG := @useconfig@ -MKLIBOPTIONS := @mkliboption@ - -EXTRA_CFLAGS := -Iinclude @cflags@ -USERCONF_CFLAGS:= @usercflags@ -EXTRA_CXXFLAGS := -Iinclude @cflags@ -USERCONF_CXXFLAGS:= @usercxxflags@ -EXTRA_LDFLAGS := @ldflags@ -WERROR := @werror@ -WINRTDEBUG := @winrtdebug@ -CTORSINITARRAY := @ctorsinitarray@ -CXXMKDEPFLAGS := @cxxmkdepflags@ - -BINDIR := @bindir@ -LIBDIR := @libdir@ -INCDIR := @incdir@ -ETCDIR := @etcdir@ -MANDIR := @mandir@ -DATADIR := @datadir@ -TTFFONTDIR := @ttffontdir@ -MACRODIR := @macrodir@ -SRCDIR := @srcdir@ -ICONPATH := @iconpath@ -DOCDIR := @docdir@ -TUTDIR := @tutdir@ - -BUILDX11 := @buildx11@ -X11INCDIR := $(filter-out /usr/include, @x11incdir@) -X11LIBDIR := @x11libdir@ -XPMLIBDIR := @xpmlibdir@ -XPMLIB := @xpmlib@ - -BUILDCOCOA := @buildcocoa@ -MACOSXVERS := @macosxvers@ -OSXSDK := @osxsdk@ -IOSVERS := @iosvers@ -IOSSDK := @iossdk@ - -ENABLETHREAD := @enable_thread@ -OSTHREADFLAG := @threadflag@ -OSTHREADLIBDIR := @threadlibdir@ -OSTHREADLIB := @threadlib@ - -BUILTINFREETYPE:= @builtinfreetype@ - -BUILTINPCRE := @builtinpcre@ - -BUILTINUNURAN := @builtinunuran@ -UNURANLIBDIR := @unuranlibdir@ -UNURANLIBEXT := @unuranlib@ -UNURANLIB := @unuranlib@ -UNURANINCDIR := $(filter-out /usr/include, @unuranincdir@) - -BUILTINZLIB := @builtinzlib@ -ZLIBLIBDIR := @zliblibdir@ -ZLIBCLILIB := @zliblib@ -ZLIBINCDIR := $(filter-out /usr/include, @zlibincdir@) - -BUILTINLZMA := @builtinlzma@ -LZMALIBDIR := @lzmalibdir@ -LZMACLILIB := @lzmalib@ -LZMAINCDIR := $(filter-out /usr/include, @lzmaincdir@) - -BUILTINLZ4 := @builtinlz4@ -LZ4LIBDIR := @lz4libdir@ -LZ4CLILIB := @lz4lib@ -LZ4INCDIR := $(filter-out /usr/include, @lz4incdir@) - -BUILDGL := @buildgl@ -OPENGLLIBDIR := @opengllibdir@ -OPENGLULIB := @openglulib@ -OPENGLLIB := @opengllib@ -OPENGLINCDIR := $(filter-out /usr/include, @openglincdir@) - -BUILTINGL2PS := @builtingl2ps@ -GL2PSLIBDIR := @gl2pslibdir@ -GL2PSLIB := @gl2pslib@ -GL2PSINCDIR := $(filter-out /usr/include, @gl2psincdir@) - -BUILDSQLITE := @buildsqlite@ -SQLITELIBDIR := @sqlitelibdir@ -SQLITECLILIB := @sqlitelib@ -SQLITEINCDIR := $(filter-out /usr/include, @sqliteincdir@) - -BUILDDAVIX := @builddavix@ -DAVIXLIBDIR := @davixlibdir@ -DAVIXCLILIB := @davixlib@ -DAVIXINCDIR := $(filter-out /usr/include, @davixincdir@) - -BUILDDCAP := @builddcap@ -DCAPLIBDIR := @dcaplibdir@ -DCAPLIB := @dcaplib@ -DCAPINCDIR := $(filter-out /usr/include, @dcapincdir@) - -BUILDFTGL := @buildftgl@ -FTGLLIBDIR := @ftgllibdir@ -FTGLLIBS := @ftgllibs@ -FTGLINCDIR := $(filter-out /usr/include, @ftglincdir@) -ifeq ($(BUILDFTGL), yes) -FTGLCPPFLAGS := -DBUILTIN_FTGL -endif - -SRMIFCEINCDIR := $(filter-out /usr/include, @srmifceincdir@) -GLIB2INCDIR := $(filter-out /usr/include, @glib2incdir@) - -BUILDASIMAGE := @buildasimage@ -ASEXTRALIB := @asextralib@ -ASEXTRALIBDIR := @asextralibdir@ -ASJPEGINCDIR := $(filter-out /usr/include, @asjpegincdir@) -ASPNGINCDIR := $(filter-out /usr/include, @aspngincdir@) -ASTIFFINCDIR := $(filter-out /usr/include, @astiffincdir@) -ASINCDIR := $(filter-out /usr/include, @asimageincdir@) -ASLIB := @asimagelib@ -ASLIBDIR := @asimagelibdir@ - -BUILDFPYTHIA8 := @buildpythia8@ -FPYTHIA8INCDIR := $(filter-out /usr/include, @pythia8incdir@) -FPYTHIA8LIBDIR := @pythia8libdir@ -FPYTHIA8LIB := @pythia8lib@ - -BUILDFFTW3 := @buildfftw3@ -FFTW3LIBDIR := @fftw3libdir@ -FFTW3LIB := @fftw3lib@ -FFTW3INCDIR := $(filter-out /usr/include, @fftw3incdir@) - -BUILDFITSIO := @buildfitsio@ -CFITSIOLIBDIR := @cfitsiolibdir@ -CFITSIOLIB := @cfitsiolib@ -CFITSIOINCDIR := $(filter-out /usr/include, @cfitsioincdir@) - -BUILDGVIZ := @buildgviz@ -GRAPHVIZLIBDIR := @gvizlibdir@ -GRAPHVIZLIB := @gvizlib@ -GRAPHVIZINCDIR := $(filter-out /usr/include, @gvizincdir@) -GRAPHVIZCFLAGS := @gvizcflags@ - -BUILDPYTHON := @buildpython@ -PYTHONLIBDIR := @pythonlibdir@ -PYTHONLIB := @pythonlib@ -PYTHONINCDIR := $(filter-out /usr/include, @pythonincdir@) -PYTHONLIBFLAGS := @pythonlibflags@ -PYTHONEXE := @pythonexe@ - -BUILDRUBY := @buildruby@ -RUBYLIBDIR := @rubylibdir@ -RUBYLIB := @rubylib@ -RUBYINCDIR := $(filter-out /usr/include, @rubyincdir@) - -BUILDXML := @buildxml@ -XMLLIBDIR := @xmllibdir@ -XMLCLILIB := @xmllib@ -XMLINCDIR := $(filter-out /usr/include, @xmlincdir@) - -HASXRD := @hasxrd@ -XRDINCDIR := @xrdincdir@ -XRDLIBDIR := @xrdlibdir@ -EXTRA_XRDFLAGS := @extraxrdflags@ -XRDVERSION := @xrdversion@ -HASXRDUTILS := @hasxrdutils@ -XRDINCPRIVATE := @xrdincprivate@ -BUILDNETXNG := @buildnetxng@ -BUILDXRDCLT := @buildxrdclt@ - -ALLOCLIB := @alloclib@ -ALLOCLIBDIR := @alloclibdir@ - -BUILDTBB := @buildtbb@ -TBBLIBDIR := @tbblibdir@ -TBBLIB := @tbblib@ -TBBINCDIR := $(filter-out /usr/include, @tbbincdir@) - -SSLLIB := @ssllib@ -SSLLIBDIR := @ssllibdir@ -SSLINCDIR := $(filter-out /usr/include, @sslincdir@) -SSLSHARED := @sslshared@ - -BUILTINLZMA := @builtinlzma@ -LZMALIBDIR := @lzmalibdir@ -LZMACLILIB := @lzmalib@ -LZMAINCDIR := $(filter-out /usr/include, @lzmaincdir@) - -SHADOWFLAGS := @shadowpw@ -SHADOWLIB := -SHADOWLIBDIR := - -BUILDMATHMORE := @buildmathmore@ -GSLFLAGS := $(filter-out -I/usr/include, @gslflags@) -GSLLIBDIR := @gsllibdir@ -GSLLIBS := @gsllibs@ -GSLVERSION := @gslversion@ - -BUILTINLLVM := @builtinllvm@ -LLVMCONFIG := @llvmconfig@ - -BUILDROOFIT := @buildroofit@ - -BUILDMINUIT2 := @buildminuit2@ - -BUILDUNURAN := @buildunuran@ - -BUILDVC := @buildvc@ -BUILDVDT := @buildvdt@ -AVXCXXFLAG := @avxcxxflag@ -SIMDCXXFLAGS := @avxcxxflag@ @ssecxxflags@ -VCFLAGS := @abiversioncxxflag@ @vcflags@ - -BUILDGDML := @buildgdml@ - -BUILDTABLE := @buildtable@ - -BUILDTMVA := @buildtmva@ - -BUILDHTTP := @buildhttp@ -USEFASTCGI := @usefastcgi@ -FASTCGIINCDIR := @fastcgiincdir@ -ifeq ($(USEFASTCGI), no) -FASTCGIFLAGS := -DHTTP_WITHOUT_FASTCGI -endif - -CPPUNIT := @cppunit@ -GCCXML := @gccxml@ - -INSTALL := cp -dpR -INSTALLDATA := cp -dpR -INSTALLDIR := mkdir -p -RSYNC := rsync -au - -BUILDR := @buildr@ -RLIBS := @rlibs@ -RFLAGS := @rflags@ - -ROOTDRPMREL := 1 diff --git a/core/textinput/src/textinput/Makefile b/core/textinput/src/textinput/Makefile deleted file mode 100644 index e7105bc7a1062..0000000000000 --- a/core/textinput/src/textinput/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -##===- cling/lib/UserInterface/Makefile---------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## -# -# This implements the a C++ interpreter user frontend. -# -##===----------------------------------------------------------------------===## - -LEVEL = ../../../../.. -LIBRARYNAME := clingUITextInput -BUILD_ARCHIVE = 1 -CXXFLAGS = -fno-rtti -CPPFLAGS += -I$(PROJ_SRC_DIR)/.. - -include $(LEVEL)/Makefile.common - diff --git a/etc/Makefile.arch b/etc/Makefile.arch deleted file mode 100644 index 22617c5eba730..0000000000000 --- a/etc/Makefile.arch +++ /dev/null @@ -1,434 +0,0 @@ -# -*- mode: makefile -*- -# -# Makefile containing platform dependencies for ROOT based projects. -# -# Copyright (c) 2000 Rene Brun and Fons Rademakers -# -# Author: Fons Rademakers, 29/2/2000 - -RC := root-config -ifneq ($(shell which $(RC) 2>&1 | sed -ne "s@.*/$(RC)@$(RC)@p"),$(RC)) -ifneq ($(ROOTSYS),) -RC1 := $(ROOTSYS)/bin/root-config -ifneq ($(shell which $(RC1) 2>&1 | sed -ne "s@.*/$(RC)@$(RC)@p"),$(RC)) -$(error Please make sure $(RC1) can be found in path) -else -RC := $(RC1) -endif -else -$(error Please make sure $(RC) can be found in path) -endif -endif - -ARCH := $(shell $(RC) --arch) -PLATFORM := $(shell $(RC) --platform) -ALTCC := $(shell $(RC) --cc) -ALTCXX := $(shell $(RC) --cxx) -ALTF77 := $(shell $(RC) --f77) -ALTLD := $(shell $(RC) --ld) - -#CXX = -ObjSuf = o -SrcSuf = cxx -ExeSuf = -DllSuf = so -OutPutOpt = -o # keep whitespace after "-o" - -ifeq (debug,$(findstring debug,$(ROOTBUILD))) -OPT = -g -OPT2 = -g -else -OPT = -O -OPT2 = -O2 -endif - -ROOTCFLAGS := $(shell $(RC) --cflags) -ROOTLDFLAGS := $(shell $(RC) --ldflags) -ROOTLIBS := $(shell $(RC) --libs) -ROOTGLIBS := $(shell $(RC) --glibs) -ROOTCLING := rootcling - -ifeq ($(PLATFORM),macosx) -ROOTLIBDIR := $(shell $(RC) --libdir) -MACOSX_MAJOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 1)) -MACOSX_MINOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)) -ifeq ($(MACOSX_DEPLOYMENT_TARGET),) -MACOSXTARGET := $(MACOSX_MAJOR).$(MACOSX_MINOR) -else -MACOSXTARGET := $(MACOSX_DEPLOYMENT_TARGET) -endif -endif - -ifeq ($(ARCH),hpuxacc) -# HP-UX 10.x with aCC -CXX = aCC -CXXFLAGS = $(OPT) +Z -LD = aCC -LDFLAGS = $(OPT) -z -SOFLAGS = -b -endif - -ifeq ($(ARCH),hpuxia64acc) -# HP-UX 11i 1.5 (IA-64) with aCC -CXX = aCC -CXXFLAGS = +DD64 $(OPT) +Z -LD = aCC -LDFLAGS = +DD64 $(OPT) -z -SOFLAGS = -b -endif - -ifeq ($(ARCH),hpuxgcc) -# HP-UX 10.x with g++ -CXXFLAGS = $(OPT) -fPIC -CXX = g++ -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -fPIC -shared -endif - -ifeq ($(ARCH),hurddeb) -# GNU/Hurd -CXX = g++ -CXXFLAGS = $(OPT2) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT2) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),aix5) -# IBM AIX >5.x xlC -CXX = xlC -CXXFLAGS = $(OPT) -LD = xlC -LDFLAGS = $(OPT) -SOFLAGS = -DllSuf = a -endif - -ifeq ($(ARCH),aixgcc) -# IBM AIX >5.x with GCC -CXX = g++ -CXXFLAGS = $(OPT) -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -shared -DllSuf = a -EXPLLINKLIBS = $(ROOTGLIBS) -endif - -ifeq ($(ARCH),solaris) -# Solaris CC -CXX = /opt/SUNWspro/bin/CC -CXXFLAGS = $(OPT) -KPIC -LD = /opt/SUNWspro/bin/CC -LDFLAGS = $(OPT) -SOFLAGS = -G -endif - -ifeq ($(ARCH),solarisCC5) -# Solaris CC 5.0 -CXX = CC -CXXFLAGS = $(OPT) -KPIC -LD = CC -LDFLAGS = $(OPT) -SOFLAGS = -G -endif - -ifeq ($(ARCH),solaris64CC5) -# Solaris CC 5.0 64-bit -CXX = CC -CXXFLAGS = $(OPT) -KPIC -LD = CC -LDFLAGS = $(OPT) -SOFLAGS = -G -endif - -ifeq ($(ARCH),linux) -# Linux with egcs, gcc 2.9x, gcc 3.x -CXX = g++ -CXXFLAGS = $(OPT2) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT2) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxicc) -# Linux with Intel icc compiler -ICC_MAJOR := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \ - cut -d'.' -f1) -ICC_MINOR := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \ - cut -d'.' -f2) -CXX = icc -CXXFLAGS = $(OPT) -fPIC -wd1476 -LD = icpc -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxppcgcc) -# PPC Linux with gcc and glibc -CXX = g++ -CXXFLAGS = $(OPT2) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT2) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxia64gcc) -# Itanium Linux with gcc 2.9x -CXX = g++ -CXXFLAGS = $(OPT2) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT2) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxia64ecc) -# Itanium Linux with Intel icc (was ecc) -ICC_MAJOR := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \ - cut -d'.' -f1) -ICC_MINOR := $(shell icc -v 2>&1 | awk '{ if (NR==1) print $$2 }' | \ - cut -d'.' -f2) -CXX = icc -CXXFLAGS = $(OPT) -fPIC -wd1476 -ftz -LD = icpc -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxx8664gcc) -# AMD Opteron and Intel EM64T (64 bit mode) Linux with gcc 3.x -CXX = g++ -CXXFLAGS = $(OPT2) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT2) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxppc64gcc) -# PPC64 Linux with gcc 3.x -CXX = g++ -CXXFLAGS = $(OPT) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxx8664icc) -# AMD Opteron and Intel EM64T (64 bit mode) Linux with Intel icc compiler -CXX = icc -CXXFLAGS = $(OPT) -fPIC -wd1476 -wd1572 -LD = icpc -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxhppa) -# GNU/Linux on hppa with gcc -CXX = g++ -CXXFLAGS = $(OPT2) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT2) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxarm) -# ARM Linux with egcs -CXX = g++ -CXXFLAGS = $(OPT) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxarm64) -# ARMv8-A (AArch64) Linux with gcc and glibc -CXX = g++ -CXXFLAGS = $(OPT) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxriscv64) -# RISC-V Linux with gcc and glibc -CXX = g++ -CXXFLAGS = $(OPT) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),linuxloong64) -# loong64 Linux with gcc and glibc -CXX = g++ -CXXFLAGS = $(OPT) -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -shared -endif - -ifeq ($(ARCH),freebsd4) -# FreeBSD with glibc -CXX = g++ -CXXFLAGS = $(OPT) -W -Wall -fPIC -LD = $(CXX) -LDFLAGS = $(OPT) -SOFLAGS = -shared -Wl,-x -endif - -ifeq ($(ARCH),freebsd5) -# FreeBSD with glibc -CXX = g++ -CXXFLAGS = $(OPT) -W -Wall -fPIC -LD = $(CXX) -LDFLAGS = $(OPT) -SOFLAGS = -shared -Wl,-x -endif - -ifeq ($(ARCH),freebsd7) -# FreeBSD with libc -CXX = g++ -CXXFLAGS = $(OPT) -W -Wall -fPIC -LD = $(CXX) -LDFLAGS = $(OPT) -SOFLAGS = -shared -Wl,-x -endif - -ifeq ($(findstring freebsd,$(ARCH)),freebsd) -# FreeBSD with libc -CXX = c++ -CXXFLAGS = $(OPT2) -W -Wall -fPIC -LD = $(CXX) -LDFLAGS = $(OPT2) -SOFLAGS = -shared -Wl,-x -endif - -ifeq ($(ARCH),openbsd) -# OpenBSD with libc -CXX = g++ -CXXFLAGS = $(OPT) -pipe -W -Wall -fPIC -LD = g++ -LDFLAGS = $(OPT) -SOFLAGS = -shared -Wl,-x -endif - -ifeq ($(ARCH),macosx) -# MacOS X with cc (GNU cc 2.95.2 and gcc 3.3) -CXX = g++ -CXXFLAGS = $(OPT2) -pipe -Wall -W -Woverloaded-virtual -LD = g++ -LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) -EXPLLINKLIBS = $(ROOTGLIBS) -DllSuf = so -SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ -endif - -ifeq ($(ARCH),macosxicc) -# MacOS X with Intel icc compiler -CXX = icc -CXXFLAGS = $(OPT) -fPIC -wd1476 -LD = icpc -LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) -EXPLLINKLIBS = $(ROOTGLIBS) -DllSuf = so -SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ -endif - -ifeq ($(ARCH),macosx64) -# MacOS X >= 10.4 with gcc 64 bit mode (GNU gcc 4.*) -# Only specific option (-m64) comes from root-config -CXX = g++ -CXXFLAGS = $(OPT2) -pipe -Wall -W -Woverloaded-virtual -LD = g++ -LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) -Wl,-rpath,$(ROOTLIBDIR) -EXPLLINKLIBS = $(ROOTGLIBS) -DllSuf = so -SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ -endif - -ifeq ($(ARCH),macosxarm64) -# Apple Silicon running macOS 11.x. -CXX = g++ -CXXFLAGS = $(OPT2) -pipe -Wall -W -Woverloaded-virtual -LD = g++ -LDFLAGS = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) -Wl,-rpath,$(ROOTLIBDIR) -EXPLLINKLIBS = $(ROOTGLIBS) -DllSuf = so -SOFLAGS = -dynamiclib -single_module -install_name $(CURDIR)/ -endif - -ifeq ($(ARCH),win32) -# Windows with the VC++ compiler -VC_MAJOR := $(shell unset VS_UNICODE_OUTPUT; cl.exe 2>&1 | awk '{ if (NR==1) print $$(NF-2) }' | \ - cut -d'.' -f1) -ObjSuf = obj -SrcSuf = cxx -ExeSuf = .exe -DllSuf = dll -OutPutOpt = -out: -CXX = cl -ifeq (debug,$(findstring debug,$(ROOTBUILD))) -CXXOPT = -Z7 -LDOPT = -debug -else -CXXOPT = -O2 -LDOPT = -opt:ref -endif -ROOTINCDIR := -I$(shell cygpath -m `$(RC) --incdir`) -CXXFLAGS = $(CXXOPT) -nologo $(ROOTINCDIR) -FIw32pragma.h -LD = link -LDFLAGS = $(LDOPT) -nologo -SOFLAGS = -DLL - -EXPLLINKLIBS = $(ROOTGLIBS) -ifneq (,$(findstring $(VC_MAJOR),14 15)) -MT_EXE = mt -nologo -manifest $@.manifest -outputresource:$@\;1; rm -f $@.manifest -MT_DLL = mt -nologo -manifest $@.manifest -outputresource:$@\;2; rm -f $@.manifest -else -MT_EXE = -MT_DLL = -endif -endif - -ifeq ($(ARCH),win32gcc) -# Windows with gcc -DllSuf = dll -ExeSuf = .exe -CXX = g++ -CXXFLAGS = $(OPT) -pipe -Wall -Woverloaded-virtual -I/usr/X11R6/include -LD = g++ -LDFLAGS = $(OPT) -Wl,--enable-auto-import \ - -Wl,--enable-runtime-pseudo-reloc \ - -L/usr/X11R6/lib -SOFLAGS = -shared -Wl,--enable-auto-image-base \ - -Wl,--export-all-symbols -EXPLLINKLIBS = $(ROOTGLIBS) -endif - -ifeq ($(CXX),) -$(error $(ARCH) invalid architecture) -endif - -CXXFLAGS += $(ROOTCFLAGS) -LDFLAGS += $(ROOTLDFLAGS) -LIBS = $(ROOTLIBS) -GLIBS = $(ROOTGLIBS) - -ifneq ($(ALTCC),) - CC = $(ALTCC) -endif -ifneq ($(ALTCXX),) - CXX = $(ALTCXX) -endif -ifneq ($(ALTF77),) - F77 = $(ALTF77) -endif -ifneq ($(ALTLD),) - LD = $(ALTLD) -endif - -ifneq ($(findstring g++, $(CXX)),) -GCC_MAJOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f1) -GCC_MINOR := $(shell $(CXX) -dumpversion 2>&1 | cut -d'.' -f2) -endif diff --git a/roottest/scripts/Rules.mk b/roottest/scripts/Rules.mk index a542d41781efd..bcfb9190bd235 100644 --- a/roottest/scripts/Rules.mk +++ b/roottest/scripts/Rules.mk @@ -323,14 +323,6 @@ ifeq ($(HAS_PYTHON),yes) export PYTHONPATH := $(ROOTSYS)/lib:$(PYTHONPATH) endif endif - ifeq ($(PLATFORM),macosx) - PYTHONLIB:=$(shell grep ^PYTHONLIB $(ROOTSYS)/config/Makefile.config | sed -e 's,^.*\:=,,' -e 's,^ *-L,,' | grep -v -e '^ -l' -e '^ *$$' ) - PYTHONFWK:=$(dir $(PYTHONLIB)) - ifneq ($(PYTHONFWK),) - export PATH:=$(PYTHONFWK)/bin:$(PATH) - export DYLD_LIBRARY_PATH:=$(PYTHONFWK):$(DYLD_LIBRARY_PATH) - endif - endif endif ifeq ($(PLATFORM),win32) @@ -345,18 +337,6 @@ endif # Avoid common typo ROOTLOC=$(ROOT_LOC) -include $(ROOT_LOC)/config/Makefile.comp - -ifeq ($(ROOT_SRCDIR),) -export ROOT_SRCDIR := $(shell grep "ROOT_SRCDIR :=" $(ROOT_LOC)/config/Makefile.config | sed 's/^ROOT_SRCDIR := \$$(call realpath, \([^)]*\).*$$/\1/') -ifeq ($(PLATFORM),win32) - export ROOT_SRCDIR := $(shell cygpath -m -- $(ROOT_SRCDIR)) - export ROOT_SRCDIRDEP := $(shell cygpath -u -- $(ROOT_SRCDIR)) -else - export ROOT_SRCDIRDEP := $(ROOT_SRCDIR) -endif -endif - ifeq ($(PLATFORM),win32) # Windows with the VC++ compiler