2021-12-31 08:22:10 +08:00
|
|
|
# Makefile.in generated by automake 1.15.1 from Makefile.am.
|
2018-04-14 03:42:37 +08:00
|
|
|
# @configure_input@
|
|
|
|
|
2021-12-31 08:22:10 +08:00
|
|
|
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
|
|
|
|
|
2018-04-14 03:42:37 +08:00
|
|
|
# This Makefile.in is free software; the Free Software Foundation
|
|
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
|
|
# PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
@SET_MAKE@
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
2021-12-31 08:22:10 +08:00
|
|
|
am__is_gnu_make = { \
|
|
|
|
if test -z '$(MAKELEVEL)'; then \
|
|
|
|
false; \
|
|
|
|
elif test -n '$(MAKE_HOST)'; then \
|
|
|
|
true; \
|
|
|
|
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
|
|
|
true; \
|
|
|
|
else \
|
|
|
|
false; \
|
|
|
|
fi; \
|
|
|
|
}
|
|
|
|
am__make_running_with_option = \
|
|
|
|
case $${target_option-} in \
|
|
|
|
?) ;; \
|
|
|
|
*) echo "am__make_running_with_option: internal error: invalid" \
|
|
|
|
"target option '$${target_option-}' specified" >&2; \
|
|
|
|
exit 1;; \
|
|
|
|
esac; \
|
|
|
|
has_opt=no; \
|
|
|
|
sane_makeflags=$$MAKEFLAGS; \
|
|
|
|
if $(am__is_gnu_make); then \
|
|
|
|
sane_makeflags=$$MFLAGS; \
|
|
|
|
else \
|
2018-04-14 03:42:37 +08:00
|
|
|
case $$MAKEFLAGS in \
|
|
|
|
*\\[\ \ ]*) \
|
2021-12-31 08:22:10 +08:00
|
|
|
bs=\\; \
|
|
|
|
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
|
|
|
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
|
|
|
esac; \
|
|
|
|
fi; \
|
|
|
|
skip_next=no; \
|
|
|
|
strip_trailopt () \
|
|
|
|
{ \
|
|
|
|
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
|
|
|
}; \
|
|
|
|
for flg in $$sane_makeflags; do \
|
|
|
|
test $$skip_next = yes && { skip_next=no; continue; }; \
|
|
|
|
case $$flg in \
|
|
|
|
*=*|--*) continue;; \
|
|
|
|
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
|
|
|
-*I?*) strip_trailopt 'I';; \
|
|
|
|
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
|
|
|
-*O?*) strip_trailopt 'O';; \
|
|
|
|
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
|
|
|
-*l?*) strip_trailopt 'l';; \
|
|
|
|
-[dEDm]) skip_next=yes;; \
|
|
|
|
-[JT]) skip_next=yes;; \
|
|
|
|
esac; \
|
|
|
|
case $$flg in \
|
|
|
|
*$$target_option*) has_opt=yes; break;; \
|
2018-04-14 03:42:37 +08:00
|
|
|
esac; \
|
2021-12-31 08:22:10 +08:00
|
|
|
done; \
|
|
|
|
test $$has_opt = yes
|
|
|
|
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
|
|
|
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
2018-04-14 03:42:37 +08:00
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
|
|
|
pkgincludedir = $(includedir)/@PACKAGE@
|
|
|
|
pkglibdir = $(libdir)/@PACKAGE@
|
|
|
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
|
|
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
|
|
|
install_sh_DATA = $(install_sh) -c -m 644
|
|
|
|
install_sh_PROGRAM = $(install_sh) -c
|
|
|
|
install_sh_SCRIPT = $(install_sh) -c
|
|
|
|
INSTALL_HEADER = $(INSTALL_DATA)
|
|
|
|
transform = $(program_transform_name)
|
|
|
|
NORMAL_INSTALL = :
|
|
|
|
PRE_INSTALL = :
|
|
|
|
POST_INSTALL = :
|
|
|
|
NORMAL_UNINSTALL = :
|
|
|
|
PRE_UNINSTALL = :
|
|
|
|
POST_UNINSTALL = :
|
|
|
|
build_triplet = @build@
|
|
|
|
host_triplet = @host@
|
|
|
|
subdir = .
|
|
|
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
2021-12-31 02:29:02 +08:00
|
|
|
am__aclocal_m4_deps = $(top_srcdir)/../../../../config/depstand.m4 \
|
|
|
|
$(top_srcdir)/../../../../config/lead-dot.m4 \
|
|
|
|
$(top_srcdir)/../../../../config/override.m4 \
|
|
|
|
$(top_srcdir)/../../../acinclude.m4 $(top_srcdir)/configure.ac
|
2018-04-14 03:42:37 +08:00
|
|
|
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
|
|
|
$(ACLOCAL_M4)
|
2021-12-31 08:22:10 +08:00
|
|
|
DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
|
|
|
|
$(am__configure_deps)
|
2018-04-14 03:42:37 +08:00
|
|
|
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
|
|
|
configure.lineno config.status.lineno
|
|
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs
|
|
|
|
CONFIG_CLEAN_FILES =
|
|
|
|
CONFIG_CLEAN_VPATH_FILES =
|
|
|
|
LIBRARIES = $(noinst_LIBRARIES)
|
|
|
|
ARFLAGS = cru
|
2021-12-09 00:15:33 +08:00
|
|
|
AM_V_AR = $(am__v_AR_@AM_V@)
|
|
|
|
am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
|
2021-12-31 08:22:10 +08:00
|
|
|
am__v_AR_0 = @echo " AR " $@;
|
|
|
|
am__v_AR_1 =
|
2018-04-14 03:42:37 +08:00
|
|
|
lib_a_AR = $(AR) $(ARFLAGS)
|
|
|
|
lib_a_LIBADD =
|
|
|
|
am_lib_a_OBJECTS = lib_a-calloc.$(OBJEXT) lib_a-callocr.$(OBJEXT) \
|
|
|
|
lib_a-malloc.$(OBJEXT) lib_a-mallocr.$(OBJEXT) \
|
|
|
|
lib_a-realloc.$(OBJEXT) lib_a-reallocr.$(OBJEXT) \
|
|
|
|
lib_a-free.$(OBJEXT) lib_a-write.$(OBJEXT) \
|
|
|
|
lib_a-assert.$(OBJEXT) lib_a-puts.$(OBJEXT) \
|
|
|
|
lib_a-putchar.$(OBJEXT) lib_a-printf.$(OBJEXT) \
|
|
|
|
lib_a-abort.$(OBJEXT) lib_a-exit.$(OBJEXT) \
|
nvptx: Emulate clock and other machine stubs.
This patch to the libc/machine/nvptx port of newlib implements an
approximation of "clock" and provides some additional stub routines.
These changes not only reduce the number of (link) failures in the GCC
testsuite when targeting nvptx-none, but also allow the NIST scimark4
benchmark to compile and run without modification.
newlib already contains support for backends to provide their own
clock implementations via -DCLOCK_PROVIDED. That functionality is
used here to return an approximate elapsed time based on the NVidia
GPU's clock64 cycle counter. Although not great, this is better than
the current behaviour of link error from the unresolved symbol
_times_r.
The other part of the patch is to add a small number of stub functions
to nvptx's misc.c. Adding isatty, for example, resolves linking
problems in libc from the dependency in __smakebuf_r, and the sync
stub, for example, fixes the failure with GCC's
testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 [which simply tests
that gfortran can call a/any C function].
newlib/
configure.host: Add -DCLOCK_PROVIDED to newlib_cflags on nvptx*.
newlib/libc/machine/nvptx
Makefile.am: Add clock.c to lib_a_SOURCES.
clock.c: New source file to implement/approximate clock().
misc.c: Add stubs for fstat, isatty, open, sync and unlink.
2021-08-25 00:24:19 +08:00
|
|
|
lib_a-misc.$(OBJEXT) lib_a-clock.$(OBJEXT)
|
2018-04-14 03:42:37 +08:00
|
|
|
lib_a_OBJECTS = $(am_lib_a_OBJECTS)
|
2021-12-31 08:22:10 +08:00
|
|
|
AM_V_P = $(am__v_P_@AM_V@)
|
|
|
|
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
|
|
|
am__v_P_0 = false
|
|
|
|
am__v_P_1 = :
|
|
|
|
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
|
|
|
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
|
|
|
am__v_GEN_0 = @echo " GEN " $@;
|
|
|
|
am__v_GEN_1 =
|
|
|
|
AM_V_at = $(am__v_at_@AM_V@)
|
|
|
|
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
|
|
|
am__v_at_0 = @
|
|
|
|
am__v_at_1 =
|
2018-04-14 03:42:37 +08:00
|
|
|
DEFAULT_INCLUDES = -I.@am__isrc@
|
|
|
|
depcomp =
|
|
|
|
am__depfiles_maybe =
|
2021-12-09 00:15:33 +08:00
|
|
|
AM_V_lt = $(am__v_lt_@AM_V@)
|
|
|
|
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
|
|
|
am__v_lt_0 = --silent
|
2021-12-31 08:22:10 +08:00
|
|
|
am__v_lt_1 =
|
2018-04-14 03:42:37 +08:00
|
|
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
|
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
2021-12-09 00:15:33 +08:00
|
|
|
AM_V_CC = $(am__v_CC_@AM_V@)
|
|
|
|
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
|
2021-12-31 08:22:10 +08:00
|
|
|
am__v_CC_0 = @echo " CC " $@;
|
|
|
|
am__v_CC_1 =
|
2018-04-14 03:42:37 +08:00
|
|
|
CCLD = $(CC)
|
|
|
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
2021-12-09 00:15:33 +08:00
|
|
|
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
|
|
|
|
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
|
2021-12-31 08:22:10 +08:00
|
|
|
am__v_CCLD_0 = @echo " CCLD " $@;
|
|
|
|
am__v_CCLD_1 =
|
2018-04-14 03:42:37 +08:00
|
|
|
SOURCES = $(lib_a_SOURCES)
|
|
|
|
am__can_run_installinfo = \
|
|
|
|
case $$AM_UPDATE_INFO_DIR in \
|
|
|
|
n|no|NO) false;; \
|
|
|
|
*) (install-info --version) >/dev/null 2>&1;; \
|
|
|
|
esac
|
2021-12-31 08:22:10 +08:00
|
|
|
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
|
|
|
# Read a list of newline-separated strings from the standard input,
|
|
|
|
# and print each of them once, without duplicates. Input order is
|
|
|
|
# *not* preserved.
|
|
|
|
am__uniquify_input = $(AWK) '\
|
|
|
|
BEGIN { nonempty = 0; } \
|
|
|
|
{ items[$$0] = 1; nonempty = 1; } \
|
|
|
|
END { if (nonempty) { for (i in items) print i; }; } \
|
|
|
|
'
|
|
|
|
# Make sure the list of sources is unique. This is necessary because,
|
|
|
|
# e.g., the same source file might be shared among _SOURCES variables
|
|
|
|
# for different programs/libraries.
|
|
|
|
am__define_uniq_tagged_files = \
|
|
|
|
list='$(am__tagged_files)'; \
|
|
|
|
unique=`for i in $$list; do \
|
|
|
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
|
|
|
done | $(am__uniquify_input)`
|
2018-04-14 03:42:37 +08:00
|
|
|
ETAGS = etags
|
|
|
|
CTAGS = ctags
|
2021-12-31 08:22:10 +08:00
|
|
|
CSCOPE = cscope
|
|
|
|
AM_RECURSIVE_TARGETS = cscope
|
2018-04-14 03:42:37 +08:00
|
|
|
ACLOCAL = @ACLOCAL@
|
|
|
|
AMTAR = @AMTAR@
|
2021-12-09 00:15:33 +08:00
|
|
|
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
2018-04-14 03:42:37 +08:00
|
|
|
AR = @AR@
|
|
|
|
AS = @AS@
|
|
|
|
AUTOCONF = @AUTOCONF@
|
|
|
|
AUTOHEADER = @AUTOHEADER@
|
|
|
|
AUTOMAKE = @AUTOMAKE@
|
|
|
|
AWK = @AWK@
|
|
|
|
CC = @CC@
|
|
|
|
CCAS = @CCAS@
|
|
|
|
CCASFLAGS = @CCASFLAGS@
|
|
|
|
CCDEPMODE = @CCDEPMODE@
|
|
|
|
CYGPATH_W = @CYGPATH_W@
|
|
|
|
DEFS = @DEFS@
|
|
|
|
DEPDIR = @DEPDIR@
|
|
|
|
ECHO_C = @ECHO_C@
|
|
|
|
ECHO_N = @ECHO_N@
|
|
|
|
ECHO_T = @ECHO_T@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
|
|
|
LIBOBJS = @LIBOBJS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
LTLIBOBJS = @LTLIBOBJS@
|
|
|
|
MAINT = @MAINT@
|
|
|
|
MAKEINFO = @MAKEINFO@
|
|
|
|
MKDIR_P = @MKDIR_P@
|
|
|
|
NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
|
|
|
|
NO_INCLUDE_LIST = @NO_INCLUDE_LIST@
|
|
|
|
OBJEXT = @OBJEXT@
|
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
|
|
|
PACKAGE_NAME = @PACKAGE_NAME@
|
|
|
|
PACKAGE_STRING = @PACKAGE_STRING@
|
|
|
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
|
|
|
PACKAGE_URL = @PACKAGE_URL@
|
|
|
|
PACKAGE_VERSION = @PACKAGE_VERSION@
|
|
|
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
READELF = @READELF@
|
|
|
|
SET_MAKE = @SET_MAKE@
|
|
|
|
SHELL = @SHELL@
|
|
|
|
STRIP = @STRIP@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
abs_builddir = @abs_builddir@
|
|
|
|
abs_srcdir = @abs_srcdir@
|
|
|
|
abs_top_builddir = @abs_top_builddir@
|
|
|
|
abs_top_srcdir = @abs_top_srcdir@
|
|
|
|
aext = @aext@
|
|
|
|
am__include = @am__include@
|
|
|
|
am__leading_dot = @am__leading_dot@
|
|
|
|
am__quote = @am__quote@
|
|
|
|
am__tar = @am__tar@
|
|
|
|
am__untar = @am__untar@
|
|
|
|
bindir = @bindir@
|
|
|
|
build = @build@
|
|
|
|
build_alias = @build_alias@
|
|
|
|
build_cpu = @build_cpu@
|
|
|
|
build_os = @build_os@
|
|
|
|
build_vendor = @build_vendor@
|
|
|
|
builddir = @builddir@
|
|
|
|
datadir = @datadir@
|
|
|
|
datarootdir = @datarootdir@
|
|
|
|
docdir = @docdir@
|
|
|
|
dvidir = @dvidir@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
host = @host@
|
|
|
|
host_alias = @host_alias@
|
|
|
|
host_cpu = @host_cpu@
|
|
|
|
host_os = @host_os@
|
|
|
|
host_vendor = @host_vendor@
|
|
|
|
htmldir = @htmldir@
|
|
|
|
includedir = @includedir@
|
|
|
|
infodir = @infodir@
|
|
|
|
install_sh = @install_sh@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
libm_machine_dir = @libm_machine_dir@
|
|
|
|
localedir = @localedir@
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
lpfx = @lpfx@
|
|
|
|
machine_dir = @machine_dir@
|
|
|
|
mandir = @mandir@
|
|
|
|
mkdir_p = @mkdir_p@
|
|
|
|
newlib_basedir = @newlib_basedir@
|
|
|
|
oext = @oext@
|
|
|
|
oldincludedir = @oldincludedir@
|
|
|
|
pdfdir = @pdfdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
program_transform_name = @program_transform_name@
|
|
|
|
psdir = @psdir@
|
|
|
|
sbindir = @sbindir@
|
nvptx: Emulate clock and other machine stubs.
This patch to the libc/machine/nvptx port of newlib implements an
approximation of "clock" and provides some additional stub routines.
These changes not only reduce the number of (link) failures in the GCC
testsuite when targeting nvptx-none, but also allow the NIST scimark4
benchmark to compile and run without modification.
newlib already contains support for backends to provide their own
clock implementations via -DCLOCK_PROVIDED. That functionality is
used here to return an approximate elapsed time based on the NVidia
GPU's clock64 cycle counter. Although not great, this is better than
the current behaviour of link error from the unresolved symbol
_times_r.
The other part of the patch is to add a small number of stub functions
to nvptx's misc.c. Adding isatty, for example, resolves linking
problems in libc from the dependency in __smakebuf_r, and the sync
stub, for example, fixes the failure with GCC's
testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 [which simply tests
that gfortran can call a/any C function].
newlib/
configure.host: Add -DCLOCK_PROVIDED to newlib_cflags on nvptx*.
newlib/libc/machine/nvptx
Makefile.am: Add clock.c to lib_a_SOURCES.
clock.c: New source file to implement/approximate clock().
misc.c: Add stubs for fstat, isatty, open, sync and unlink.
2021-08-25 00:24:19 +08:00
|
|
|
shared_machine_dir = @shared_machine_dir@
|
2018-04-14 03:42:37 +08:00
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
sys_dir = @sys_dir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
target_alias = @target_alias@
|
|
|
|
top_build_prefix = @top_build_prefix@
|
|
|
|
top_builddir = @top_builddir@
|
|
|
|
top_srcdir = @top_srcdir@
|
2021-12-31 03:26:52 +08:00
|
|
|
AM_CPPFLAGS = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
|
|
|
AM_CCASFLAGS = $(AM_CPPFLAGS)
|
2018-04-14 03:42:37 +08:00
|
|
|
noinst_LIBRARIES = lib.a
|
|
|
|
lib_a_SOURCES = calloc.c callocr.c malloc.c mallocr.c realloc.c reallocr.c \
|
|
|
|
free.c write.c assert.c puts.c putchar.c printf.c abort.c \
|
nvptx: Emulate clock and other machine stubs.
This patch to the libc/machine/nvptx port of newlib implements an
approximation of "clock" and provides some additional stub routines.
These changes not only reduce the number of (link) failures in the GCC
testsuite when targeting nvptx-none, but also allow the NIST scimark4
benchmark to compile and run without modification.
newlib already contains support for backends to provide their own
clock implementations via -DCLOCK_PROVIDED. That functionality is
used here to return an approximate elapsed time based on the NVidia
GPU's clock64 cycle counter. Although not great, this is better than
the current behaviour of link error from the unresolved symbol
_times_r.
The other part of the patch is to add a small number of stub functions
to nvptx's misc.c. Adding isatty, for example, resolves linking
problems in libc from the dependency in __smakebuf_r, and the sync
stub, for example, fixes the failure with GCC's
testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 [which simply tests
that gfortran can call a/any C function].
newlib/
configure.host: Add -DCLOCK_PROVIDED to newlib_cflags on nvptx*.
newlib/libc/machine/nvptx
Makefile.am: Add clock.c to lib_a_SOURCES.
clock.c: New source file to implement/approximate clock().
misc.c: Add stubs for fstat, isatty, open, sync and unlink.
2021-08-25 00:24:19 +08:00
|
|
|
exit.c misc.c clock.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a_CFLAGS = $(AM_CFLAGS)
|
2021-12-31 02:29:02 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I ../../.. -I ../../../.. -I ../../../../config
|
2018-04-14 03:42:37 +08:00
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|
|
|
|
all: all-am
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .o .obj
|
|
|
|
am--refresh: Makefile
|
|
|
|
@:
|
|
|
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
|
|
|
@for dep in $?; do \
|
|
|
|
case '$(am__configure_deps)' in \
|
|
|
|
*$$dep*) \
|
2021-12-15 07:24:24 +08:00
|
|
|
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps'; \
|
|
|
|
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign --ignore-deps \
|
2018-04-14 03:42:37 +08:00
|
|
|
&& exit 0; \
|
|
|
|
exit 1;; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
2021-12-15 07:24:24 +08:00
|
|
|
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps Makefile'; \
|
2018-04-14 03:42:37 +08:00
|
|
|
$(am__cd) $(top_srcdir) && \
|
2021-12-15 07:24:24 +08:00
|
|
|
$(AUTOMAKE) --foreign --ignore-deps Makefile
|
2018-04-14 03:42:37 +08:00
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
@case '$?' in \
|
|
|
|
*config.status*) \
|
|
|
|
echo ' $(SHELL) ./config.status'; \
|
|
|
|
$(SHELL) ./config.status;; \
|
|
|
|
*) \
|
|
|
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
|
|
|
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
|
|
|
esac;
|
|
|
|
|
|
|
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
|
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
|
|
|
|
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
|
|
|
$(am__cd) $(srcdir) && $(AUTOCONF)
|
|
|
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
|
|
|
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
|
|
|
$(am__aclocal_m4_deps):
|
|
|
|
|
|
|
|
clean-noinstLIBRARIES:
|
|
|
|
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
|
2021-12-31 08:22:10 +08:00
|
|
|
|
2018-04-14 03:42:37 +08:00
|
|
|
lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) $(EXTRA_lib_a_DEPENDENCIES)
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_at)-rm -f lib.a
|
|
|
|
$(AM_V_AR)$(lib_a_AR) lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD)
|
|
|
|
$(AM_V_at)$(RANLIB) lib.a
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
mostlyclean-compile:
|
|
|
|
-rm -f *.$(OBJEXT)
|
|
|
|
|
|
|
|
distclean-compile:
|
|
|
|
-rm -f *.tab.c
|
|
|
|
|
|
|
|
.c.o:
|
2021-12-31 08:22:10 +08:00
|
|
|
$(AM_V_CC)$(COMPILE) -c -o $@ $<
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
.c.obj:
|
2021-12-31 08:22:10 +08:00
|
|
|
$(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-calloc.o: calloc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-calloc.o `test -f 'calloc.c' || echo '$(srcdir)/'`calloc.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-calloc.obj: calloc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-calloc.obj `if test -f 'calloc.c'; then $(CYGPATH_W) 'calloc.c'; else $(CYGPATH_W) '$(srcdir)/calloc.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-callocr.o: callocr.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-callocr.o `test -f 'callocr.c' || echo '$(srcdir)/'`callocr.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-callocr.obj: callocr.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-callocr.obj `if test -f 'callocr.c'; then $(CYGPATH_W) 'callocr.c'; else $(CYGPATH_W) '$(srcdir)/callocr.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-malloc.o: malloc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-malloc.obj: malloc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-mallocr.o: mallocr.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-mallocr.o `test -f 'mallocr.c' || echo '$(srcdir)/'`mallocr.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-mallocr.obj: mallocr.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-mallocr.obj `if test -f 'mallocr.c'; then $(CYGPATH_W) 'mallocr.c'; else $(CYGPATH_W) '$(srcdir)/mallocr.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-realloc.o: realloc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-realloc.o `test -f 'realloc.c' || echo '$(srcdir)/'`realloc.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-realloc.obj: realloc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-realloc.obj `if test -f 'realloc.c'; then $(CYGPATH_W) 'realloc.c'; else $(CYGPATH_W) '$(srcdir)/realloc.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-reallocr.o: reallocr.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-reallocr.o `test -f 'reallocr.c' || echo '$(srcdir)/'`reallocr.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-reallocr.obj: reallocr.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-reallocr.obj `if test -f 'reallocr.c'; then $(CYGPATH_W) 'reallocr.c'; else $(CYGPATH_W) '$(srcdir)/reallocr.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-free.o: free.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-free.o `test -f 'free.c' || echo '$(srcdir)/'`free.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-free.obj: free.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-free.obj `if test -f 'free.c'; then $(CYGPATH_W) 'free.c'; else $(CYGPATH_W) '$(srcdir)/free.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-write.o: write.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-write.o `test -f 'write.c' || echo '$(srcdir)/'`write.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-write.obj: write.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-write.obj `if test -f 'write.c'; then $(CYGPATH_W) 'write.c'; else $(CYGPATH_W) '$(srcdir)/write.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-assert.o: assert.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-assert.o `test -f 'assert.c' || echo '$(srcdir)/'`assert.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-assert.obj: assert.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-assert.obj `if test -f 'assert.c'; then $(CYGPATH_W) 'assert.c'; else $(CYGPATH_W) '$(srcdir)/assert.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-puts.o: puts.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-puts.o `test -f 'puts.c' || echo '$(srcdir)/'`puts.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-puts.obj: puts.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-puts.obj `if test -f 'puts.c'; then $(CYGPATH_W) 'puts.c'; else $(CYGPATH_W) '$(srcdir)/puts.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-putchar.o: putchar.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-putchar.o `test -f 'putchar.c' || echo '$(srcdir)/'`putchar.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-putchar.obj: putchar.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-putchar.obj `if test -f 'putchar.c'; then $(CYGPATH_W) 'putchar.c'; else $(CYGPATH_W) '$(srcdir)/putchar.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-printf.o: printf.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-printf.o `test -f 'printf.c' || echo '$(srcdir)/'`printf.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-printf.obj: printf.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-printf.obj `if test -f 'printf.c'; then $(CYGPATH_W) 'printf.c'; else $(CYGPATH_W) '$(srcdir)/printf.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-abort.o: abort.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-abort.o `test -f 'abort.c' || echo '$(srcdir)/'`abort.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-abort.obj: abort.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-abort.obj `if test -f 'abort.c'; then $(CYGPATH_W) 'abort.c'; else $(CYGPATH_W) '$(srcdir)/abort.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-exit.o: exit.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-exit.o `test -f 'exit.c' || echo '$(srcdir)/'`exit.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-exit.obj: exit.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-exit.obj `if test -f 'exit.c'; then $(CYGPATH_W) 'exit.c'; else $(CYGPATH_W) '$(srcdir)/exit.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-misc.o: misc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-misc.o `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
lib_a-misc.obj: misc.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-misc.obj `if test -f 'misc.c'; then $(CYGPATH_W) 'misc.c'; else $(CYGPATH_W) '$(srcdir)/misc.c'; fi`
|
2018-04-14 03:42:37 +08:00
|
|
|
|
nvptx: Emulate clock and other machine stubs.
This patch to the libc/machine/nvptx port of newlib implements an
approximation of "clock" and provides some additional stub routines.
These changes not only reduce the number of (link) failures in the GCC
testsuite when targeting nvptx-none, but also allow the NIST scimark4
benchmark to compile and run without modification.
newlib already contains support for backends to provide their own
clock implementations via -DCLOCK_PROVIDED. That functionality is
used here to return an approximate elapsed time based on the NVidia
GPU's clock64 cycle counter. Although not great, this is better than
the current behaviour of link error from the unresolved symbol
_times_r.
The other part of the patch is to add a small number of stub functions
to nvptx's misc.c. Adding isatty, for example, resolves linking
problems in libc from the dependency in __smakebuf_r, and the sync
stub, for example, fixes the failure with GCC's
testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 [which simply tests
that gfortran can call a/any C function].
newlib/
configure.host: Add -DCLOCK_PROVIDED to newlib_cflags on nvptx*.
newlib/libc/machine/nvptx
Makefile.am: Add clock.c to lib_a_SOURCES.
clock.c: New source file to implement/approximate clock().
misc.c: Add stubs for fstat, isatty, open, sync and unlink.
2021-08-25 00:24:19 +08:00
|
|
|
lib_a-clock.o: clock.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-clock.o `test -f 'clock.c' || echo '$(srcdir)/'`clock.c
|
nvptx: Emulate clock and other machine stubs.
This patch to the libc/machine/nvptx port of newlib implements an
approximation of "clock" and provides some additional stub routines.
These changes not only reduce the number of (link) failures in the GCC
testsuite when targeting nvptx-none, but also allow the NIST scimark4
benchmark to compile and run without modification.
newlib already contains support for backends to provide their own
clock implementations via -DCLOCK_PROVIDED. That functionality is
used here to return an approximate elapsed time based on the NVidia
GPU's clock64 cycle counter. Although not great, this is better than
the current behaviour of link error from the unresolved symbol
_times_r.
The other part of the patch is to add a small number of stub functions
to nvptx's misc.c. Adding isatty, for example, resolves linking
problems in libc from the dependency in __smakebuf_r, and the sync
stub, for example, fixes the failure with GCC's
testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 [which simply tests
that gfortran can call a/any C function].
newlib/
configure.host: Add -DCLOCK_PROVIDED to newlib_cflags on nvptx*.
newlib/libc/machine/nvptx
Makefile.am: Add clock.c to lib_a_SOURCES.
clock.c: New source file to implement/approximate clock().
misc.c: Add stubs for fstat, isatty, open, sync and unlink.
2021-08-25 00:24:19 +08:00
|
|
|
|
|
|
|
lib_a-clock.obj: clock.c
|
2021-12-09 00:15:33 +08:00
|
|
|
$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lib_a_CFLAGS) $(CFLAGS) -c -o lib_a-clock.obj `if test -f 'clock.c'; then $(CYGPATH_W) 'clock.c'; else $(CYGPATH_W) '$(srcdir)/clock.c'; fi`
|
nvptx: Emulate clock and other machine stubs.
This patch to the libc/machine/nvptx port of newlib implements an
approximation of "clock" and provides some additional stub routines.
These changes not only reduce the number of (link) failures in the GCC
testsuite when targeting nvptx-none, but also allow the NIST scimark4
benchmark to compile and run without modification.
newlib already contains support for backends to provide their own
clock implementations via -DCLOCK_PROVIDED. That functionality is
used here to return an approximate elapsed time based on the NVidia
GPU's clock64 cycle counter. Although not great, this is better than
the current behaviour of link error from the unresolved symbol
_times_r.
The other part of the patch is to add a small number of stub functions
to nvptx's misc.c. Adding isatty, for example, resolves linking
problems in libc from the dependency in __smakebuf_r, and the sync
stub, for example, fixes the failure with GCC's
testsuite/gfortran.dg/ISO_Fortran_binding_14.f90 [which simply tests
that gfortran can call a/any C function].
newlib/
configure.host: Add -DCLOCK_PROVIDED to newlib_cflags on nvptx*.
newlib/libc/machine/nvptx
Makefile.am: Add clock.c to lib_a_SOURCES.
clock.c: New source file to implement/approximate clock().
misc.c: Add stubs for fstat, isatty, open, sync and unlink.
2021-08-25 00:24:19 +08:00
|
|
|
|
2021-12-31 08:22:10 +08:00
|
|
|
ID: $(am__tagged_files)
|
|
|
|
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
|
|
|
tags: tags-am
|
|
|
|
TAGS: tags
|
|
|
|
|
|
|
|
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
2018-04-14 03:42:37 +08:00
|
|
|
set x; \
|
|
|
|
here=`pwd`; \
|
2021-12-31 08:22:10 +08:00
|
|
|
$(am__define_uniq_tagged_files); \
|
2018-04-14 03:42:37 +08:00
|
|
|
shift; \
|
|
|
|
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
|
|
|
test -n "$$unique" || unique=$$empty_fix; \
|
|
|
|
if test $$# -gt 0; then \
|
|
|
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|
|
|
"$$@" $$unique; \
|
|
|
|
else \
|
|
|
|
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
|
|
|
$$unique; \
|
|
|
|
fi; \
|
|
|
|
fi
|
2021-12-31 08:22:10 +08:00
|
|
|
ctags: ctags-am
|
|
|
|
|
|
|
|
CTAGS: ctags
|
|
|
|
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
|
|
|
|
$(am__define_uniq_tagged_files); \
|
2018-04-14 03:42:37 +08:00
|
|
|
test -z "$(CTAGS_ARGS)$$unique" \
|
|
|
|
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
|
|
|
$$unique
|
|
|
|
|
|
|
|
GTAGS:
|
|
|
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
|
|
|
&& $(am__cd) $(top_srcdir) \
|
|
|
|
&& gtags -i $(GTAGS_ARGS) "$$here"
|
2021-12-31 08:22:10 +08:00
|
|
|
cscope: cscope.files
|
|
|
|
test ! -s cscope.files \
|
|
|
|
|| $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
|
|
|
|
clean-cscope:
|
|
|
|
-rm -f cscope.files
|
|
|
|
cscope.files: clean-cscope cscopelist
|
|
|
|
cscopelist: cscopelist-am
|
|
|
|
|
|
|
|
cscopelist-am: $(am__tagged_files)
|
|
|
|
list='$(am__tagged_files)'; \
|
|
|
|
case "$(srcdir)" in \
|
|
|
|
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
|
|
|
|
*) sdir=$(subdir)/$(srcdir) ;; \
|
|
|
|
esac; \
|
|
|
|
for i in $$list; do \
|
|
|
|
if test -f "$$i"; then \
|
|
|
|
echo "$(subdir)/$$i"; \
|
|
|
|
else \
|
|
|
|
echo "$$sdir/$$i"; \
|
|
|
|
fi; \
|
|
|
|
done >> $(top_builddir)/cscope.files
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
distclean-tags:
|
|
|
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
2021-12-31 08:22:10 +08:00
|
|
|
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
|
2021-12-15 07:24:24 +08:00
|
|
|
check-am: all-am
|
2018-04-14 03:42:37 +08:00
|
|
|
check: check-am
|
|
|
|
all-am: Makefile $(LIBRARIES)
|
|
|
|
installdirs:
|
|
|
|
install: install-am
|
|
|
|
install-exec: install-exec-am
|
|
|
|
install-data: install-data-am
|
|
|
|
uninstall: uninstall-am
|
|
|
|
|
|
|
|
install-am: all-am
|
|
|
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
|
|
|
|
|
|
|
installcheck: installcheck-am
|
|
|
|
install-strip:
|
|
|
|
if test -z '$(STRIP)'; then \
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
|
|
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
|
|
|
install; \
|
|
|
|
else \
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
|
|
|
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
|
|
|
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
|
|
|
fi
|
|
|
|
mostlyclean-generic:
|
|
|
|
|
|
|
|
clean-generic:
|
|
|
|
|
|
|
|
distclean-generic:
|
|
|
|
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
|
|
|
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
|
|
|
|
|
|
|
maintainer-clean-generic:
|
|
|
|
@echo "This command is intended for maintainers to use"
|
|
|
|
@echo "it deletes files that may require special tools to rebuild."
|
|
|
|
clean: clean-am
|
|
|
|
|
|
|
|
clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am
|
|
|
|
|
|
|
|
distclean: distclean-am
|
|
|
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
|
|
|
-rm -f Makefile
|
|
|
|
distclean-am: clean-am distclean-compile distclean-generic \
|
|
|
|
distclean-tags
|
|
|
|
|
|
|
|
dvi: dvi-am
|
|
|
|
|
|
|
|
dvi-am:
|
|
|
|
|
|
|
|
html: html-am
|
|
|
|
|
|
|
|
html-am:
|
|
|
|
|
|
|
|
info: info-am
|
|
|
|
|
|
|
|
info-am:
|
|
|
|
|
|
|
|
install-data-am:
|
|
|
|
|
|
|
|
install-dvi: install-dvi-am
|
|
|
|
|
|
|
|
install-dvi-am:
|
|
|
|
|
|
|
|
install-exec-am:
|
|
|
|
|
|
|
|
install-html: install-html-am
|
|
|
|
|
|
|
|
install-html-am:
|
|
|
|
|
|
|
|
install-info: install-info-am
|
|
|
|
|
|
|
|
install-info-am:
|
|
|
|
|
|
|
|
install-man:
|
|
|
|
|
|
|
|
install-pdf: install-pdf-am
|
|
|
|
|
|
|
|
install-pdf-am:
|
|
|
|
|
|
|
|
install-ps: install-ps-am
|
|
|
|
|
|
|
|
install-ps-am:
|
|
|
|
|
|
|
|
installcheck-am:
|
|
|
|
|
|
|
|
maintainer-clean: maintainer-clean-am
|
|
|
|
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
|
|
|
-rm -rf $(top_srcdir)/autom4te.cache
|
|
|
|
-rm -f Makefile
|
|
|
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
|
|
|
|
|
|
|
mostlyclean: mostlyclean-am
|
|
|
|
|
|
|
|
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
|
|
|
|
|
|
|
pdf: pdf-am
|
|
|
|
|
|
|
|
pdf-am:
|
|
|
|
|
|
|
|
ps: ps-am
|
|
|
|
|
|
|
|
ps-am:
|
|
|
|
|
|
|
|
uninstall-am:
|
|
|
|
|
|
|
|
.MAKE: install-am install-strip
|
|
|
|
|
2021-12-31 08:22:10 +08:00
|
|
|
.PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
|
|
|
|
clean-cscope clean-generic clean-noinstLIBRARIES cscope \
|
|
|
|
cscopelist-am ctags ctags-am distclean distclean-compile \
|
|
|
|
distclean-generic distclean-tags dvi dvi-am html html-am info \
|
|
|
|
info-am install install-am install-data install-data-am \
|
|
|
|
install-dvi install-dvi-am install-exec install-exec-am \
|
|
|
|
install-html install-html-am install-info install-info-am \
|
|
|
|
install-man install-pdf install-pdf-am install-ps \
|
|
|
|
install-ps-am install-strip installcheck installcheck-am \
|
|
|
|
installdirs maintainer-clean maintainer-clean-generic \
|
|
|
|
mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
|
|
|
|
ps ps-am tags tags-am uninstall uninstall-am
|
|
|
|
|
|
|
|
.PRECIOUS: Makefile
|
2018-04-14 03:42:37 +08:00
|
|
|
|
|
|
|
|
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|
|
|
.NOEXPORT:
|