CFLAGS = -O
I = /usr/include

all:            restfs stofs label

label:          label.o labelchk.o
	cc -n $(CFLAGS) -o label label.o labelchk.o
/bin/label:     label
	/etc/instcmd label /bin/label

restfs:         restfs.o labelchk.o
	cc -n $(CFLAGS) -o restfs restfs.o labelchk.o
/etc/restfs:    restfs
	/etc/instcmd restfs /etc/restfs

stofs: stofs.o labelchk.o
	cc -n $(CFLAGS) -o stofs stofs.o labelchk.o
/etc/stofs:  stofs
	/etc/instcmd stofs /etc/stofs

label.o:	label.c		$I/stdio.h $I/sgtty.h $I/ctype.h 
labelchk.o:	labelchk.c	$I/stdio.h $I/ctype.h 
restfs.o:	restfs.c	$I/stdio.h $I/sgtty.h 
stofs.o:	stofs.c		$I/stdio.h 
