CFLAGS= -O
OBJ = main.o doname.o misc.o files.o dosys.o gram.o
I = /usr/include

make:           $(OBJ)
	cc -n $(CFLAGS) -o make $(OBJ)
/bin/make:      make
	/etc/instcmd make /bin/make
	rm $(OBJ)

main.o:		main.c		defs $I/stdio.h $I/ctype.h \
				$I/sys/types.h $I/signal.h 
doname.o:	doname.c	defs $I/stdio.h $I/ctype.h \
				$I/sys/types.h 
misc.o:		misc.c		defs $I/stdio.h $I/ctype.h \
				$I/sys/types.h 
files.o:	files.c		defs $I/stdio.h $I/ctype.h \
				$I/sys/types.h $I/sys/stat.h $I/sys/dir.h \
				$I/pwd.h $I/ar.h $I/a.out.h \
				$I/sys/stat.h 
dosys.o:	dosys.c		defs $I/stdio.h $I/ctype.h \
				$I/sys/types.h $I/signal.h $I/errno.h \
				$I/sys/stat.h 
gram.o:         gram.y          defs $I/stdio.h $I/ctype.h \
				$I/sys/types.h 

