pkgsrc/devel/sfio/patches/patch-aj
2000-08-11 14:03:22 +00:00

41 lines
1.3 KiB
Text

$NetBSD: patch-aj,v 1.2 2000/08/11 14:03:23 itojun Exp $
NetBSD Makefile for stdio-compatible library.
--- /dev/null Fri Aug 11 22:56:40 2000
+++ src/lib/sfio/Stdio_b/stdio.mk Fri Aug 11 22:53:43 2000
@@ -0,0 +1,34 @@
+# NetBSD Makefile for stdio
+
+LIB= stdio
+
+CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/..
+
+BINDIR= ${.CURDIR}/../../../../bin
+
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+NOLINT= 1
+
+SRCS= doprnt.c doscan.c fclose.c fdopen.c fflush.c fgetc.c fgets.c filbuf.c \
+ flsbuf.c fopen.c fprintf.c fputc.c fputs.c fread.c freopen.c fscanf.c \
+ fseek.c ftell.c fwrite.c getc.c getchar.c gets.c getw.c pclose.c popen.c \
+ printf.c putc.c putchar.c puts.c putw.c rewind.c scanf.c setbuf.c setbuffer.c \
+ setlinebuf.c setvbuf.c sprintf.c sscanf.c stdextern.c stdstream.c \
+ tmpfile.c ungetc.c vfprintf.c vfscanf.c vprintf.c vscanf.c vsprintf.c \
+ vsscanf.c fileno.c feof.c ferror.c clearerr.c fpurge.c fgetpos.c fsetpos.c \
+ cleanup.c vsnprintf.c snprintf.c
+
+doprnt.o: FEATURE/stdio must
+
+FEATURE/stdio: features/stdio
+ $(BINDIR)/iffe set cc $(CC) : run features/stdio
+ cp features/stdio ../FEATURE/stdio
+
+must:
+ ./sfstdhdr.sh $(CC)
+ $(CC) ${CPPFLAGS} sfstdio.c -o sfstdgen >/dev/null 2>&1
+ ./sfstdgen > sfstdio.h; rm sfstdgen sfstdhdr.h
+
+.include <bsd.lib.mk>