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