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