1 ########################################################################
3 # Shared libc with userspace (/common/lib/libc)
8 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCDIR}/string/${f:C/\.o/.c/}
15 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCDIR}/quad/${f:C/\.o/.c/}
21 byte_swap_2.o byte_swap_4.o
22 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.S/}
28 __aeabi_idiv0.o __aeabi_ldiv0.o
29 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.c/}
34 CPPFLAGS.__aeabi_idiv0.c+= -D_STANDALONE -I${NETBSDSRCDIR}/sys
35 CPPFLAGS.__aeabi_ldiv0.c+= -D_STANDALONE -I${NETBSDSRCDIR}/sys
38 # __aeabi_ldivmod.o __aeabi_uldivmod.o
39 #${f} ${f:C/\.o/.go/}: ${LIBCOMMONCARCHDIR}/quad/${f:C/\.o/.S/}
45 memcmp.o memcpy.o memmove.o memset.o \
46 strcat.o strchr.o strcmp.o strcpy.o strlcpy.o strlen.o strncpy.o \
47 strncmp.o strrchr.o strcpy_arm.o
48 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCARCHDIR}/string/${f:C/\.o/.S/}
53 CPPFLAGS.strcpy_arm.S+= -DSTRLCPY -D_LIBC
55 ########################################################################
57 # Functions imported directly from libc.
61 ${f} ${f:C/\.o/.go/}: ${LIBCARCHDIR}/gen/${f:C/\.o/.S/}
67 __aeabi_dcmpeq.o __aeabi_fcmpeq.o \
68 __aeabi_dcmpge.o __aeabi_fcmpge.o \
69 __aeabi_dcmpgt.o __aeabi_fcmpgt.o \
70 __aeabi_dcmple.o __aeabi_fcmple.o \
71 __aeabi_dcmplt.o __aeabi_fcmplt.o \
72 __aeabi_dcmpun.o __aeabi_fcmpun.o
73 CPPFLAGS.${f:C/\.o/.c/}+= -I${LIBCARCHDIR}/softfloat -I${LIBCDIR}/softfloat
74 CPPFLAGS.${f:C/\.o/.c/}+= -DSOFTFLOAT_FOR_GCC
75 ${f} ${f:C/\.o/.go/}: ${LIBCARCHDIR}/softfloat/${f:C/\.o/.c/}
81 aeabi_uidivmod.o aeabi_ldivmod.o aeabi_uldivmod.o aeabi_idivmod.o
82 ${f} ${f:C/\.o/.go/}: ${NETBSDSRCDIR}/sys/external/bsd/compiler_rt/dist/lib/builtins/arm/${f:C/\.o/.S/}
88 fpgetround.o fpsetround.o fpgetmask.o fpsetmask.o \
89 fpgetsticky.o fpsetsticky.o
90 CPPFLAGS.${f:C/\.o/.c/}+= -I${LIBCARCHDIR}/softfloat -I${LIBCDIR}/softfloat
91 CPPFLAGS.${f:C/\.o/.c/}+= -DSOFTFLOAT_FOR_GCC
92 ${f} ${f:C/\.o/.go/}: ${LIBCDIR}/softfloat/${f:C/\.o/.c/}
100 CPPFLAGS.${f:C/\.o/.c/}+= -I${LIBCARCHDIR}/softfloat -I${LIBCDIR}/softfloat
101 CPPFLAGS.${f:C/\.o/.c/}+= -DSOFTFLOAT_FOR_GCC
102 ${f} ${f:C/\.o/.go/}: ${LIBCDIR}/softfloat/bits${SOFTFLOAT_BITS}/${f:C/\.o/.c/}
107 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 45
108 .if (${MACHINE_CPU} == "arm")
109 COPTS.softfloat.c+= -Wno-enum-compare -fno-tree-vrp