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