Makefile revision 1.27
1# $NetBSD: Makefile,v 1.27 2005/12/24 22:18:40 tsutsui Exp $ 2 3LIB=sa 4 5# Logically src/sys 6DIR_SA=$S/lib/libsa 7DIR_KERN=$S/lib/libkern 8DIR_LIBC=$S/../common/lib/libc 9 10SRC_net= arp.c \ 11 bootp.c bootparam.c \ 12 dev_net.c \ 13 ether.c \ 14 in_cksum.c \ 15 net.c netif.c nfs.c \ 16 rarp.c rpc.c 17 18SRC_sa= alloc.c \ 19 close.c closeall.c \ 20 dev.c dev_net.c dkcksum.c \ 21 ether_sprintf.c exit.c \ 22 files.c fstat.c \ 23 getfile.c gets.c globals.c \ 24 intoa.c \ 25 loadfile.c loadfile_aout.c loadfile_elf32.c lseek.c \ 26 memmove.c memcmp.c memcpy.c memset.c \ 27 nullfs.c \ 28 open.c \ 29 panic.c printf.c \ 30 read.c \ 31 snprintf.c sprintf.c strerror.c subr_prf.c \ 32 twiddle.c \ 33 udp.c ufs.c 34 35# XXX Needed until libsa's memcmp.c doesn't depend on bcmp... 36SRC_sa+= bcmp.c 37 38SRC_libc_inet= inet_addr.c 39SRC_libc_quad= ashldi3.c ashrdi3.c 40SRC_libc_string= strcmp.c strlen.c strncpy.c 41 42SRC_mvme= exec_mvme.c 43 44SRC_here= bugdev.c \ 45 chiptotime.c clock.c \ 46 parse_args.c 47 48SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_mvme} ${SRC_here} 49 50# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 51# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG 52 53DEFS= ${DBG} #-fno-defer-pop 54 55CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP 56CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM 57CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK 58 59CLEANFILES+= SRT0.o 60 61.include "../Makefile.booters" 62 63.PATH: ${DIR_SA} ${DIR_KERN} \ 64 ${DIR_LIBC}/inet ${DIR_LIBC}/quad ${DIR_LIBC}/string 65 66# only needed during build 67libinstall:: 68 69all realall: lib${LIB}.a SRT0.o 70 71.include <bsd.own.mk> 72.undef DESTDIR 73.include <bsd.lib.mk> 74