Home | History | Annotate | Line # | Download | only in libhack
Makefile.inc revision 1.9.8.1
      1 # $NetBSD: Makefile.inc,v 1.9.8.1 2000/08/22 16:06:32 abs Exp $
      2 # Include this fragment to build libhack.o
      3 # It is .o and not .a to make sure these are the
      4 # objects you get (and not the ones in libc.a)
      5 
      6 HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
      7 	localeconv.o perror.o setlocale.o \
      8 	strerror.o strsignal.o utmp.o yplib.o
      9 .ifndef NOLIBHACKOPENDIR
     10 HACKOBJS+= opendir.o
     11 .endif
     12 
     13 libhack.o : $(HACKOBJS)
     14 	$(LD) -r -o $@ $(HACKOBJS)
     15 
     16 CFLAGS+= -Os
     17 
     18 # XXX .PATH won't work here, because of crunchgen used in the i386 build
     19 
     20 getcap.o: ${HACKSRC}/getcap.c
     21 getgrent.o: ${HACKSRC}/getgrent.c
     22 gethost.o: ${HACKSRC}/gethost.c
     23 getnet.o: ${HACKSRC}/getnet.c
     24 getnetgr.o: ${HACKSRC}/getnetgr.c
     25 getpwent.o: ${HACKSRC}/getpwent.c
     26 localeconv.o: ${HACKSRC}/localeconv.c
     27 perror.o: ${HACKSRC}/perror.c
     28 setlocale.o: ${HACKSRC}/setlocale.c
     29 strerror.o: ${HACKSRC}/strerror.c
     30 strsignal.o: ${HACKSRC}/strsignal.c
     31 utmp.o: ${HACKSRC}/utmp.c
     32 yplib.o: ${HACKSRC}/yplib.c
     33 opendir.o: ${HACKSRC}/opendir.c
     34