http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84416
[m4/ericb.git] / m4 / Makefile.am
blob8c57f4f60196cafae382eaacbbdd3e067a4b0217
1 ## This file is part of GNU m4
2 ## Copyright (C) 2000, 2001, 2003, 2004 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 of the License, or
7 ## (at your option) 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.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; see the file COPYING.  If not, write to
16 ## the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 ## Boston, MA 02110-1301, USA.
19 AM_CPPFLAGS     = -I$(top_builddir)/gnu -I$(top_srcdir)/gnu \
20                   -I$(top_builddir) -I$(top_srcdir) $(INCLTDL) $(INTLINCL)
21 AM_LDFLAGS      = -no-undefined -export-dynamic
23 lib_LTLIBRARIES         = libm4.la
24 libm4_la_SOURCES        = builtin.c debug.c hash.c input.c \
25                           m4.c m4private.h macro.c module.c output.c \
26                           path.c symtab.c syntax.c utility.c
27 libm4_la_LIBADD         = $(top_builddir)/gnu/libgnu.la \
28                           $(LIBLTDL) $(LTLIBINTL) $(LIBADD_DL)
30 module.o module.lo: module.c pathconf.h
31 pathconf.h: Makefile
32         @echo "#define MODULE_PATH \"$(libexecdir)/$(PACKAGE)\"" > pathconf.h
34 EXTRA_DIST      = system_.h
35 # This file needs to be regenerated at configure time.
36 dist-hook:
37         rm -f $(distdir)/system.h
39 pkginclude_HEADERS      = hash.h system.h
40 include_HEADERS         = m4module.h
42 CLEANFILES              = pathconf.h
43 MAINTAINERCLEANFILES    = Makefile.in