head     1.2;
branch   ;
access   ;
symbols  ;
locks    ;
comment  @# @;


1.2
date     91.06.01.16.19.50;  author bruce;  state Exp;
branches ;
next     1.1;

1.1
date     91.06.01.16.08.06;  author bruce;  state Exp;
branches ;
next     ;


desc
@Initial revision is as distributed with Dynix Source V3.0.17,
    file dated Mar 27 1987.
Initial revision had RCS ident:
    $Header: Makefile 2.4 87/03/27 $
@


1.2
log
@Added the following routines (by adding the corresponding .o files to OBJS):
	vfprintf()
	vprintf()
	vsprintf()

Source files are symlinks to files from the 4.3BSD-tahoe release tape,
    located in /usr/src.4.3tahoe:

r--r--r--     3/10        1408 Jun 27 17:50 1988 lib/libc/stdio/vfprintf.c
r--r--r--     3/10        1136 Jun 27 17:50 1988 lib/libc/stdio/vprintf.c
r--r--r--     3/10        1204 Jun 27 17:50 1988 lib/libc/stdio/vsprintf.c

Done primarily for /usr/src/local/expect; xtroff also uses these routines.
@
text
@# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987 Sequent Computer Systems, Inc.
# All rights reserved
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.

# $Header: /usr/src/dynix.3.0.17/src/lib/libc/stdio/RCS/Makefile,v 1.1 91/06/01 16:08:06 bruce Exp $
#
# doprnt is not here because it is machine dependent
#
FPFLAGS	=
CFLAGS	= -O $(INCLUDE) $(FPFLAGS)
#
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 fread.o freopen.o\
	fseek.o ftell.o fwrite.o getchar.o gets.o getw.o printf.o putchar.o\
	puts.o putw.o rew.o scanf.o setbuf.o setbuffer.o sibuf.o sobuf.o\
	sprintf.o strout.o ungetc.o \
	vfprintf.o vprintf.o vsprintf.o

SED	= sed -f ../$(MACHINE)/rofix.sed
LIB	= stdiolib stdiolib_p

.c.o:
	$(CC) -SO -p -DPROF $(CFLAGS) -c $*.c | $(SED) | $(AS) -o $*.o && \
	$(LD) -X -r $*.o -o profiled/$*.o && \
	$(CC) -SO    -UPROF $(CFLAGS) -c $*.c | $(SED) | $(AS) -o $*.o && \
	$(LD) -x -r $*.o -o $*.O && mv $*.O $*.o

all		: $(LIB)
$(LIB)		: profiled parallel
		  @@echo "	building profiled $@@" && \
		  cd profiled && $(AR) cru ../stdiolib_p $(OBJS) && \
		  echo "	building normal $@@" && \
		  cd .. && $(AR) cru stdiolib $(OBJS)

parallel	:& $(OBJS)
profiled	:; mkdir profiled
clean		:; rm -rf stdiolib stdiolib_p $(OBJS) profiled
@


1.1
log
@Initial revision
@
text
@d12 1
a12 1
# $Header: Makefile 2.4 87/03/27 $
d24 3
a26 1
	sprintf.o strout.o ungetc.o
@
