1 # $NetBSD: Makefile,v 1.9 1999/04/25 10:05:00 scw Exp $ 2 3 LIB=sa 4 5 CLEANFILES+=SRT0.o 6 7 MKPIC=no 8 MKPROFILE=no 9 MKLINT=no 10 11 # Logically src/sys 12 S=${.CURDIR}/../../../.. 13 DIR_SA=$S/lib/libsa 14 DIR_KERN=$S/lib/libkern 15 16 SRC_net= nfs.c rpc.c net.c ether.c arp.c in_cksum.c netif.c \ 17 bootparam.c rarp.c 18 19 20 SRC_sa = alloc.c bcopy.c memcpy.c close.c exit.c getfile.c gets.c open.c \ 21 printf.c read.c strerror.c ufs.c globals.c lseek.c panic.o \ 22 closeall.c dev.c dkcksum.c nullfs.c fstat.c twiddle.o sprintf.o \ 23 subr_prf.c 24 25 SRC_kern= ashrdi3.c bcmp.c bzero.c strcmp.c strlen.c 26 27 SRC_mvme= exec_mvme.c 28 29 SRC_here= clock.c bugdev.c parse_args.c 30 31 SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_mvme} ${SRC_here} 32 33 # DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ 34 # -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG 35 36 DEFS= -D_STANDALONE 37 CPPFLAGS+= -I. -I${.CURDIR}/../libbug -I${S}/lib/libsa -I${S} 38 COPTS= #-fno-defer-pop 39 CFLAGS= -O2 ${COPTS} ${DEFS} ${DBG} 40 41 .PATH: ${DIR_SA} ${DIR_KERN} 42 43 all: libsa.a SRT0.o 44 45 # only needed during build 46 libinstall:: 47 48 .include <bsd.lib.mk> 49