| 1 | ## Process this file with automake to create Makefile.in
|
|---|
| 2 | # Copyright 1997-1998, 2005-2012 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 3, 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, see <http://www.gnu.org/licenses/>.
|
|---|
| 16 |
|
|---|
| 17 | LN = ln
|
|---|
| 18 |
|
|---|
| 19 | AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
|
|---|
| 20 |
|
|---|
| 21 | # Tell the linker to omit references to unused shared libraries.
|
|---|
| 22 | AM_LDFLAGS = $(IGNORE_UNUSED_LIBRARIES_CFLAGS)
|
|---|
| 23 |
|
|---|
| 24 | bin_PROGRAMS = grep egrep fgrep
|
|---|
| 25 | grep_SOURCES = grep.c
|
|---|
| 26 | egrep_SOURCES = egrep.c
|
|---|
| 27 | fgrep_SOURCES = fgrep.c
|
|---|
| 28 | noinst_HEADERS = grep.h dfa.h kwset.h search.h system.h mbsupport.h
|
|---|
| 29 |
|
|---|
| 30 | noinst_LIBRARIES = libgrep.a
|
|---|
| 31 | libgrep_a_SOURCES = kwset.c dfa.c searchutils.c dfasearch.c kwsearch.c \
|
|---|
| 32 | pcresearch.c main.c
|
|---|
| 33 |
|
|---|
| 34 | # Sometimes, the expansion of $(LIBINTL) includes -lc which may
|
|---|
| 35 | # include modules defining variables like `optind', so libgreputils.a
|
|---|
| 36 | # must precede $(LIBINTL) in order to ensure we use GNU getopt.
|
|---|
| 37 | # But libgreputils.a must also follow $(LIBINTL), since libintl uses
|
|---|
| 38 | # replacement functions defined in libgreputils.a.
|
|---|
| 39 | LDADD = \
|
|---|
| 40 | libgrep.a \
|
|---|
| 41 | ../lib/libgreputils.a $(LIBINTL) ../lib/libgreputils.a $(LIBICONV)
|
|---|
| 42 |
|
|---|
| 43 | grep_LDADD = $(LDADD) $(LIB_PCRE)
|
|---|
| 44 | localedir = $(datadir)/locale
|
|---|
| 45 | AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
|
|---|
| 46 |
|
|---|
| 47 | EXTRA_DIST = dosbuf.c
|
|---|