Commit | Line | Data |
---|---|---|
fa32567f | 1 | # |
08d9ee38 | 2 | # Copyright (c) 1987 Regents of the University of California. |
9b0a4950 | 3 | # All rights reserved. |
fa32567f | 4 | # |
9b0a4950 | 5 | # Redistribution and use in source and binary forms are permitted |
a399f6c8 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. | |
9b0a4950 | 16 | # |
7b9555fa | 17 | # @(#)Makefile 5.6 (Berkeley) %G% |
fa32567f | 18 | # |
fd367520 | 19 | CFLAGS= -O |
08d9ee38 | 20 | LIBC= /lib/libc.a |
fd367520 | 21 | LIBDIR= /usr/lib |
b48f7101 | 22 | SRCS= lpf.c |
7b9555fa | 23 | OBJS= |
db1b4c15 | 24 | |
b48f7101 | 25 | all: lpf |
db1b4c15 | 26 | |
7b9555fa KB |
27 | lpf: ${LIBC} |
28 | ${CC} -o $@ ${CFLAGS} $@.c | |
db1b4c15 | 29 | |
7b9555fa | 30 | clean: |
b48f7101 | 31 | rm -f ${OBJS} core lpf |
08d9ee38 | 32 | |
7b9555fa KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
08d9ee38 KB |
37 | mkdep -p ${CFLAGS} ${SRCS} |
38 | ||
7b9555fa | 39 | install: ${MAN} |
08d9ee38 | 40 | install -s -o bin -g bin -m 755 lpf ${DESTDIR}/${LIBDIR}/lpf |
08d9ee38 | 41 | |
7b9555fa | 42 | lint: ${SRCS} |
08d9ee38 KB |
43 | lint ${CFLAGS} ${SRCS} |
44 | ||
7b9555fa | 45 | tags: ${SRCS} |
08d9ee38 KB |
46 | ctags ${SRCS} |
47 |