xref: /netbsd-src/external/gpl2/gettext/dist/gettext-tools/libgrep/Makefile.am (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1## Makefile for libgrep directory in GNU gettext package.
2## Copyright (C) 2005-2006 Free Software 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 2, or (at your option)
7## 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, write to the Free Software Foundation,
16## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17
18## Process this file with automake to produce Makefile.in.
19
20AUTOMAKE_OPTIONS = 1.5 gnits no-dependencies
21EXTRA_DIST =
22
23
24noinst_LIBRARIES = libgrep.a
25
26# Sources that are compiled on all platforms.
27
28libgrep_a_SOURCES = \
29  libgrep.h \
30  kwset.h kwset.c \
31  dfa.h dfa.c \
32  m-common.h m-common.c m-fgrep.c m-regex.c \
33  hard-locale.h hard-locale.c
34
35# Sources that are compiled only on platforms that lack the functions.
36
37LIBADD_SOURCE = \
38  memchr.c \
39  regex.h regex.c \
40  strdup.h strdup.c
41
42# How to build libgrep.a.
43libgrep_a_LIBADD = @LIBGREPOBJS@
44libgrep_a_DEPENDENCIES = @LIBGREPOBJS@
45
46# List of files to be distributed.
47
48EXTRA_DIST += $(LIBADD_SOURCE)
49
50AM_CPPFLAGS = -I.. -I../gnulib-lib -I$(top_srcdir)/gnulib-lib -I../intl
51