# /usr/src/usr.bin/graph/Makefile for MacMach

include /usr/src/COPYRIGHTS

CFLAGS=	-O
LIBC=	/lib/libc.a
SRCS=	graph.c
OBJS=	graph.o

all:	.depend graph

graph: ${SRCS} ${LIBC}
	${CC} -o $@ ${CFLAGS} ${SRCS} -lplot -lm

install: FRC
	install -c -s -o bin -g bin -m 755 graph ${DESTDIR}/usr/bin/graph

clean:	FRC
	rm -f .depend ${OBJS} core graph

compress: clean
	find . -type f ! -name Makefile ! -name '*.Z' -exec compress {} \;

uncompress: FRC
	find . -type f ! -name Makefile -name '*.Z' -exec uncompress {} \;

.depend: ${SRCS}
	@echo "#`date`" >.depend
	mkdep -f .depend ${CFLAGS} ${SRCS}

-include .depend

FRC:
