|
Packit |
33f14e |
# Automakefile for GNU diffutils programs.
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
# Copyright (C) 2001-2002, 2006, 2009-2013, 2015-2017 Free Software Foundation,
|
|
Packit |
33f14e |
# Inc.
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
# This program is free software: you can redistribute it and/or modify
|
|
Packit |
33f14e |
# it under the terms of the GNU General Public License as published by
|
|
Packit |
33f14e |
# the Free Software Foundation, either version 3 of the License, or
|
|
Packit |
33f14e |
# (at your option) any later version.
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
# This program is distributed in the hope that it will be useful,
|
|
Packit |
33f14e |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
33f14e |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
33f14e |
# GNU General Public License for more details.
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
# You should have received a copy of the GNU General Public License
|
|
Packit |
33f14e |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
bin_PROGRAMS = cmp diff diff3 sdiff
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
localedir = $(datadir)/locale
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
AM_CPPFLAGS = -I../lib -I$(top_srcdir)/lib
|
|
Packit |
33f14e |
AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
LDADD = \
|
|
Packit |
33f14e |
libver.a \
|
|
Packit |
33f14e |
../lib/libdiffutils.a \
|
|
Packit |
33f14e |
$(LIBCSTACK) \
|
|
Packit |
33f14e |
$(LIBINTL) \
|
|
Packit |
33f14e |
$(LIBICONV) \
|
|
Packit |
33f14e |
$(LIBSIGSEGV) \
|
|
Packit |
33f14e |
$(LIB_CLOCK_GETTIME)
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
diff_LDADD = $(LDADD)
|
|
Packit |
33f14e |
cmp_LDADD = $(LDADD)
|
|
Packit |
33f14e |
sdiff_LDADD = $(LDADD)
|
|
Packit |
33f14e |
diff3_LDADD = $(LDADD)
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
cmp_SOURCES = cmp.c
|
|
Packit |
33f14e |
diff3_SOURCES = diff3.c
|
|
Packit |
33f14e |
sdiff_SOURCES = sdiff.c
|
|
Packit |
33f14e |
diff_SOURCES = \
|
|
Packit |
33f14e |
analyze.c context.c diff.c dir.c ed.c ifdef.c io.c \
|
|
Packit |
33f14e |
normal.c side.c util.c
|
|
Packit |
33f14e |
noinst_HEADERS = \
|
|
Packit |
33f14e |
die.h \
|
|
Packit |
33f14e |
diff.h \
|
|
Packit |
33f14e |
system.h
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
MOSTLYCLEANFILES = paths.h paths.ht
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
cmp.$(OBJEXT) diff3.$(OBJEXT) diff.$(OBJEXT) sdiff.$(OBJEXT): paths.h
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
gdiff = `echo diff|sed '$(transform)'`
|
|
Packit |
33f14e |
BUILT_SOURCES = paths.h
|
|
Packit |
33f14e |
paths.h: Makefile.am
|
|
Packit |
33f14e |
$(AM_V_GEN)(echo '#define DEFAULT_DIFF_PROGRAM "'$(gdiff)'"' && \
|
|
Packit |
33f14e |
echo '#define LOCALEDIR "$(localedir)"') >$@t && mv $@t $@
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
noinst_LIBRARIES = libver.a
|
|
Packit |
33f14e |
nodist_libver_a_SOURCES = version.c version.h
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
BUILT_SOURCES += version.c
|
|
Packit |
33f14e |
version.c: Makefile
|
|
Packit |
33f14e |
$(AM_V_GEN)rm -f $@
|
|
Packit |
33f14e |
$(AM_V_at)printf '#include <config.h>\n' > $@t
|
|
Packit |
33f14e |
$(AM_V_at)printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> $@t
|
|
Packit |
33f14e |
$(AM_V_at)chmod a-w $@t
|
|
Packit |
33f14e |
$(AM_V_at)mv $@t $@
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
BUILT_SOURCES += version.h
|
|
Packit |
33f14e |
version.h: Makefile
|
|
Packit |
33f14e |
$(AM_V_GEN)rm -f $@
|
|
Packit |
33f14e |
$(AM_V_at)printf 'extern char const *Version;\n' > $@t
|
|
Packit |
33f14e |
$(AM_V_at)chmod a-w $@t
|
|
Packit |
33f14e |
$(AM_V_at)mv $@t $@
|
|
Packit |
33f14e |
|
|
Packit |
33f14e |
DISTCLEANFILES = version.c version.h
|
|
Packit |
33f14e |
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
|