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