Commit | Line | Data |
---|---|---|
630f325c | 1 | # |
d3438a68 KB |
2 | # Copyright (c) 1988 The Regents of the University of California. |
3 | # All rights reserved. | |
630f325c | 4 | # |
d3438a68 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 5.6 (Berkeley) %G% | |
c1fc8c65 KB |
18 | # |
19 | CFLAGS= -O -I. | |
20 | LIBC= /lib/libc.a | |
21 | SRCS= dc.c | |
07cf0f87 | 22 | OBJS= |
d3438a68 | 23 | MAN= dc.0 |
6fbc8861 | 24 | |
630f325c RH |
25 | all: dc |
26 | ||
d3438a68 KB |
27 | dc: ${LIBC} |
28 | ${CC} ${CFLAGS} -o $@ $@.c | |
c1fc8c65 | 29 | |
d3438a68 | 30 | clean: |
c1fc8c65 KB |
31 | rm -f ${OBJS} core dc |
32 | ||
d3438a68 KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
c1fc8c65 KB |
37 | mkdep -p ${CFLAGS} ${SRCS} |
38 | ||
d3438a68 | 39 | install: ${MAN} |
c1fc8c65 | 40 | install -s -o bin -g bin -m 755 dc ${DESTDIR}/usr/bin/dc |
d3438a68 | 41 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 |
c1fc8c65 | 42 | |
d3438a68 | 43 | lint: ${SRCS} |
c1fc8c65 KB |
44 | lint ${CFLAGS} ${SRCS} |
45 | ||
d3438a68 | 46 | tags: ${SRCS} |
c1fc8c65 | 47 | ctags ${SRCS} |