2002-03-25 10:43:39 +03:00
|
|
|
# $NetBSD: Makefile,v 1.15 2002/03/25 07:43:49 lukem Exp $
|
1995-10-09 02:08:46 +03:00
|
|
|
#
|
|
|
|
# Stubs to kill off some things from libc:
|
|
|
|
# This save space on a boot system.
|
1997-12-12 06:36:38 +03:00
|
|
|
# (See Makefile.inc also.)
|
1995-10-09 02:08:46 +03:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
LIB= hack
|
2002-03-25 10:43:39 +03:00
|
|
|
SRCS= getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \
|
2001-12-12 03:05:09 +03:00
|
|
|
localeconv.c perror.c setlocale.c \
|
|
|
|
strerror.c strsignal.c utmp.c yplib.c
|
1999-05-19 07:58:13 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
WARNS= 1
|
|
|
|
NOLINKLIB= # defined
|
|
|
|
NOLINT= # defined
|
|
|
|
NOPIC= # defined
|
|
|
|
NOPROFILE= # defined
|
1999-09-26 08:49:37 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
realall: libhack.o
|
1999-05-19 07:58:13 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
libhack.o: libhack.a
|
|
|
|
${LD} -r -o $@ --whole-archive libhack.a
|
1999-09-26 08:49:37 +04:00
|
|
|
|
2001-12-12 03:05:09 +03:00
|
|
|
CLEANFILES+= libhack.o
|
1995-10-09 02:08:46 +03:00
|
|
|
|
1995-10-13 21:10:06 +03:00
|
|
|
tpwent: getpwent.c
|
2001-12-12 03:05:09 +03:00
|
|
|
${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
|
|
|
|
${CC} -o $@ $@.o
|
1995-10-13 21:10:06 +03:00
|
|
|
|
1995-10-09 02:08:46 +03:00
|
|
|
.include <bsd.lib.mk>
|