# etc/Makeconf.  Generated from Makeconf.in by configure.
#
# ${R_HOME}/etc/Makeconf
#
# R was configured using the following call
# (not including env. vars and site configuration)
# configure  '--prefix=/usr' '--build=armv7a-hardfloat-linux-gnueabi' '--host=armv7a-hardfloat-linux-gnueabi' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--htmldir=/usr/share/doc/R-3.5.1/html' '--libdir=/usr/lib' '--enable-byte-compiled-packages' '--enable-R-shlib' '--disable-R-framework' '--with-blas=-lblas ' '--docdir=/usr/share/doc/R-3.5.1' 'rdocdir=/usr/share/doc/R-3.5.1' '--disable-java' '--enable-nls' '--enable-openmp' '--disable-R-profiling' '--disable-memory-profiling' '--disable-static' '--disable-R-static-lib' '--without-cairo' '--without-ICU' '--without-jpeglib' '--without-lapack' '--with-recommended-packages' '--without-libpng' '--with-readline' '--without-libtiff' '--without-tcltk' '--without-tk-config' '--without-tcl-config' '--without-x' 'build_alias=armv7a-hardfloat-linux-gnueabi' 'host_alias=armv7a-hardfloat-linux-gnueabi' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig' 'CFLAGS=-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'F77=armv7a-hardfloat-linux-gnueabi-gfortran' 'FFLAGS=-O2 -pipe -march=armv7-a' 'CXXFLAGS=-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard' 'FC=armv7a-hardfloat-linux-gnueabi-gfortran' 'FCFLAGS=-O2 -pipe -march=armv7-a'

## This fails if it contains spaces, or if it is quoted
include $(R_SHARE_DIR)/make/vars.mk

