1 | # Automakefile for GNU diffutils programs.
|
---|
2 |
|
---|
3 | # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
|
---|
4 |
|
---|
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)
|
---|
8 | ## any later version.
|
---|
9 |
|
---|
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.
|
---|
14 |
|
---|
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
|
---|
18 | ## 02111-1307, USA.
|
---|
19 |
|
---|
20 | bin_PROGRAMS = cmp diff diff3 sdiff
|
---|
21 |
|
---|
22 | noinst_HEADERS = diff.h system.h
|
---|
23 |
|
---|
24 | localedir = $(datadir)/locale
|
---|
25 |
|
---|
26 | AM_CPPFLAGS = -I../lib -I$(top_srcdir)/lib
|
---|
27 | DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
|
---|
28 |
|
---|
29 | LDADD = ../lib/libdiffutils.a @LIBINTL@
|
---|
30 | diff_LDADD = $(LDADD) @LIB_CLOCK_GETTIME@
|
---|
31 |
|
---|
32 | cmp_SOURCES = cmp.c version.c
|
---|
33 | diff3_SOURCES = diff3.c version.c
|
---|
34 | sdiff_SOURCES = sdiff.c version.c
|
---|
35 | diff_SOURCES = \
|
---|
36 | analyze.c context.c diff.c dir.c ed.c ifdef.c io.c \
|
---|
37 | normal.c side.c util.c version.c
|
---|
38 |
|
---|
39 | MAINTAINERCLEANFILES = $(srcdir)/version.c
|
---|
40 |
|
---|
41 | $(srcdir)/version.c: $(top_srcdir)/configure.ac
|
---|
42 | (echo '#include <config.h>' && \
|
---|
43 | echo 'char const version_string[] = "(GNU $(PACKAGE)) $(VERSION)";') \
|
---|
44 | >$@
|
---|