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