4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-10 02:59:16 +08:00
Mike Frysinger 953ba1e6d1 newlib: simplify nds32 automake checks
This code is a bit more convoluted than it needs to be.  GPR_SOURCES
is never set to anything, and the automake checks use negative logic
to add the SP & DP source files to dedicated variables that are only
expanded once.  Get rid of the unused variable, use normal boolean
logic, and collapse the source settings into a single variable.
2022-02-08 19:06:15 -05:00

22 lines
393 B
Makefile

## Process this file with automake to generate Makefile.in
AM_CPPFLAGS = -I $(abs_newlib_basedir)/libm/common $(NEWLIB_CFLAGS) \
$(CROSS_CFLAGS) $(TARGET_CFLAGS)
src =
if HAS_NDS32_FPU_SP
src += wf_sqrt.S
endif
if HAS_NDS32_FPU_DP
src += w_sqrt.S
endif
noinst_LIBRARIES = lib.a
lib_a_SOURCES = $(src)
lib_a_CFLAGS = $(AM_CFLAGS)
noinst_DATA =
include $(srcdir)/../../../Makefile.shared