date and time created 89/03/05 21:18:53 by bostic
[unix-history] / usr / src / usr.bin / graph / Makefile
CommitLineData
7a92f0d3 1#
d4e49838
KB
2# Copyright (c) 1987 The Regents of the University of California.
3# All rights reserved.
ba710df4 4#
d4e49838
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 4.4 (Berkeley) %G%
ba710df4
KB
18#
19CFLAGS= -O
20LIBC= /lib/libc.a
21SRCS= graph.c
d4e49838
KB
22OBJS=
23MAN= graph.0
ba710df4
KB
24
25all: graph
26
27graph: ${SRCS} ${LIBC}
d4e49838 28 ${CC} -o $@ ${CFLAGS} $@.c -lplot -lm
ba710df4 29
d4e49838 30clean:
ba710df4
KB
31 rm -f ${OBJS} core graph
32
d4e49838
KB
33cleandir: clean
34 rm -f ${MAN} tags .depend
35
36depend: ${SRCS}
37 mkdep -p ${CFLAGS} ${SRCS}
ba710df4 38
d4e49838 39install: ${MAN}
ba710df4 40 install -s -o bin -g bin -m 755 graph ${DESTDIR}/usr/bin/graph
d4e49838 41 install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
ba710df4 42
d4e49838 43lint: ${SRCS}
ba710df4
KB
44 lint ${CFLAGS} ${SRCS}
45
d4e49838 46tags: ${SRCS}
ba710df4 47 ctags ${SRCS}