#
# makefile for misc functions
#

PROGS=df
CFLAGS=$(DEFS) -O6 -fomit-frame-pointer -I../../include -L../../lib/aout

all: $(PROGS)

clean:
	rm -f $(PROGS) *.o

df: df.c
	$(CC) $(CFLAGS) -o df df.c -lbasis

install: df
	install -d $(DESTDIR)/usr/bin
	install -o 0 -g 0 -m 511 -c -s df $(DESTDIR)/usr/bin
	install -d -o man -g man $(DESTDIR)/usr/man/man1
	install -o man -g man -m 444 -c df.1 $(DESTDIR)/usr/man/man1
