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