Commit | Line | Data |
---|---|---|
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 | # |
19 | CFLAGS= -O | |
20 | LIBC= /lib/libc.a | |
21 | SRCS= graph.c | |
d4e49838 KB |
22 | OBJS= |
23 | MAN= graph.0 | |
ba710df4 KB |
24 | |
25 | all: graph | |
26 | ||
27 | graph: ${SRCS} ${LIBC} | |
d4e49838 | 28 | ${CC} -o $@ ${CFLAGS} $@.c -lplot -lm |
ba710df4 | 29 | |
d4e49838 | 30 | clean: |
ba710df4 KB |
31 | rm -f ${OBJS} core graph |
32 | ||
d4e49838 KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
37 | mkdep -p ${CFLAGS} ${SRCS} | |
ba710df4 | 38 | |
d4e49838 | 39 | install: ${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 | 43 | lint: ${SRCS} |
ba710df4 KB |
44 | lint ${CFLAGS} ${SRCS} |
45 | ||
d4e49838 | 46 | tags: ${SRCS} |
ba710df4 | 47 | ctags ${SRCS} |