Commit | Line | Data |
---|---|---|
7a92f0d3 | 1 | # |
ba710df4 KB |
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) %G% | |
7 | # | |
8 | CFLAGS= -O | |
9 | LIBC= /lib/libc.a | |
10 | SRCS= graph.c | |
11 | OBJS= graph.o | |
12 | ||
13 | all: graph | |
14 | ||
15 | graph: ${SRCS} ${LIBC} | |
16 | ${CC} -o $@ ${CFLAGS} ${SRCS} -lplot -lm | |
17 | ||
18 | clean: FRC | |
19 | rm -f ${OBJS} core graph | |
20 | ||
21 | depend: FRC | |
22 | mkdep ${CFLAGS} ${SRCS} | |
23 | ||
24 | install: FRC | |
25 | install -s -o bin -g bin -m 755 graph ${DESTDIR}/usr/bin/graph | |
26 | ||
27 | lint: FRC | |
28 | lint ${CFLAGS} ${SRCS} | |
29 | ||
30 | tags: FRC | |
31 | ctags ${SRCS} | |
7a92f0d3 | 32 | |
ba710df4 | 33 | FRC: |
7a92f0d3 | 34 | |
ba710df4 KB |
35 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
36 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
7a92f0d3 | 37 | |
ba710df4 | 38 | graph.o: graph.c /usr/include/stdio.h /usr/include/ctype.h /usr/include/math.h |
a8629c9c | 39 | |
ba710df4 | 40 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |