summaryrefslogtreecommitdiff
path: root/devel/sfio/patches/patch-aj
blob: 1b27020b71205cf867b3f94feeba0d8643c9c669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$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>