Commit | Line | Data |
---|---|---|
b2e768eb | 1 | # |
51a16129 | 2 | # Copyright (c) 1987 Regents of the University of California. |
b54fd268 | 3 | # All rights reserved. |
b2e768eb | 4 | # |
b54fd268 | 5 | # Redistribution and use in source and binary forms are permitted |
b36fc510 KB |
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. | |
b54fd268 | 16 | # |
30f48914 | 17 | # @(#)Makefile 5.9 (Berkeley) %G% |
d245028d | 18 | # |
6076d3bb | 19 | CFLAGS= -O |
51a16129 | 20 | LIBC= /lib/libc.a |
c93d6f87 KM |
21 | SRCS= indent.c io.c lexi.c parse.c pr_comment.c args.c |
22 | OBJS= indent.o io.o lexi.o parse.o pr_comment.o args.o | |
30f48914 | 23 | MAN= indent.0 |
d245028d | 24 | |
51a16129 | 25 | all: indent |
d245028d | 26 | |
30f48914 | 27 | indent: ${OBJS} ${LIBC} |
51a16129 | 28 | ${CC} -o $@ ${CFLAGS} ${OBJS} |
1009bf5e | 29 | |
30f48914 | 30 | clean: |
51a16129 KB |
31 | rm -f ${OBJS} core indent |
32 | ||
30f48914 KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
51a16129 KB |
37 | mkdep ${CFLAGS} ${SRCS} |
38 | ||
30f48914 | 39 | install: ${MAN} |
51a16129 | 40 | install -s -o bin -g bin -m 755 indent ${DESTDIR}/usr/ucb/indent |
30f48914 | 41 | install -c -o bin -g bin -m 444 indent.0 ${DESTDIR}/usr/man/cat1 |
51a16129 | 42 | |
30f48914 | 43 | lint: ${SRCS} |
51a16129 KB |
44 | lint ${CFLAGS} ${SRCS} |
45 | ||
30f48914 | 46 | tags: ${SRCS} |
7c4b1171 | 47 | ctags ${SRCS} |