NetBSD/distrib/utils/libhack/Makefile
lukem a23934fd2a permanently disable opendir.o until its link bugs (on ELF platforms
only?) are sorted out.  speculation (based on some analysis by simonb)
is that it's because fts calls _opendir2 directly, which forces both
the libhack and the libc versions of opendir.o to be linked in.
in any case, there's space saves to be had elsewhere...
2002-02-03 22:39:52 +00:00

30 lines
630 B
Makefile

# $NetBSD: Makefile,v 1.14 2002/02/03 22:39:52 lukem Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
# (See Makefile.inc also.)
LIB= hack
SRCS= getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
localeconv.c perror.c setlocale.c \
strerror.c strsignal.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>