1# $OpenBSD: Makefile,v 1.30 2019/08/03 15:22:17 deraadt Exp $ 2# $NetBSD: Makefile,v 1.13 1996/10/02 16:19:51 ws Exp $ 3 4LIB= sa 5 6DIR=${SAREL}${SADIR} 7 8.PATH: ${DIR} 9 10#DEBUGFLAGS= -DBOOTP_DEBUG -DNETIF_DEBUG -DETHER_DEBUG -DNFS_DEBUG -DRPC_DEBUG -DRARP_DEBUG -DDEBUG -DPARANOID -Wall 11#DEBUGFLAGS= -Wall 12AFLAGS+=${XAFLAGS} 13CFLAGS+=${XCFLAGS} -D_STANDALONE -DCOMPAT_UFS $(DEBUGFLAGS) -I${DIR} -I${DIR}/../.. 14# 15# Needed for alpha and macppc 16CFLAGS+=$(EXTRACFLAGS) 17 18.if defined(USE_LOADFILE) 19SRCS+= loadfile.c 20.endif 21 22.if defined(SA_ZLIB) 23CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 24.endif 25 26# stand routines 27SRCS+= alloc.c memcpy.c memmove.c exit.c getfile.c getchar.c getln.c globals.c \ 28 printf.c putchar.c snprintf.c strerror.c strcmp.c memset.c memcmp.c \ 29 strncpy.c strncmp.c strchr.c 30 31# math from libkern 32SRCS+= divdi3.c qdivrem.c 33.PATH: ${DIR}/../../lib/libkern 34 35# io routines 36SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c cons.c ioctl.c \ 37 lseek.c open.c nullfs.c read.c stat.c fchmod.c fstat.c \ 38 write.c readdir.c 39 40# boot filesystems 41SRCS+= ufs.c cd9660.c 42 43.if defined(SA_ZLIB) 44SRCS+= cread.c 45.endif 46 47.if !defined(NO_NET) 48SRCS+= nfs.c 49 50# network routines 51SRCS+= arp.c ether.c in_cksum.c net.c netif.c netudp.c rpc.c 52 53# network info services: 54SRCS+= bootp.c rarp.c bootparam.c 55 56.else 57# C flags 58CFLAGS+=-DNO_NET 59.endif 60 61 62NOPROFILE= 63NOPIC= 64OBJMACHINE= 65 66install: 67 68.include <bsd.lib.mk> 69