Commit | Line | Data |
---|---|---|
759b1c59 KB |
1 | # |
2 | # Copyright (c) 1989 The Regents of the University of California. | |
3 | # All rights reserved. | |
4 | # | |
5 | # Redistribution and use in source and binary forms are permitted | |
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. | |
16 | # | |
435e8dff | 17 | # @(#)Makefile 4.6 (Berkeley) %G% |
759b1c59 | 18 | # |
ef353bf8 KB |
19 | CFLAGS= -O |
20 | LIBC= /lib/libc.a | |
21 | SRCS= diff3.c | |
bf546f92 KB |
22 | OBJS= |
23 | MAN= diff3.0 | |
6821f12f | 24 | |
ef353bf8 | 25 | all: diff3 |
6821f12f | 26 | |
bf546f92 KB |
27 | diff3: ${LIBC} |
28 | ${CC} ${CFLAGS} -o $@ $@.c | |
6821f12f | 29 | |
bf546f92 | 30 | clean: |
ef353bf8 | 31 | rm -f ${OBJS} core diff3 |
6821f12f | 32 | |
bf546f92 KB |
33 | cleandir: clean |
34 | rm -f ${MAN} tags .depend | |
35 | ||
36 | depend: ${SRCS} | |
ef353bf8 | 37 | mkdep -p ${CFLAGS} ${SRCS} |
a8629c9c | 38 | |
bf546f92 | 39 | install: ${MAN} |
435e8dff | 40 | install -s -o bin -g bin -m 755 diff3 $(DESTDIR)/usr/libexec/diff3 |
ef353bf8 | 41 | install -c -o bin -g bin -m 755 diff3.sh $(DESTDIR)/usr/bin/diff3 |
bf546f92 | 42 | install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 |
ef353bf8 | 43 | |
bf546f92 | 44 | lint: ${SRCS} |
ef353bf8 KB |
45 | lint ${CFLAGS} ${SRCS} |
46 | ||
bf546f92 | 47 | tags: ${SRCS} |
ef353bf8 | 48 | ctags ${SRCS} |