#	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	"@(#)sadmin:csub/Makefile	35.1"
#	Makefile for csub library of routines.

ROOT = /
INC = $(ROOT)/usr/include
CFLAGS = -O -I../include -I$(INC)

#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):	$(LIBRARY)(stddef.o) $(LIBRARY)(pgmname.o) \
		$(LIBRARY)(p2open.o) $(LIBRARY)(numd.o)	$(LIBRARY)(num.o) \
		$(LIBRARY)(fopenck.o) $(LIBRARY)(filename.o) \
		$(LIBRARY)(errtext.o) $(LIBRARY)(errbefore.o) \
		$(LIBRARY)(errafter.o) $(LIBRARY)(bufsplit.o) \
		$(LIBRARY)(argfopen.o) $(LIBRARY)(Write.o) \
		$(LIBRARY)(Read.o) $(LIBRARY)(Open.o) $(LIBRARY)(Malloc.o) \
		$(LIBRARY)(Fstat.o) $(LIBRARY)(Fread.o)	\
		$(LIBRARY)(Fopen.o) $(LIBRARY)(Execvp.o) \
		$(LIBRARY)(Chdir.o) 


$(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/'
