2125ffc454
the bootloaders get to benefit from it, not just libsa.
72 lines
1.4 KiB
Makefile
72 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2003/02/27 20:38:34 scw Exp $
|
|
|
|
LIB=sa
|
|
|
|
# Logically src/sys
|
|
DIR_SA=$S/lib/libsa
|
|
DIR_KERN=$S/lib/libkern
|
|
|
|
SRC_net= arp.c \
|
|
bootp.c bootparam.c \
|
|
dev_net.c \
|
|
ether.c \
|
|
in_cksum.c \
|
|
net.c netif.c nfs.c \
|
|
rarp.c rpc.c
|
|
|
|
SRC_sa= alloc.c \
|
|
close.c closeall.c \
|
|
dev.c dev_net.c dkcksum.c \
|
|
exit.c \
|
|
files.c fstat.c \
|
|
getfile.c gets.c globals.c \
|
|
intoa.c \
|
|
loadfile.c loadfile_aout.c loadfile_elf32.c lseek.c \
|
|
memcmp.c memcpy.c memset.c \
|
|
nullfs.c \
|
|
open.c \
|
|
panic.c printf.c \
|
|
read.c \
|
|
snprintf.c sprintf.c strerror.c subr_prf.c \
|
|
twiddle.c \
|
|
udp.c ufs.c
|
|
|
|
# XXX Needed until libsa's memcmp.c doesn't depend on bcmp...
|
|
SRC_sa+= bcmp.c
|
|
|
|
SRC_kern= ashldi3.c ashrdi3.c \
|
|
inet_addr.c \
|
|
strcmp.c strlen.c strncpy.c
|
|
|
|
SRC_mvme= exec_mvme.c
|
|
|
|
SRC_here= bugdev.c \
|
|
chiptotime.c clock.c \
|
|
parse_args.c
|
|
|
|
SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_mvme} ${SRC_here}
|
|
|
|
# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
|
|
# -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG
|
|
|
|
DEFS= ${DBG} #-fno-defer-pop
|
|
|
|
CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP
|
|
CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM
|
|
CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK
|
|
|
|
CLEANFILES+= SRT0.o
|
|
|
|
.include "../Makefile.booters"
|
|
|
|
.PATH: ${DIR_SA} ${DIR_KERN}
|
|
|
|
# only needed during build
|
|
libinstall::
|
|
|
|
all realall: lib${LIB}.a SRT0.o
|
|
|
|
.include <bsd.own.mk>
|
|
.undef DESTDIR
|
|
.include <bsd.lib.mk>
|