
The way these options work is by creating files that contain debugging symbols and stashing them in a dedicated set. The minix-debug set has been created for this purpose, but it will probably have to be refined since it has been tested only with the default options with an i386 cross-build. LSC: Amended to support many combination of MKDEBUG, MKDEBUGLIB, with and without X11, for both intel and arm. Change-Id: I2901952e8229938f9ac79c8656484acf704ccd9b
77 lines
1.9 KiB
PHP
77 lines
1.9 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/}
|
|
${f} ${f:C/\.o/.go/}: ${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/}
|
|
${f} ${f:C/\.o/.go/}: ${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
|
|
|
|
.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/}
|
|
${f} ${f:C/\.o/.go/}: ${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/}
|
|
${f} ${f:C/\.o/.go/}: ${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/}
|
|
${f} ${f:C/\.o/.go/}: ${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
|