Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/Makefile.arch

    r910bd98 r9582d01  
    3939OPT2          = -g
    4040else
     41ifneq ($(findstring debug, $(strip $(shell $(RC) --config))),)
     42OPT           = -g
     43OPT2          = -g
     44else
    4145OPT           = -O
    4246OPT2          = -O2
     47endif
    4348endif
    4449
     
    4752ROOTLIBS     := $(shell $(RC) --libs)
    4853ROOTGLIBS    := $(shell $(RC) --glibs)
    49 ROOTCLING    := rootcling
     54HASTHREAD    := $(shell $(RC) --has-thread)
     55ROOTCINT     := rootcint
    5056
    5157ifeq ($(PLATFORM),macosx)
    52 ROOTLIBDIR   := $(shell $(RC) --libdir)
    53 MACOSX_MAJOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 1))
    54 MACOSX_MINOR := $(strip $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2))
     58MACOSX_MINOR := $(shell sw_vers | sed -n 's/ProductVersion://p' | cut -d . -f 2)
    5559ifeq ($(MACOSX_DEPLOYMENT_TARGET),)
    56 MACOSXTARGET := $(MACOSX_MAJOR).$(MACOSX_MINOR)
     60MACOSXTARGET := 10.$(MACOSX_MINOR)
    5761else
    5862MACOSXTARGET := $(MACOSX_DEPLOYMENT_TARGET)
     
    114118SOFLAGS       = -shared
    115119DllSuf        = a
    116 EXPLLINKLIBS  = $(ROOTGLIBS)
     120EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
    117121endif
    118122
     
    142146LDFLAGS       = $(OPT)
    143147SOFLAGS       = -G
     148endif
     149
     150ifeq ($(ARCH),sgicc)
     151# SGI
     152CXX           = CC -n32  -I/usr/include/CC.sgi
     153CXXFLAGS      = $(OPT)
     154LD            = CC -n32 -LANG:std  -I/usr/include/CC.sgi
     155LDFLAGS       = $(OPT)
     156SOFLAGS       = -shared
     157endif
     158
     159ifeq ($(ARCH),sgicc64)
     160# SGI
     161CXX           = CC -64  -I/usr/include/CC.sgi
     162CXXFLAGS      = $(OPT)
     163LD            = CC -64 -LANG:std -I/usr/include/CC.sgi
     164LDFLAGS       = $(OPT)
     165SOFLAGS       = -shared
     166endif
     167
     168ifeq ($(ARCH),sgigcc)
     169# SGI 6.x with gcc
     170CXX           = g++
     171CXXFLAGS      = $(OPT) -Wall -fPIC
     172LD            = g++
     173LDFLAGS       = $(OPT) -Wl,-u,__builtin_new -Wl,-u,__builtin_delete -Wl,-u,__nw__FUiPv
     174SOFLAGS       = -shared
     175endif
     176
     177ifeq ($(ARCH),sgin32gcc)
     178# SGI 6.x with gcc for n32 ABI
     179CXX           = g++
     180CXXFLAGS      = $(OPT) -Wall -fPIC
     181LD            = g++
     182LDFLAGS       = $(OPT) -L/usr/lib32 -Wl,-woff,134 -lgen
     183SOFLAGS       = -shared
     184endif
     185
     186ifeq ($(ARCH),alphagcc)
     187# Alpha/OSF with gcc
     188CXX           = g++
     189CXXFLAGS      = $(OPT2) -Wall -fPIC
     190LD            = g++
     191LDFLAGS       = $(OPT2)
     192SOFLAGS       = -Wl,-expect_unresolved,* -shared
     193endif
     194
     195ifeq ($(ARCH),alphacxx6)
     196# Alpha/OSF with cxx6
     197CXX           = cxx
     198CXXFLAGS      = $(OPT)
     199LD            = cxx
     200LDFLAGS       = $(OPT)
     201SOFLAGS       = -shared -nocxxstd -Wl,-expect_unresolved,*,-msym
    144202endif
    145203
     
    224282endif
    225283
     284ifeq ($(ARCH),linuxalphagcc)
     285# Alpha Linux with gcc
     286CXX           = g++
     287CXXFLAGS      = $(OPT2) -Wall -fPIC
     288LD            = g++
     289LDFLAGS       = $(OPT2)
     290SOFLAGS       = -shared
     291endif
     292
     293ifeq ($(ARCH),linuxmips)
     294# GNU/Linux on mips (BE/LE, O32/N32/N64) with gcc
     295CXX           = g++
     296CXXFLAGS      = $(OPT2) -Wall -fPIC
     297LD            = g++
     298LDFLAGS       = $(OPT2)
     299SOFLAGS       = -shared
     300endif
     301
    226302ifeq ($(ARCH),linuxhppa)
    227303# GNU/Linux on hppa with gcc
     
    242318endif
    243319
    244 ifeq ($(ARCH),linuxarm64)
    245 # ARMv8-A (AArch64) Linux with gcc and glibc
    246 CXX           = g++
    247 CXXFLAGS      = $(OPT) -Wall -fPIC
    248 LD            = g++
    249 LDFLAGS       = $(OPT)
    250 SOFLAGS       = -shared
    251 endif
    252 
    253320ifeq ($(ARCH),freebsd4)
    254321# FreeBSD with glibc
     
    293360LD            = g++
    294361LDFLAGS       = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET)
    295 EXPLLINKLIBS  = $(ROOTGLIBS)
     362EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
     363# The SOFLAGS will be used to create the .dylib,
     364# the .so will be created separately
     365ifeq ($(subst $(MACOSX_MINOR),,1234),1234)
    296366DllSuf        = so
     367else
     368DllSuf        = dylib
     369endif
     370ifneq ($(subst $(MACOSX_MINOR),,12),12)
     371LD            = g++
     372endif
    297373SOFLAGS       = -dynamiclib -single_module -install_name $(CURDIR)/
    298374endif
     
    300376ifeq ($(ARCH),macosxicc)
    301377# MacOS X with Intel icc compiler
     378ifeq ($(MACOSX_MINOR),5)
     379MACOSX_MINOR := 4
     380endif
    302381CXX           = icc
    303382CXXFLAGS      = $(OPT) -fPIC -wd1476
    304383LD            = icpc
    305384LDFLAGS       = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET)
    306 EXPLLINKLIBS  = $(ROOTGLIBS)
     385EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
     386# The SOFLAGS will be used to create the .dylib,
     387# the .so will be created separately
     388ifeq ($(subst $(MACOSX_MINOR),,1234),1234)
    307389DllSuf        = so
     390else
     391DllSuf        = dylib
     392endif
    308393SOFLAGS       = -dynamiclib -single_module -install_name $(CURDIR)/
    309394endif
     
    315400CXXFLAGS      = $(OPT2) -pipe -Wall -W -Woverloaded-virtual
    316401LD            = g++
    317 LDFLAGS       = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET) -Wl,-rpath,$(ROOTLIBDIR)
    318 EXPLLINKLIBS  = $(ROOTGLIBS)
     402LDFLAGS       = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET)
     403EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
     404# The SOFLAGS will be used to create the .dylib,
     405# the .so will be created separately
     406ifeq ($(subst $(MACOSX_MINOR),,1234),1234)
    319407DllSuf        = so
    320 SOFLAGS       = -dynamiclib -single_module -install_name $(CURDIR)/
    321 endif
    322 
    323 ifeq ($(ARCH),macosxarm64)
    324 # Apple Silicon running macOS 11.x.
    325 CXX           = g++
    326 CXXFLAGS      = $(OPT2) -pipe -Wall -W -Woverloaded-virtual
    327 LD            = g++
    328 LDFLAGS       = $(OPT2) -mmacosx-version-min=$(MACOSXTARGET)  -Wl,-rpath,$(ROOTLIBDIR)
    329 EXPLLINKLIBS  = $(ROOTGLIBS)
    330 DllSuf        = so
     408else
     409DllSuf        = dylib
     410endif
    331411SOFLAGS       = -dynamiclib -single_module -install_name $(CURDIR)/
    332412endif
     
    346426LDOPT         = -debug
    347427else
     428ifneq ($(findstring debug, $(strip $(shell $(RC) --config))),)
     429CXXOPT        = -Z7
     430LDOPT         = -debug
     431else
    348432CXXOPT        = -O2
    349433LDOPT         = -opt:ref
     434endif
    350435endif
    351436ROOTINCDIR   := -I$(shell cygpath -m `$(RC) --incdir`)
     
    355440SOFLAGS       = -DLL
    356441
    357 EXPLLINKLIBS  = $(ROOTGLIBS)
     442EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
    358443ifneq (,$(findstring $(VC_MAJOR),14 15))
    359444MT_EXE        = mt -nologo -manifest $@.manifest -outputresource:$@\;1; rm -f $@.manifest
     
    377462SOFLAGS       = -shared -Wl,--enable-auto-image-base \
    378463                -Wl,--export-all-symbols
    379 EXPLLINKLIBS  = $(ROOTGLIBS)
     464EXPLLINKLIBS  = $(ROOTLIBS) $(ROOTGLIBS)
    380465endif
    381466
     
    386471CXXFLAGS     += $(ROOTCFLAGS)
    387472LDFLAGS      += $(ROOTLDFLAGS)
    388 LIBS          = $(ROOTLIBS)
    389 GLIBS         = $(ROOTGLIBS)
     473LIBS          = $(ROOTLIBS) $(SYSLIBS)
     474GLIBS         = $(ROOTGLIBS) $(SYSLIBS)
    390475
    391476ifneq ($(ALTCC),)
Note: See TracChangeset for help on using the changeset viewer.