Cross Reference: Makefile
xref: /src/distrib/utils/libhack/Makefile
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/distrib/utils/libhack/
Makefile revision 1.23
11.23Schristos# $NetBSD: Makefile,v 1.23 2012/10/11 17:11:16 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.21Smartin.PATH.c: ${.CURDIR}/../../../lib/libc/gen ${.CURDIR}/../../../lib/libc/locale
81.16Schristos
91.23SchristosHACKSRC?=${.CURDIR}
101.23SchristosHACKOBJ?=${.OBJDIR}
111.23Schristos
121.16SchristosCPPFLAGS+=	-DSMALL
131.22StnozakiCPPFLAGS.runetable.c+=	-I${HACKSRC}/../../../lib/libc/citrus \
141.22Stnozaki			-DALL_80_TO_FF_SW1
151.23SchristosCPPFLAGS.syslog.c+=	-I${HACKSRC}/../../../lib/libc/include
161.16Schristos
171.13StvLIB=		hack
181.15SlukemSRCS=		getcap.c getgrent.c getnet.c getnetgr.c getpwent.c \
191.21Smartin		localeconv.c multibyte.c perror.c runetable.c setlocale.c \
201.17Schristos		strerror.c strsignal.c syslog.c utmp.c yplib.c
211.7Sgwr
221.13StvWARNS=		1
231.13StvNOLINKLIB=	# defined
241.13StvNOLINT= 	# defined
251.13StvNOPIC=		# defined
261.13StvNOPROFILE=	# defined
271.9Sdan
281.13Stvrealall: libhack.o
291.7Sgwr
301.13Stvlibhack.o: libhack.a
311.13Stv	${LD} -r -o $@ --whole-archive libhack.a
321.9Sdan
331.13StvCLEANFILES+=	libhack.o
341.2Sgwr
351.2Sgwrtpwent: getpwent.c
361.13Stv	${CC} -g -o $@.o -DTEST_MAIN -c getpwent.c
371.13Stv	${CC} -o $@ $@.o
381.1Sgwr
391.1Sgwr.include <bsd.lib.mk>
40

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