Makefile revision 1.1
11.1Sscw#	$NetBSD: Makefile,v 1.1 2002/02/27 21:02:27 scw Exp $
21.1Sscw
31.1SscwLIB=sa
41.1Sscw
51.1Sscw# Logically src/sys
61.1SscwDIR_SA=$S/lib/libsa
71.1SscwDIR_KERN=$S/lib/libkern
81.1Sscw
91.1SscwSRC_net= nfs.c rpc.c net.c ether.c arp.c in_cksum.c netif.c \
101.1Sscw	 bootparam.c rarp.c dev_net.c bootp.c
111.1Sscw
121.1Sscw
131.1SscwSRC_sa = alloc.c memcpy.c memset.c close.c exit.c getfile.c gets.c \
141.1Sscw	 open.c printf.c read.c strerror.c ufs.c globals.c lseek.c panic.c \
151.1Sscw	 closeall.c dev.c dkcksum.c nullfs.c fstat.c twiddle.c sprintf.c \
161.1Sscw	 subr_prf.c intoa.c udp.c memcmp.c loadfile.c loadfile_aout.c \
171.1Sscw	 loadfile_elf32.c dev_net.c
181.1Sscw
191.1Sscw# XXX Needed until libsa's memcmp.c doesn't depend on bcmp...
201.1SscwSRC_sa+= bcmp.c
211.1Sscw
221.1SscwSRC_kern= ashldi3.c ashrdi3.c strcmp.c strlen.c strncpy.c inet_addr.c
231.1Sscw
241.1SscwSRC_here= bugsyscalls.S exec_mvme.c parse_args.c getchar.c putchar.c
251.1SscwSRC_here+= if_bug.c clock.c
261.1Sscw
271.1SscwSRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here}
281.1Sscw
291.1Sscw# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
301.1Sscw# 	-DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG
311.1Sscw
321.1SscwDEFS= ${DBG} #-fno-defer-pop
331.1Sscw
341.1SscwCPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
351.1Sscw#CPPFLAGS+= -DSUPPORT_DHCP
361.1Sscw#CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
371.1SscwCPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
381.1Sscw
391.1SscwCLEANFILES+= srt0.o
401.1Sscw
411.1Sscw.include "../Makefile.booters"
421.1Sscw
431.1Sscw.PATH:  ${DIR_SA} ${DIR_KERN} 
441.1Sscw
451.1Sscw# only needed during build
461.1Sscwlibinstall::
471.1Sscw
481.1Sscwall realall: lib${LIB}.a srt0.o
491.1Sscw
501.1Sscw.include <bsd.own.mk>
511.1Sscw.undef DESTDIR
521.1Sscw.include <bsd.lib.mk>
53