1 # $NetBSD: Makefile,v 1.28 1999/03/30 22:02:39 cgd Exp $ 2 3 LIB= sa 4 MKPIC= no 5 MKPROFILE=no 6 7 SA_USE_CREAD?= no 8 SA_INCLUDE_NET?= yes 9 10 #DEBUGCPPFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DDEBUG -DPARANOID 11 CPPFLAGS= -I. ${SACPPFLAGS} ${SAMISCCPPFLAGS} \ 12 -DCOMPAT_UFS ${DEBUGCPPFLAGS} 13 14 #COPTS+= -ansi -pedantic -Wall 15 16 # stand routines 17 SRCS+= alloc.c bcopy.c bzero.c errno.c exit.c exec.c getfile.c gets.c \ 18 globals.c memcmp.c memcpy.c memset.c panic.c printf.c snprintf.c \ 19 sprintf.c strerror.c subr_prf.c twiddle.c vsprintf.c 20 21 # io routines 22 SRCS+= closeall.c dev.c disklabel.c dkcksum.c ioctl.c nullfs.c stat.c fstat.c 23 SRCS+= close.c lseek.c open.c read.c write.c 24 .if (${SA_USE_CREAD} == "yes") 25 CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 26 SRCS+= cread.c 27 .endif 28 29 .if (${SA_INCLUDE_NET} == "yes") 30 # network routines 31 SRCS+= arp.c ether.c in_cksum.c net.c netif.c rpc.c 32 33 # network info services: 34 SRCS+= bootp.c rarp.c bootparam.c 35 36 # boot filesystems 37 SRCS+= nfs.c tftp.c 38 .endif 39 SRCS+= ufs.c cd9660.c ustarfs.c 40 41 # only needed during build 42 libinstall:: 43 44 .include <bsd.lib.mk> 45 46 lib${LIB}.o:: ${OBJS} 47 @echo building standard ${LIB} library 48 @rm -f lib${LIB}.o 49 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 50