1# $NetBSD: Makefile,v 1.2 2002/04/08 17:39:42 bjh21 Exp $ 2 3LIB=sa 4 5# Logically src/sys 6DIR_SA=$S/lib/libsa 7DIR_KERN=$S/lib/libkern 8 9SRC_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 13SRC_sa = alloc.c memcpy.c memset.c close.c exit.c files.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 loadfile_aout.c \ 17 loadfile_elf32.c dev_net.c 18 19# XXX Needed until libsa's memcmp.c doesn't depend on bcmp... 20SRC_sa+= bcmp.c 21 22SRC_kern= ashldi3.c ashrdi3.c strcmp.c strlen.c strncpy.c inet_addr.c 23 24SRC_here= bugsyscalls.S exec_mvme.c parse_args.c getchar.c putchar.c 25SRC_here+= if_bug.c clock.c 26 27SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_here} 28 29# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 30# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG 31 32DEFS= ${DBG} #-fno-defer-pop 33 34CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 35#CPPFLAGS+= -DSUPPORT_DHCP 36#CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM 37CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK 38 39CLEANFILES+= srt0.o 40 41.include "../Makefile.booters" 42 43.PATH: ${DIR_SA} ${DIR_KERN} 44 45# only needed during build 46libinstall:: 47 48all realall: lib${LIB}.a srt0.o 49 50.include <bsd.own.mk> 51.undef DESTDIR 52.include <bsd.lib.mk> 53