1# $OpenBSD: Makefile,v 1.12 2020/03/03 19:04:28 otto Exp $ 2 3.include "${.CURDIR}/../Makefile.inc" 4 5LIB= sa 6 7.PATH: ${.CURDIR}/../../../../lib/libsa 8 9CLEANFILES += machine mips64 10 11CFLAGS+= ${CEXTRAFLAGS} ${SAABI} -nostdinc -mno-abicalls -D_NO_ABICALLS \ 12 -fno-pie \ 13 -I${.CURDIR} -I${.CURDIR}/../include -I${.CURDIR}/../.. \ 14 -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \ 15 -I${.CURDIR}/../../../../lib/libsa \ 16 -I${.OBJDIR} 17 18# stand routines 19SRCS= alloc.c cons.c ctime.c exit.c getchar.c getfile.c getln.c globals.c \ 20 memcmp.c memcpy.c memmove.c memset.c printf.c putchar.c \ 21 snprintf.c strchr.c strcmp.c strerror.c strncmp.c strncpy.c strtol.c 22 23# io routines 24SRCS+= close.c closeall.c dev.c disklabel.c dkcksum.c fchmod.c fstat.c \ 25 ioctl.c lseek.c open.c read.c readdir.c stat.c write.c 26#SRCS+= nullfs.c 27 28#SRCS+= cread.c 29#CPPFLAGS+= -D__INTERNAL_LIBSA_CREAD 30 31# boot filesystems 32SRCS+= ufs.c ufs2.c cd9660.c 33 34CFLAGS+=-DNO_NET 35 36SRCS+= loadfile.c arc4.c 37 38${OBJS}: ${.CURDIR}/../Makefile.inc 39 40NOPROFILE= 41NOPIC= 42 43.if !make(clean) && !make(cleandir) && !make(includes) && !make(obj) 44.BEGIN: 45 @([ -h machine ] || ln -s ${.CURDIR}/../../include machine) 46 @([ -h mips64 ] || ln -s ${.CURDIR}/../../../mips64/include mips64) 47CLEANFILES+= machine mips64 48.endif 49 50install: 51 52.include <bsd.lib.mk> 53