1 ########################################################################
3 # Shared libc with userspace (/common/lib/libc)
7 ${f} ${f:C/\.o/.bc/}: ${LIBCOMMONCDIR}/string/${f:C/\.o/.c/}
8 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCDIR}/string/${f:C/\.o/.c/}
12 .if ${USE_BITCODE:Uno} == "yes"
13 OBJS+= ${f:C/\.o/.bc/}
14 CLEANFILES+= ${f:C/\.o/.bc/}
15 .endif # ${USE_BITCODE:Uno} == "yes"
18 CPPFLAGS.strlcpy.c+= -D_LIBC
21 byte_swap_2.o byte_swap_4.o
22 ${f} ${f:C/\.o/.bc/}: ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.S/}
23 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.S/}
27 .if ${USE_BITCODE:Uno} == "yes"
28 OBJS+= ${f:C/\.o/.bc/}
29 CLEANFILES+= ${f:C/\.o/.bc/}
30 .endif # ${USE_BITCODE:Uno} == "yes"
34 memchr.o memcmp.o memcpy.o memmove.o memset.o \
35 strcat.o strchr.o strcmp.o strcpy.o strlen.o \
37 ${f} ${f:C/\.o/.bc/}: ${LIBCOMMONCARCHDIR}/string/${f:C/\.o/.S/}
38 ${f} ${f:C/\.o/.go/}: ${LIBCOMMONCARCHDIR}/string/${f:C/\.o/.S/}
42 .if ${USE_BITCODE:Uno} == "yes"
43 OBJS+= ${f:C/\.o/.bc/}
44 CLEANFILES+= ${f:C/\.o/.bc/}
45 .endif # ${USE_BITCODE:Uno} == "yes"
48 ########################################################################
50 # Functions imported directly from libc.
54 ${f} ${f:C/\.o/.bc/}: ${LIBCARCHDIR}/gen/${f:C/\.o/.S/}
55 ${f} ${f:C/\.o/.go/}: ${LIBCARCHDIR}/gen/${f:C/\.o/.S/}
59 .if ${USE_BITCODE:Uno} == "yes"
60 OBJS+= ${f:C/\.o/.bc/}
61 CLEANFILES+= ${f:C/\.o/.bc/}
62 .endif # ${USE_BITCODE:Uno} == "yes"
67 ${f} ${f:C/\.o/.bc/}: ${LIBCARCHDIR}/string/${f:C/\.o/.S/}
68 ${f} ${f:C/\.o/.go/}: ${LIBCARCHDIR}/string/${f:C/\.o/.S/}
72 .if ${USE_BITCODE:Uno} == "yes"
73 OBJS+= ${f:C/\.o/.bc/}
74 CLEANFILES+= ${f:C/\.o/.bc/}
75 .endif # ${USE_BITCODE:Uno} == "yes"