17 |
## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
## the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 |
## Boston, MA 02111-1307, USA. |
## Boston, MA 02111-1307, USA. |
19 |
|
|
|
BUILT_SOURCES = $(OBSTACK_H) |
|
|
|
|
20 |
CLEANFILES = pathconf.h |
CLEANFILES = pathconf.h |
|
MOSTLYCLEANFILES = obstack.h |
|
21 |
MAINTAINERCLEANFILES = Makefile.in |
MAINTAINERCLEANFILES = Makefile.in |
22 |
|
|
23 |
MODULE_PATH = $(pkglibexecdir) |
MODULE_PATH = $(pkglibexecdir) |
29 |
|
|
30 |
include_HEADERS = m4module.h |
include_HEADERS = m4module.h |
31 |
noinst_HEADERS = m4private.h |
noinst_HEADERS = m4private.h |
32 |
pkginc_HEADERS = error.h hash.h ltdl.h regex.h system.h $(OBSTACK_H) |
pkginc_HEADERS = error.h hash.h ltdl.h regex.h system.h |
33 |
EXTRA_HEADERS = system_.h obstack_.h |
EXTRA_HEADERS = system_.h |
34 |
|
|
35 |
EXTRA_DIST = $(EXTRA_HEADERS) obstack.c |
EXTRA_DIST = $(EXTRA_HEADERS) |
36 |
|
|
37 |
lib_LTLIBRARIES = libm4.la |
lib_LTLIBRARIES = libm4.la |
38 |
libm4_la_SOURCES = builtin.c debug.c error.c hash.c \ |
libm4_la_SOURCES = builtin.c debug.c error.c hash.c \ |
43 |
module.o module.lo: $(srcdir)/module.c pathconf.h |
module.o module.lo: $(srcdir)/module.c pathconf.h |
44 |
pathconf.h: Makefile |
pathconf.h: Makefile |
45 |
@echo "#define MODULE_PATH \"${MODULE_PATH}\"" > pathconf.h |
@echo "#define MODULE_PATH \"${MODULE_PATH}\"" > pathconf.h |
46 |
|
system.h: $(OBSTACK_H) |
47 |
|
|
48 |
# This file needs to be regenerated at configure time. |
# This file needs to be regenerated at configure time. |
49 |
dist-hook: |
dist-hook: |
50 |
rm -f $(distdir)/system.h |
rm -f $(distdir)/system.h |
51 |
|
|
52 |
|
|
53 |
gnulib_srcdir = $(top_srcdir)/gnulib/lib |
# --------------------------- @ |
54 |
|
# Adapted for gnulib obstack. # |
55 |
|
# --------------------------- @ |
56 |
|
|
57 |
|
gnulib_srcdir = $(top_srcdir)/gnulib/lib |
58 |
|
|
59 |
|
BUILT_SOURCES = $(OBSTACK_C) $(OBSTACK_H) |
60 |
|
DISTCLEANFILES = obstack.c obstack.h |
61 |
|
|
62 |
|
pkginc_HEADERS += $(OBSTACK_H) |
63 |
|
|
64 |
|
all-local $(lib_OBJECTS): $(OBSTACK_C) $(OBSTACK_H) |
65 |
|
obstack.c: $(gnulib_srcdir)/obstack.c |
66 |
|
rm -f $@ && $(LN_S) $(gnulib_srcdir)/$@ $@ |
67 |
|
obstack.h: $(gnulib_srcdir)/obstack.h |
68 |
|
rm -f $@ && $(LN_S) $(gnulib_srcdir)/$@ $@ |
69 |
|
|
70 |
|
|
71 |
# ------------------------------------------------ # |
# ------------------------------------------------ # |
72 |
# Adapted from gnulib/modules/stdbool:Makefile.am. # |
# Adapted from gnulib/modules/stdbool:Makefile.am. # |
73 |
# ------------------------------------------------ # |
# ------------------------------------------------ # |
74 |
|
|
75 |
BUILT_SOURCES += $(STDBOOL_H) |
BUILT_SOURCES += $(STDBOOL_H) |
76 |
MOSTLYCLEANFILES += stdbool.h stdbool.h-t |
DISTCLEANFILES += stdbool.h stdbool.h-t |
77 |
|
|
78 |
pkginc_HEADERS += $(STDBOOL_H) |
pkginc_HEADERS += $(STDBOOL_H) |
79 |
|
|
80 |
# We need the following in order to create an <stdbool.h> when the system |
# We need the following in order to create an <stdbool.h> when the system |
81 |
# doesn't have one that works. |
# doesn't have one that works. |