AR = ar
BLAS_LIBS = -lblas 
C_VISIBILITY = -fvisibility=hidden
CC = armv7a-hardfloat-linux-gnueabi-gcc
CFLAGS = -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard $(LTO)
CPICFLAGS = -fpic
CPPFLAGS = 
CXX = armv7a-hardfloat-linux-gnueabi-g++ 
CXXCPP = $(CXX) -E
CXXFLAGS = -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard $(LTO)
CXXPICFLAGS = -fpic
CXX98 = armv7a-hardfloat-linux-gnueabi-g++
CXX98FLAGS = -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard
CXX98PICFLAGS = -fpic
CXX98STD = -std=gnu++98
CXX11 = armv7a-hardfloat-linux-gnueabi-g++
CXX11FLAGS = -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard
CXX11PICFLAGS = -fpic
CXX11STD = -std=gnu++11
CXX14 = armv7a-hardfloat-linux-gnueabi-g++
CXX14FLAGS = -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard
CXX14PICFLAGS = -fpic
CXX14STD = -std=gnu++14
CXX17 = armv7a-hardfloat-linux-gnueabi-g++
CXX17FLAGS = -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard
CXX17PICFLAGS = -fpic
CXX17STD = -std=gnu++17
DYLIB_EXT = .so
DYLIB_LD = $(CC)
DYLIB_LDFLAGS = -shared -fopenmp# $(CFLAGS) $(CPICFLAGS)
DYLIB_LINK = $(DYLIB_LD) $(DYLIB_LDFLAGS) $(LDFLAGS)
ECHO = echo
ECHO_C = 
ECHO_N = -n
ECHO_T = 
## NB, set FC before F77 as on Solaris make, setting FC sets F77
FC = armv7a-hardfloat-linux-gnueabi-gfortran
FCFLAGS = -O2 -pipe -march=armv7-a $(LTO)
## additional libs needed when linking with $(FC), e.g. on some Oracle compilers
FCLIBS = 
F77 = armv7a-hardfloat-linux-gnueabi-gfortran
F77_VISIBILITY = -fvisibility=hidden
FFLAGS = -O2 -pipe -march=armv7-a $(LTO)
FLIBS =  -lgfortran -lm
FCPICFLAGS = -fpic
FPICFLAGS = -fpic
FOUNDATION_CPPFLAGS = 
FOUNDATION_LIBS = 
JAR = 
JAVA = 
JAVAC = 
JAVAH = 
## JAVA_HOME might be used in the next three.  
## They are for packages 'JavaGD' and 'rJava'
JAVA_HOME = 
JAVA_CPPFLAGS = 
JAVA_LIBS = 
JAVA_LD_LIBRARY_PATH = 
LAPACK_LIBS = -L"$(R_HOME)/lib$(R_ARCH)" -lRlapack
## we only need this is if it is external, as otherwise link to R
LIBINTL= 
LIBM = -lm
LIBR0 = -L"$(R_HOME)/lib$(R_ARCH)"
LIBR1 = -lR
LIBR = -L"$(R_HOME)/lib$(R_ARCH)" -lR
LIBS =  -lpcre2-8 -lpcre -llzma -lbz2 -lz -ltirpc -lrt -ldl -lm
## needed by R CMD config
LIBnn = lib
LIBTOOL = $(SHELL) "$(R_HOME)/bin/libtool"
LDFLAGS = -Wl,-O1 -Wl,--as-needed
LTO = 
## needed to build applications linking to static libR
MAIN_LD = $(CC)
MAIN_LDFLAGS = -Wl,--export-dynamic -fopenmp
MAIN_LINK = $(MAIN_LD) $(MAIN_LDFLAGS) $(LDFLAGS)
MKINSTALLDIRS = "$(R_HOME)/bin/mkinstalldirs"
OBJC = armv7a-hardfloat-linux-gnueabi-gcc
OBJCFLAGS = -g -O2 -fobjc-exceptions $(LTO)
OBJC_LIBS = -lobjc 
OBJCXX = armv7a-hardfloat-linux-gnueabi-g++
R_ARCH = 
RANLIB = armv7a-hardfloat-linux-gnueabi-ranlib
SAFE_FFLAGS = -O2 -pipe -march=armv7-a
SED = /bin/sed
SHELL = /bin/sh
SHLIB_CFLAGS = 
SHLIB_CXXFLAGS = 
SHLIB_CXXLD = $(CXX)
SHLIB_CXXLDFLAGS = -shared
SHLIB_CXX98LD = $(CXX98) $(CXX98STD)
SHLIB_CXX98LDFLAGS = -shared
SHLIB_CXX11LD = $(CXX11) $(CXX11STD)
SHLIB_CXX11LDFLAGS = -shared
SHLIB_CXX14LD = $(CXX14) $(CXX14STD)
SHLIB_CXX14LDFLAGS = -shared
SHLIB_CXX17LD = $(CXX17) $(CXX17STD)
SHLIB_CXX17LDFLAGS = -shared
SHLIB_EXT = .so
SHLIB_FCLD = $(FC)
SHLIB_FCLDFLAGS = -shared
SHLIB_FFLAGS = 
SHLIB_LD = $(CC)
SHLIB_LDFLAGS = -shared# $(CFLAGS) $(CPICFLAGS)
SHLIB_LIBADD = 
## We want to ensure libR is picked up from $(R_HOME)/lib
## before e.g. /usr/local/lib if a version is already installed.
SHLIB_LINK = $(SHLIB_LD) $(SHLIB_LDFLAGS) $(LIBR0) $(LDFLAGS)
SHLIB_OPENMP_CFLAGS = -fopenmp
SHLIB_OPENMP_CXXFLAGS = -fopenmp
SHLIB_OPENMP_FCFLAGS = -fopenmp
SHLIB_OPENMP_FFLAGS = -fopenmp
STRIP_LIBS = armv7a-hardfloat-linux-gnueabi-strip --strip-unneeded
STRIP_STATIC_LIBS = armv7a-hardfloat-linux-gnueabi-strip --strip-debug
TCLTK_CPPFLAGS = 
TCLTK_LIBS = 
YACC = bison -y

