xref: /dragonfly/usr.bin/patch/Makefile (revision 71126e33)
1#	$OpenBSD: Makefile,v 1.3 2003/07/18 02:00:09 deraadt Exp $
2#	$DragonFly: src/usr.bin/patch/Makefile,v 1.3 2004/10/11 21:36:48 dillon Exp $
3
4PROG=	patch
5SRCS=	patch.c pch.c inp.c util.c backupfile.c
6
7.if defined(BOOTSTRAPPING)
8
9.PATH:	${.CURDIR}/../../lib/libc/stdlib
10SRCS+=	getopt.h getopt_long.c
11CFLAGS+= -I${.OBJDIR} -DBOOTSTRAPPING
12
13getopt.h : ${.CURDIR}/../../include/getopt.h
14	cp ${.ALLSRC} ${.TARGET}
15
16.endif
17
18WARNS?=	6
19
20.include <bsd.prog.mk>
21