file reorg, pathnames.h, paths.h
[unix-history] / usr / src / usr.bin / diff / diff3 / Makefile
CommitLineData
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
19CFLAGS= -O
20LIBC= /lib/libc.a
21SRCS= diff3.c
bf546f92
KB
22OBJS=
23MAN= diff3.0
6821f12f 24
ef353bf8 25all: diff3
6821f12f 26
bf546f92
KB
27diff3: ${LIBC}
28 ${CC} ${CFLAGS} -o $@ $@.c
6821f12f 29
bf546f92 30clean:
ef353bf8 31 rm -f ${OBJS} core diff3
6821f12f 32
bf546f92
KB
33cleandir: clean
34 rm -f ${MAN} tags .depend
35
36depend: ${SRCS}
ef353bf8 37 mkdep -p ${CFLAGS} ${SRCS}
a8629c9c 38
bf546f92 39install: ${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 44lint: ${SRCS}
ef353bf8
KB
45 lint ${CFLAGS} ${SRCS}
46
bf546f92 47tags: ${SRCS}
ef353bf8 48 ctags ${SRCS}