2000-05-18 04:43:05 +04:00
|
|
|
# $NetBSD: Makefile,v 1.10 2000/05/18 00:43:06 matt Exp $
|
1995-10-09 02:08:46 +03:00
|
|
|
#
|
|
|
|
# Stubs to kill off some things from libc:
|
|
|
|
# This save space on a boot system.
|
1997-12-12 06:36:38 +03:00
|
|
|
# (See Makefile.inc also.)
|
1995-10-09 02:08:46 +03:00
|
|
|
|
|
|
|
LIB= hack
|
1999-05-19 07:58:13 +04:00
|
|
|
SRCS= getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
|
1999-06-27 16:55:58 +04:00
|
|
|
localeconv.c perror.c setlocale.c \
|
1999-05-19 07:58:13 +04:00
|
|
|
strerror.c strsignal.c utmp.c yplib.c
|
1999-06-27 16:55:58 +04:00
|
|
|
.ifndef NOLIBHACKOPENDIR
|
|
|
|
SRCS+= opendir.c
|
|
|
|
.endif
|
1999-05-19 07:58:13 +04:00
|
|
|
|
1999-09-26 08:49:37 +04:00
|
|
|
|
|
|
|
HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
|
|
|
|
localeconv.o perror.o setlocale.o \
|
|
|
|
strerror.o strsignal.o utmp.o yplib.o
|
|
|
|
.ifndef NOLIBHACKOPENDIR
|
|
|
|
HACKOBJS+= opendir.o
|
|
|
|
.endif
|
|
|
|
|
2000-05-18 04:43:05 +04:00
|
|
|
COPTS+= -Os
|
1999-03-13 22:08:43 +03:00
|
|
|
WARNS= 1
|
1999-02-13 05:54:17 +03:00
|
|
|
MKPIC= no
|
1999-03-13 22:08:43 +03:00
|
|
|
MKLINT= no
|
1999-02-13 05:54:17 +03:00
|
|
|
MKPROFILE=no
|
1995-10-09 02:08:46 +03:00
|
|
|
|
1999-05-19 07:58:13 +04:00
|
|
|
all: libhack.a libhack.o
|
|
|
|
|
1999-09-26 08:49:37 +04:00
|
|
|
libhack.o : $(HACKOBJS)
|
|
|
|
$(LD) -r -o $@ $(HACKOBJS)
|
|
|
|
|
1999-05-19 07:58:13 +04:00
|
|
|
CLEANFILES+= libhack.o
|
1995-10-09 02:08:46 +03:00
|
|
|
|
1995-10-13 21:10:06 +03:00
|
|
|
tpwent: getpwent.c
|
|
|
|
$(CC) -g -o $@.o -DTEST_MAIN -c getpwent.c
|
|
|
|
$(CC) -o $@ $@.o
|
|
|
|
|
1995-10-09 02:08:46 +03:00
|
|
|
.include <bsd.lib.mk>
|