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