1# $OpenBSD: Makefile,v 1.11 2015/11/16 19:33:52 miod Exp $ 2 3LIB= sa 4 5.PATH: ${.CURDIR}/../../../../lib/libsa 6 7CLEANFILES += machine 8 9CFLAGS= ${CEXTRAFLAGS} ${AFLAGS} -O2 -D__INTERNAL_LIBSA_CREAD -nostdinc \ 10 -fno-pie \ 11 -I${.CURDIR} -I${.CURDIR}/../include -I${.CURDIR}/../.. \ 12 -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \ 13 -I${.CURDIR}/../../../../lib/libsa \ 14 -I${.OBJDIR} 15 16CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 17 18# stand routines 19SRCS= alloc.c exit.c getfile.c getln.c globals.c \ 20 memcmp.c memcpy.c memset.c printf.c snprintf.c strerror.c strncpy.c 21 22# io routines 23SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fstat.c ioctl.c lseek.c \ 24 open.c read.c stat.c write.c cread.c 25 26# network routines 27SRCS+= arp.c ether.c in_cksum.c net.c netif.c netudp.c rpc.c 28 29# network info services 30SRCS+= bootp.c bootparam.c rarp.c 31 32# boot filesystems 33SRCS+= ufs.c nfs.c cd9660.c 34 35${OBJS}: ${.CURDIR}/../Makefile.inc 36 37NOPROFILE= 38NOPIC= 39 40.if !make(libdep) && !make(sadep) && !make(salibdir) && !make(obj) 41.BEGIN: 42 @([ -h machine ] || ln -s ${.CURDIR}/../../include machine) 43.endif 44 45install: 46 47.include <bsd.lib.mk> 48