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.11
1# $NetBSD: Makefile,v 1.11 2001/08/20 12:19:43 martin 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
23.if ${MACHINE_ARCH} != "sparc64"
24COPTS+= -Os
25.endif
26WARNS=	1
27MKPIC=	no
28MKLINT= no
29MKPROFILE=no
30
31all: libhack.a libhack.o
32
33libhack.o : $(HACKOBJS)
34	$(LD) -r -o $@ $(HACKOBJS)
35
36CLEANFILES+=  libhack.o
37
38tpwent: getpwent.c
39	$(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c
40	$(CC) -o $@ $@.o
41
42.include <bsd.lib.mk>
43

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