1# $NetBSD: Makefile,v 1.26 2019/03/28 15:04:41 christos Exp $ 2# 3# Stubs to kill off some things from libc: 4# This save space on a boot system. 5# (See Makefile.inc also.) 6 7LIB= hack 8WARNS= 1 9NOLINKLIB= # defined 10NOLINT= # defined 11NOPIC= # defined 12NOPROFILE= # defined 13 14HACKSRC?=${.CURDIR} 15HACKOBJ?=${.OBJDIR} 16 17.include "Makefile.inc" 18 19OBJS= ${HACKOBJS} 20 21realall: libhack.o 22 23libhack.o: libhack.a 24 ${LD} -r -o $@ --whole-archive libhack.a 25 26CLEANFILES+= libhack.o 27 28tpwent: getpwent.c 29 ${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c 30 ${CC} -o $@ $@.o 31 32.include <bsd.lib.mk> 33