1
# Automakefile for GNU diffutils programs.
3
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
5
## This program is free software; you can redistribute it and/or modify
6
## it under the terms of the GNU General Public License as published by
7
## the Free Software Foundation; either version 2, or (at your option)
10
## This program is distributed in the hope that it will be useful,
11
## but WITHOUT ANY WARRANTY; without even the implied warranty of
12
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
## GNU General Public License for more details.
15
## You should have received a copy of the GNU General Public License
16
## along with this program; if not, write to the Free Software
17
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
bin_PROGRAMS = cmp diff diff3 sdiff
22
noinst_HEADERS = diff.h system.h
24
localedir = $(datadir)/locale
26
AM_CPPFLAGS = -I../lib -I$(top_srcdir)/lib
27
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
29
LDADD = ../lib/libdiffutils.a @LIBINTL@
30
diff_LDADD = $(LDADD) @LIB_CLOCK_GETTIME@
32
cmp_SOURCES = cmp.c version.c
33
diff3_SOURCES = diff3.c version.c
34
sdiff_SOURCES = sdiff.c version.c
36
analyze.c context.c diff.c dir.c ed.c ifdef.c io.c \
37
normal.c side.c util.c version.c
39
MAINTAINERCLEANFILES = $(srcdir)/version.c
41
$(srcdir)/version.c: $(top_srcdir)/configure.ac
42
(echo '#include <config.h>' && \
43
echo 'char const version_string[] = "(GNU $(PACKAGE)) $(VERSION)";') \