1# $OpenBSD: Makefile,v 1.28 2015/11/16 19:33:52 miod 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 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 fstat.c write.c readdir.c 38 39# boot filesystems 40SRCS+= ufs.c cd9660.c 41 42.if defined(SA_ZLIB) 43SRCS+= cread.c 44.endif 45 46.if !defined(NO_NET) 47SRCS+= nfs.c 48 49# network routines 50SRCS+= arp.c ether.c in_cksum.c net.c netif.c netudp.c rpc.c 51 52# network info services: 53SRCS+= bootp.c rarp.c bootparam.c 54 55.else 56# C flags 57CFLAGS+=-DNO_NET 58.endif 59 60 61NOPROFILE= 62NOPIC= 63OBJMACHINE= 64 65install: 66 67.include <bsd.lib.mk> 68