1 # $NetBSD: Makefile,v 1.17.4.1 2001/10/11 00:01:48 fvdl Exp $ 2 3 LIB=sa 4 5 # Logically src/sys 6 DIR_SA=$S/lib/libsa 7 DIR_KERN=$S/lib/libkern 8 9 SRC_net= nfs.c rpc.c net.c ether.c arp.c in_cksum.c netif.c \ 10 bootparam.c rarp.c dev_net.c bootp.c 11 12 13 SRC_sa = alloc.c memcpy.c memset.c close.c exit.c getfile.c gets.c \ 14 open.c printf.c read.c strerror.c ufs.c globals.c lseek.c panic.c \ 15 closeall.c dev.c dkcksum.c nullfs.c fstat.c twiddle.c sprintf.c \ 16 subr_prf.c intoa.c udp.c memcmp.c loadfile.c dev_net.c 17 18 # XXX Needed until libsa's memcmp.c doesn't depend on bcmp... 19 SRC_sa+= bcmp.c 20 21 SRC_kern= ashldi3.c ashrdi3.c strcmp.c strlen.c strncpy.c inet_addr.c 22 23 SRC_mvme= exec_mvme.c 24 25 SRC_here= clock.c chiptotime.c bugdev.c parse_args.c 26 27 SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_mvme} ${SRC_here} 28 29 # DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 30 # -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG 31 32 DEFS= ${DBG} #-fno-defer-pop 33 34 CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 35 CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM 36 CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK 37 38 CLEANFILES+= SRT0.o 39 40 .include "../Makefile.booters" 41 42 .PATH: ${DIR_SA} ${DIR_KERN} 43 44 # only needed during build 45 libinstall:: 46 47 all realall: lib${LIB}.a SRT0.o 48 49 .include <bsd.lib.mk> 50