head	1.3;
access;
symbols;
locks;
comment	@# @;


1.3
date	93.01.19.12.13.06;	author bruce;	state Exp;
branches;
next	1.2;

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

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


desc
@Initial revision is as distributed with Dynix Source V3.2.0,
    file dated Dec 14 1990.
Initial revision had RCS ident:
    $Header: Makefile 2.4 90/02/13 $
@


1.3
log
@Added strstr.o, strtod.o, strtol.o -- primarily for building new version
    of rdist.
Source comes from DYNIX/ptx .  Note that atof.c is also needed (include'd
    by strtod.c), but it is not built as atof().

NOTE: These have build problems -- rdist has been modified to work around this.
@
text
@# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# 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.2.0/src/lib/libc/compat-sys5/RCS/Makefile,v 1.2 1993/01/19 12:11:01 bruce Exp $
#
FPFLAGS	=
CFLAGS	= -O $(INCLUDE) $(FPFLAGS)
#
OBJS	= memccpy.o memchr.o memcmp.o memcpy.o memset.o strcatn.o \
	strchr.o strcmpn.o strcpyn.o strcspn.o strpbrk.o strrchr.o \
	strspn.o strtok.o tmpnam.o \
	$(ADDED)
ADDED	= getopt.o \
	strstr.o strtod.o strtol.o

SED	= sed -f ../$(MACHINE)/rofix.sed
LIB	= compat-sys5lib compat-sys5lib_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 ../compat-sys5lib_p $(OBJS) && \
		  echo "	buiding normal $@@" && \
		  cd .. && $(AR) cru compat-sys5lib $(OBJS)

parallel	:& $(OBJS)
profiled	:; mkdir profiled
clean		:; rm -rf compat-sys5lib compat-sys5lib_p profiled $(OBJS)
@


1.2
log
@Added getopt.o, so it is built into the standard C libraries, ala 4.3BSD,
    not into -lseq.
Added to OBJS via new macro ADDED.
Source is symlink to 4.3mtxinu source (-lseq source is much older, circa 1986).
@
text
@d12 1
a12 1
# $Header: /usr/src/dynix.3.2.0/src/lib/libc/compat-sys5/RCS/Makefile,v 1.1 1993/01/19 10:32:09 bruce Exp $
d21 2
a22 1
ADDED	= getopt.o
@


1.1
log
@Initial revision
@
text
@d12 1
a12 1
# $Header: Makefile 2.4 90/02/13 $
d19 3
a21 1
	strspn.o strtok.o tmpnam.o
@
