Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / distrib / utils / libhack / Makefile
blob5451b22828441703d838329b0e52d38bbdd3c166
1 # $NetBSD: Makefile,v 1.21 2007/11/06 19:27:07 martin Exp $
3 # Stubs to kill off some things from libc:
4 # This save space on a boot system.
5 # (See Makefile.inc also.)
7 .PATH.c: ${.CURDIR}/../../../lib/libc/gen ${.CURDIR}/../../../lib/libc/locale
9 CPPFLAGS+= -DSMALL
10 CPPFLAGS.runetable.c+= -I${HACKSRC}/../../../lib/libc/citrus \
11 -DALL_80_TO_FF_SW1
13 LIB= hack
14 SRCS= getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \
15 localeconv.c multibyte.c perror.c runetable.c setlocale.c \
16 strerror.c strsignal.c syslog.c utmp.c yplib.c
18 WARNS= 1
19 NOLINKLIB= # defined
20 NOLINT= # defined
21 NOPIC= # defined
22 NOPROFILE= # defined
24 realall: libhack.o
26 libhack.o: libhack.a
27 ${LD} -r -o $@ --whole-archive libhack.a
29 CLEANFILES+= libhack.o
31 tpwent: getpwent.c
32 ${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
33 ${CC} -o $@ $@.o
35 .include <bsd.lib.mk>