35 lines
827 B
Makefile
35 lines
827 B
Makefile
# $NetBSD: Makefile,v 1.21 2007/11/06 19:27:07 martin Exp $
|
|
#
|
|
# Stubs to kill off some things from libc:
|
|
# This save space on a boot system.
|
|
# (See Makefile.inc also.)
|
|
|
|
.PATH.c: ${.CURDIR}/../../../lib/libc/gen ${.CURDIR}/../../../lib/libc/locale
|
|
|
|
CPPFLAGS+= -DSMALL
|
|
CPPFLAGS.runetable.c+= -I ${HACKSRC}/../../../lib/libc -DALL_80_TO_FF_SW1
|
|
|
|
LIB= hack
|
|
SRCS= getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \
|
|
localeconv.c multibyte.c perror.c runetable.c setlocale.c \
|
|
strerror.c strsignal.c syslog.c utmp.c yplib.c
|
|
|
|
WARNS= 1
|
|
NOLINKLIB= # defined
|
|
NOLINT= # defined
|
|
NOPIC= # defined
|
|
NOPROFILE= # defined
|
|
|
|
realall: libhack.o
|
|
|
|
libhack.o: libhack.a
|
|
${LD} -r -o $@ --whole-archive libhack.a
|
|
|
|
CLEANFILES+= libhack.o
|
|
|
|
tpwent: getpwent.c
|
|
${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
|
|
${CC} -o $@ $@.o
|
|
|
|
.include <bsd.lib.mk>
|