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