xref: /original-bsd/usr.bin/graph/Makefile (revision 0db3846e)
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved.  The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6#	@(#)Makefile	4.3	(Berkeley)	06/18/87
7#
8CFLAGS=	-O
9LIBC=	/lib/libc.a
10SRCS=	graph.c
11OBJS=	graph.o
12
13all: graph
14
15graph: ${SRCS} ${LIBC}
16	${CC} -o $@ ${CFLAGS} ${SRCS} -lplot -lm
17
18clean: FRC
19	rm -f ${OBJS} core graph
20
21depend: FRC
22	mkdep ${CFLAGS} ${SRCS}
23
24install: FRC
25	install -s -o bin -g bin -m 755 graph ${DESTDIR}/usr/bin/graph
26
27lint: FRC
28	lint ${CFLAGS} ${SRCS}
29
30tags: FRC
31	ctags ${SRCS}
32
33FRC:
34
35# DO NOT DELETE THIS LINE -- mkdep uses it.
36# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
37
38graph.o: graph.c /usr/include/stdio.h /usr/include/ctype.h /usr/include/math.h
39
40# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
41