Cross Reference: Makefile
xref: /src/distrib/utils/libhack/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/distrib/utils/libhack/
Makefile revision 1.10
1# $NetBSD: Makefile,v 1.10 2000/05/18 00:43:06 matt 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
8SRCS=	getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
9	localeconv.c perror.c setlocale.c \
10	strerror.c strsignal.c utmp.c yplib.c
11.ifndef NOLIBHACKOPENDIR
12SRCS+=        opendir.c
13.endif
14
15
16HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
17	localeconv.o perror.o setlocale.o \
18	strerror.o strsignal.o utmp.o yplib.o
19.ifndef NOLIBHACKOPENDIR
20HACKOBJS+= opendir.o
21.endif
22
23COPTS+= -Os
24WARNS=	1
25MKPIC=	no
26MKLINT= no
27MKPROFILE=no
28
29all: libhack.a libhack.o
30
31libhack.o : $(HACKOBJS)
32	$(LD) -r -o $@ $(HACKOBJS)
33
34CLEANFILES+=  libhack.o
35
36tpwent: getpwent.c
37	$(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c
38	$(CC) -o $@ $@.o
39
40.include <bsd.lib.mk>
41

Indexes created Sat Dec 20 21:09:36 GMT 2025