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