#	START NEW ARIX SCCS HEADER
#
#	@(#) Makefile: version 25.1 created on 12/2/91 at 17:01:36
#
#	Copyright (c) 1990 by Arix Corporation
#	All Rights Reserved
#
#	@(#)Makefile	25.1	12/2/91 Copyright (c) 1990 by Arix Corporation
#
#	END NEW ARIX SCCS HEADER
#
#	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.

#	ATT:#ident	"sadmin:csub/Makefile	1.5.1.2"

#ident	"@(#)sadmin/csub:Makefile	25.1"

#	Makefile for csub library of routines.

IROOT =
SROOT =
include $(IROOT)/macdefs

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

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

.c.a:
	$(CC) -c $(CFLAGS) $(CCFLGS) $<
	ar rv $@ $*.o
	rm -f $*.o

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 $(INCRT)/stdio.h 

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

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

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

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

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

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

$(LIBRARY)(argfopen.o):	 $(INCRT)/stdio.h ../include/std_def.h \
		 ../include/switch.h 

$(LIBRARY)(bufsplit.o):	 ../include/std_def.h $(INCRT)/stdio.h 

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

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

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

$(LIBRARY)(filename.o):	 $(INCRT)/stdio.h ../include/std_def.h 

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

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

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

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

$(LIBRARY)(pgmname.o):	 $(INCRT)/stdio.h ../include/std_def.h 

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

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


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

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

