1# Copyright (C) 1989-1993, 1997-1999, 2002-2003, 2006, 2009-2012 Free Software
2# Foundation, Inc.
3
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13
14# You should have received a copy of the GNU General Public License
15# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17## Process this file with automake to produce Makefile.in.
18
19AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
20
21bin_PROGRAMS = patch
22patch_SOURCES = \
23	bestmatch.h \
24	common.h \
25	inp.c \
26	inp.h \
27	patch.c \
28	pch.c \
29	pch.h \
30	safe.c \
31	safe.h \
32	util.c \
33	util.h \
34	version.c \
35	version.h \
36	list.h
37
38AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
39patch_LDADD = $(LDADD) $(top_builddir)/lib/libpatch.a $(LIB_CLOCK_GETTIME) \
40	      $(LIB_XATTR) $(LIB_EACCESS)
41
42if ENABLE_MERGE
43  patch_SOURCES += merge.c
44  AM_CPPFLAGS += -DENABLE_MERGE
45endif
46