Revision 057de21703a1c1e664e49aec23f254f3b771954d authored by Philippe Canal on 27 January 2016, 23:15:58 UTC, committed by Philippe Canal on 27 January 2016, 23:16:29 UTC
1 parent 768daac
Raw File
Makefile.linuxarm64
# -*- mode: makefile -*-
#
# Makefile of ROOT for ARMv8 (AArch64) for Linux with gcc and glibc

PLATFORM      = linux

DEBUGFLAGS    = -g
#DEBUGFLAGS    = -gstabs
OPTFLAGS      = -O2
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT           = $(DEBUGFLAGS)
NOOPT         =
else
OPT           = $(OPTFLAGS)
NOOPT         =
endif
ifeq ($(CXX14),yes)
CXX11FLAGS    = -std=c++1y
else
CXX11FLAGS    = -std=c++11
endif

# Compiler:
CXX           = g++
CC            = gcc
CXXFLAGS      = -pipe -fsigned-char -Wshadow -Wall -W -Woverloaded-virtual \
                -fPIC $(EXTRA_CXXFLAGS) $(CXX11FLAGS) -Wno-deprecated-declarations $(USERCONF_CXXFLAGS)
CFLAGS        = -pipe -fsigned-char -Wshadow -Wall -W -fPIC $(EXTRA_CFLAGS) $(USERCONF_CFLAGS)
COMPILER      = gnu

# Linker:
LD            = g++
LDFLAGS       = -Wl,--hash-style=gnu $(OPT) $(EXTRA_LDFLAGS)
SOFLAGS       = -shared -Wl,-soname,
SOEXT         = so

# System libraries:
SYSLIBS       = -lm -ldl $(OSTHREADLIBDIR) $(OSTHREADLIB) \
                $(ALLOCLIBDIR) $(ALLOCLIB) -rdynamic
XLIBS         = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11
CILIBS        = -lm -ldl -rdynamic
CRYPTLIBS     = -lcrypt

# Fortran:
ifneq ($(findstring gfortran, $(F77)),)
ifeq ($(F77),)
# only needed to get default compiler in ./configure
F77           = gfortran
endif
F77FLAGS      = -fPIC -std=legacy
ifneq ($(shell $(F77) -print-file-name=libgfortran.$(SOEXT)),libgfortran.$(SOEXT))
F77LIBS      := $(shell $(F77) -print-file-name=libgfortran.$(SOEXT))
else
F77LIBS      := $(shell $(F77) -print-file-name=libgfortran.a)
endif
F77LIBS      += $(shell $(F77) -print-file-name=libgfortranbegin.a)
endif

ifneq ($(findstring g77, $(F77)),)
ifeq ($(F77),)
# only needed to get default compiler in ./configure
F77           = g77
endif
F77FLAGS      = -fPIC
ifneq ($(shell $(F77) -print-file-name=libg2c.so),libg2c.so)
F77LIBS      := $(shell $(F77) -print-file-name=libg2c.so) -lnsl
else
F77LIBS      := $(shell $(F77) -print-file-name=libg2c.a) -lnsl
endif
endif

# Extras
GLIBC_MALLOC_DEPRECATED = yes
back to top