1 # $NetBSD: Makefile,v 1.6 2006/01/26 22:26:52 he 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 ip_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 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 ether_sprintf.c snprintf.c 18 19 # XXX Needed until libsa's memcmp.c doesn't depend on bcmp... 20 SRC_sa+= bcmp.c 21 22 SRC_kern= ashldi3.c ashrdi3.c strcmp.c strlen.c strncpy.c inet_addr.c 23 24 SRC_here= bugsyscalls.S exec_mvme.c parse_args.c getchar.c putchar.c 25 SRC_here+= if_bug.c clock.c 26 27 SRCS= ${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 32 DEFS= ${DBG} #-fno-defer-pop 33 34 CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 35 #CPPFLAGS+= -DSUPPORT_DHCP 36 #CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM 37 CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK 38 39 CLEANFILES+= srt0.o 40 41 .include "../Makefile.booters" 42 .include "${S}/../common/lib/libc/Makefile.inc" 43 44 .PATH: ${DIR_SA} ${DIR_KERN} 45 46 # only needed during build 47 libinstall:: 48 49 all realall: lib${LIB}.a srt0.o 50 51 .include <bsd.own.mk> 52 .undef DESTDIR 53 .include <bsd.lib.mk> 54