minix3/lib/libminc/arch/i386/Makefile.libc.inc

74 lines
1.6 KiB
PHP

########################################################################
#
# Shared libc with userspace (/common/lib/libc)
#
.for f in \
strlcpy.o strncpy.o
${f} ${f:C/\.o/.bc/}: ${LIBCOMMONCDIR}/string/${f:C/\.o/.c/}
OBJS+= ${f}
CLEANFILES+= ${f}
.if ${USE_BITCODE:Uno} == "yes"
OBJS+= ${f:C/\.o/.bc/}
CLEANFILES+= ${f:C/\.o/.bc/}
.endif # ${USE_BITCODE:Uno} == "yes"
.endfor
CPPFLAGS.strlcpy.c+= -D_LIBC
.for f in \
byte_swap_2.o byte_swap_4.o
${f} ${f:C/\.o/.bc/}: ${LIBCOMMONCARCHDIR}/gen/${f:C/\.o/.S/}
OBJS+= ${f}
CLEANFILES+= ${f}
.if ${USE_BITCODE:Uno} == "yes"
OBJS+= ${f:C/\.o/.bc/}
CLEANFILES+= ${f:C/\.o/.bc/}
.endif # ${USE_BITCODE:Uno} == "yes"
.endfor
CPPFLAGS.byte_swap_4.S+= -D_STANDALONE
.for f in \
memchr.o memcmp.o memcpy.o memmove.o memset.o \
strcat.o strchr.o strcmp.o strcpy.o strlen.o \
strrchr.o
${f} ${f:C/\.o/.bc/}: ${LIBCOMMONCARCHDIR}/string/${f:C/\.o/.S/}
OBJS+= ${f}
CLEANFILES+= ${f}
.if ${USE_BITCODE:Uno} == "yes"
OBJS+= ${f:C/\.o/.bc/}
CLEANFILES+= ${f:C/\.o/.bc/}
.endif # ${USE_BITCODE:Uno} == "yes"
.endfor
########################################################################
#
# Functions imported directly from libc.
#
.for f in \
alloca.o
${f} ${f:C/\.o/.bc/}: ${LIBCARCHDIR}/gen/${f:C/\.o/.S/}
OBJS+= ${f}
CLEANFILES+= ${f}
.if ${USE_BITCODE:Uno} == "yes"
OBJS+= ${f:C/\.o/.bc/}
CLEANFILES+= ${f:C/\.o/.bc/}
.endif # ${USE_BITCODE:Uno} == "yes"
.endfor
.for f in \
strncmp.o
${f} ${f:C/\.o/.bc/}: ${LIBCARCHDIR}/string/${f:C/\.o/.S/}
OBJS+= ${f}
CLEANFILES+= ${f}
.if ${USE_BITCODE:Uno} == "yes"
OBJS+= ${f:C/\.o/.bc/}
CLEANFILES+= ${f:C/\.o/.bc/}
.endif # ${USE_BITCODE:Uno} == "yes"
.endfor