## legacy
CXX1X = armv7a-hardfloat-linux-gnueabi-g++
CXX1XFLAGS = -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard
CXX1XPICFLAGS = -fpic
CXX1XSTD = -std=gnu++11
SHLIB_CXX1XLD = $(CXX11) $(CXX11STD)
SHLIB_CXX1XLDFLAGS = -shared


## for linking to libR.a
STATIC_LIBR = # -Wl,--whole-archive "$(R_HOME)/lib$(R_ARCH)/libR.a" -Wl,--no-whole-archive $(BLAS_LIBS) $(FLIBS)  $(LIBINTL) -lreadline  $(LIBS)

R_XTRA_CFLAGS = 
R_XTRA_CPPFLAGS =  -I"$(R_INCLUDE_DIR)" -DNDEBUG
R_XTRA_CXXFLAGS = 
R_XTRA_FFLAGS = 

ALL_CFLAGS = $(R_XTRA_CFLAGS) $(PKG_CFLAGS) $(CPICFLAGS) $(SHLIB_CFLAGS) $(CFLAGS)
ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) $(PKG_CPPFLAGS) $(CLINK_CPPFLAGS) $(CPPFLAGS)
ALL_CXXFLAGS = $(R_XTRA_CXXFLAGS) $(PKG_CXXFLAGS) $(CXXPICFLAGS) $(SHLIB_CXXFLAGS) $(CXXFLAGS)
ALL_OBJCFLAGS = $(PKG_OBJCFLAGS) $(CPICFLAGS) $(SHLIB_CFLAGS) $(OBJCFLAGS)
ALL_OBJCXXFLAGS = $(PKG_OBJCXXFLAGS) $(CXXPICFLAGS) $(SHLIB_CXXFLAGS) $(OBJCXXFLAGS)
ALL_FFLAGS = $(R_XTRA_FFLAGS) $(PKG_FFLAGS) $(FPICFLAGS) $(SHLIB_FFLAGS) $(FFLAGS)
## LIBR here as a couple of packages use this without SHLIB_LINK
ALL_LIBS = $(PKG_LIBS) $(SHLIB_LIBADD) $(LIBR)# $(LIBINTL)

.SUFFIXES:
.SUFFIXES: .c .cc .cpp .d .f .f90 .f95 .m .mm .M .o

.c.o:
	$(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c $< -o $@
.c.d:
	@echo "making $@ from $<"
	@$(CC) -MM $(ALL_CPPFLAGS) $< > $@
.cc.o:
	$(CXX) $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) -c $< -o $@
.cpp.o:
	$(CXX) $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) -c $< -o $@
.cc.d:
	@echo "making $@ from $<"
	@$(CXX) -M $(ALL_CPPFLAGS) $< > $@
.cpp.d:
	@echo "making $@ from $<"
	@$(CXX) -M $(ALL_CPPFLAGS) $< > $@
.m.o:
	$(OBJC) $(ALL_CPPFLAGS) $(ALL_OBJCFLAGS) -c $< -o $@
.m.d:
	@echo "making $@ from $<"
	@armv7a-hardfloat-linux-gnueabi-gcc -MM $(ALL_CPPFLAGS) $< > $@
.mm.o:
	$(OBJCXX) $(ALL_CPPFLAGS) $(ALL_OBJCXXFLAGS) -c $< -o $@
.M.o:
	$(OBJCXX) $(ALL_CPPFLAGS) $(ALL_OBJCXXFLAGS) -c $< -o $@
.f.o:
	$(F77) $(ALL_FFLAGS) -c $< -o $@
.f95.o:
	$(FC) $(PKG_FCFLAGS) $(FCPICFLAGS) $(FCFLAGS) -c  $< -o $@
.f90.o:
	$(FC) $(PKG_FCFLAGS) $(FCPICFLAGS) $(FCFLAGS) -c  $< -o $@
