BSD 4_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 30 Jun 1983 09:37:58 +0000 (01:37 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Thu, 30 Jun 1983 09:37:58 +0000 (01:37 -0800)
Work on file usr/src/lib/libc/stdio/Makefile

Synthesized-from: CSRG/cd1/4.2

usr/src/lib/libc/stdio/Makefile [new file with mode: 0644]

diff --git a/usr/src/lib/libc/stdio/Makefile b/usr/src/lib/libc/stdio/Makefile
new file mode 100644 (file)
index 0000000..4fd3eb5
--- /dev/null
@@ -0,0 +1,29 @@
+#      Makefile        4.8     83/06/30
+#
+# doprnt is not here because it is machine dependent
+#
+CFLAGS=        -O
+
+OBJS=  clrerr.o data.o doscan.o \
+       exit.o fdopen.o fgetc.o fgets.o filbuf.o flsbuf.o fopen.o \
+       fprintf.o fputc.o fputs.o freopen.o fseek.o ftell.o \
+       getchar.o gets.o getw.o printf.o putchar.o puts.o \
+       putw.o rdwr.o rew.o scanf.o setbuf.o setbuffer.o \
+       sprintf.o strout.o ungetc.o
+
+.c.o:
+       ${CC} -p ${CFLAGS} -c $*.c
+       -ld -X -r $*.o
+       mv a.out profiled/$*.o
+       ${CC} ${CFLAGS} -c $*.c
+       -ld -x -r $*.o
+       mv a.out $*.o
+
+stdiolib stdiolib_p: ${OBJS}
+       @echo "building profiled stdiolib"
+       @cd profiled; ar cru ../stdiolib_p ${OBJS}
+       @echo "building normal stdiolib"
+       @ar cru stdiolib ${OBJS}
+
+clean:
+       rm -f stdiolib stdiolib_p ${OBJS} profiled/*.o