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