Cross Reference: Makefile
xref: /src/distrib/utils/libhack/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/distrib/utils/libhack/
11.26Schristos# $NetBSD: Makefile,v 1.26 2019/03/28 15:04:41 christos Exp $
21.1Sgwr#
31.1Sgwr# Stubs to kill off some things from libc:
41.1Sgwr# This save space on a boot system.
51.4Sgwr# (See Makefile.inc also.)
61.1Sgwr
71.26SchristosLIB=	hack
81.26SchristosWARNS=		1
91.26SchristosNOLINKLIB=	# defined
101.26SchristosNOLINT= 	# defined
111.26SchristosNOPIC=		# defined
121.26SchristosNOPROFILE=	# defined
131.16Schristos
141.23SchristosHACKSRC?=${.CURDIR}
151.23SchristosHACKOBJ?=${.OBJDIR}
161.23Schristos
171.26Schristos.include "Makefile.inc"
181.7Sgwr
191.26SchristosOBJS=		${HACKOBJS}
201.9Sdan
211.13Stvrealall: libhack.o
221.7Sgwr
231.13Stvlibhack.o: libhack.a
241.13Stv	${LD} -r -o $@ --whole-archive libhack.a
251.9Sdan
261.13StvCLEANFILES+=	libhack.o
271.2Sgwr
281.2Sgwrtpwent: getpwent.c
291.13Stv	${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
301.13Stv	${CC} -o $@ $@.o
311.1Sgwr
321.1Sgwr.include <bsd.lib.mk>
33

Indexes created Sun Dec 21 07:09:50 GMT 2025