1# $OpenBSD: Makefile,v 1.15 2020/05/25 16:27:07 deraadt 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 memmove.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 fchmod.c \ 24 ioctl.c lseek.c 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 ufs2.c nfs.c cd9660.c 34 35${OBJS}: ${.CURDIR}/../Makefile.inc 36 37NOPROFILE= 38NOPIC= 39 40.if !make(clean) && !make(cleandir) && !make(includes) && !make(libdep) && \ 41 !make(sadep) && !make(salibdir) && !make(obj) 42.BEGIN: 43 @([ -h machine ] || ln -s ${.CURDIR}/../../include machine) 44.endif 45 46install: 47 48.include <bsd.lib.mk> 49