# $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.

#	Copyright (c) 1984 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"$Header: Makefile 1.2 89/10/10 $@(#)sadmin:csub/Makefile	1.5.1.2"
#	Makefile for csub library of routines.

ROOT = /
INC = $(CCS_HDRS)/usr/include
AR = /bin/ar
CFLAGS = -O -I../include

#top#
# Generated by makefile 1.41    Thu Mar 22 21:36:51 EST 1984


LIBRARY = csub.a

OBJECTS =  Chdir.o Execvp.o Fopen.o Fread.o Fstat.o Malloc.o Open.o Read.o \
	Write.o argfopen.o bufsplit.o errafter.o errbefore.o errtext.o \
	filename.o fopenck.o num.o numd.o p2open.o pgmname.o stddef.o

SOURCES =  Chdir.c Execvp.c Fopen.c Fread.c Fstat.c Malloc.c Open.c Read.c \
	Write.c argfopen.c bufsplit.c errafter.c errbefore.c errtext.c \
	filename.c fopenck.c num.c numd.c p2open.c pgmname.c stddef.c

ALL:		$(LIBRARY)

$(LIBRARY): $&	$(OBJECTS)
	-rm -f $(LIBRARY)
	$(AR) r $(LIBRARY) $(OBJECTS)
	@echo lib $(LIBRARY) is now up to date


.c.o:
	$(CC) $(CFLAGS) -c $<

$(LIBRARY)(Chdir.o):	 ../include/cmderr.h 

$(LIBRARY)(Execvp.o):	 ../include/cmderr.h 

$(LIBRARY)(Fopen.o):	 ../include/cmderr.h $(INC)/stdio.h 

$(LIBRARY)(Fread.o):	 $(INC)/stdio.h ../include/cmderr.h 

$(LIBRARY)(Fstat.o):	 $(INC)/sys/types.h \
		 $(INC)/sys/stat.h $(INC)/stdio.h	\
		 ../include/cmderr.h 

$(LIBRARY)(Malloc.o):	 $(INC)/stdio.h ../include/cmderr.h 

$(LIBRARY)(Open.o): ../include/cmderr.h	$(INC)/stdio.h 

$(LIBRARY)(Read.o): ../include/cmderr.h	$(INC)/stdio.h 

$(LIBRARY)(Write.o):	 ../include/cmderr.h $(INC)/stdio.h 

$(LIBRARY)(argfopen.o):	 $(INC)/stdio.h ../include/stddef.h \
		 ../include/switch.h 

$(LIBRARY)(bufsplit.o):	 ../include/stddef.h $(INC)/stdio.h 

$(LIBRARY)(errafter.o):	 ../include/cmderr.h $(INC)/stdio.h 

$(LIBRARY)(errbefore.o):	 ../include/cmderr.h 

$(LIBRARY)(errtext.o):	 ../include/cmderr.h $(INC)/stdio.h \
		 $(INC)/string.h	../include/switch.h 

$(LIBRARY)(filename.o):	 $(INC)/stdio.h ../include/stddef.h 

$(LIBRARY)(fopenck.o):	 $(INC)/stdio.h 

$(LIBRARY)(num.o): $(INC)/ctype.h 

$(LIBRARY)(numd.o): $(INC)/ctype.h 

$(LIBRARY)(p2open.o):	 $(INC)/stdio.h \
		 $(INC)/signal.h	$(INC)/sys/signal.h \
		 $(INC)/fcntl.h 

$(LIBRARY)(pgmname.o):	 $(INC)/stdio.h ../include/stddef.h 

$(LIBRARY)(stddef.o):	 ../include/stddef.h $(INC)/stdio.h 

GLOBALINCS = ../include/cmderr.h ../include/stddef.h ../include/switch.h \
	$(INC)/ctype.h $(INC)/fcntl.h $(INC)/signal.h \
	$(INC)/stdio.h $(INC)/string.h \
	$(INC)/sys/signal.h $(INC)/sys/stat.h \
	$(INC)/sys/types.h 


clean:
	rm -f $(OBJECTS)
	
clobber:	
	rm -f $(OBJECTS) $(LIBRARY)

newmakefile:
	makefile  -m -f Makefile -L csub.a 
#bottom#
	echo '1,/^newmakefile:/s;$(INC)/;\044(INC)/;g\nw\nq'  | \
		ed - Makefile

install:	$(LIBRARY)
	: Nothing needs to be done to install.

partslist:
	@echo Makefile $(SOURCES) $(LOCALINCS)  |  tr ' ' '\012'  |  sort

product:

remove:

srcaudit:	# will not report missing nor present object or product files.
	@(	find * -print;  \
		ls -d Makefile $(LOCALINCS) $(SOURCES) $(OBJECTS) $(MAINS) \
			$(OBJECTS) $(MAINS) 2>&1  \
	)  |  sort  |  uniq -u  |  sed '/ /!s/$$/	unexpected/'
