#
# Variable definitions for libkern.
#
# Before including this, you _must_ set
# KERNDIR: location of sys/lib/libkern
#
# You *may* set:
# LIBKERN_ARCH: architecture subdir to be used
# KERNCPPFLAGS: see Makefile.inc
# KERNMISCCPPFLAGS: see Makefile.inc
#
include "${.PARSEDIR}/../../../common/lib/libc/Makefile.inc"
include "${.PARSEDIR}/../../../common/lib/libutil/Makefile.inc"
include "${.PARSEDIR}/../../../common/lib/libprop/Makefile.inc"
include "${.PARSEDIR}/../../../common/lib/libppath/Makefile.inc"
# Files to clean up
CLEANFILES+= lib${LIB}.o lib${LIB}.po
# Remove from SRCS the .c files for any .S files added by the MD makefiles,
# also remove from SRCS the .c files for the .c files in NO_SRCS.
# (Unlike libc, we don't worry about lint)
for check_file in ${SRCS:M*.S} ${NO_SRCS}
unwanted_file := ${SRCS:M${check_file:.S=.c}}
if "${unwanted_file}" != ""
SRCS := ${SRCS:N${unwanted_file}}
endif
endfor