summaryrefslogtreecommitdiffstats
path: root/lib/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 8045569..7edac1f 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -38,8 +38,9 @@ other_coreutils_files = \
38 xmalloc.c 38 xmalloc.c
39 39
40 40
41libcoreutils_a_LIBADD = $(LIBOBJS) 41libcoreutils_a_LIBADD = $(LIBOBJS) $(ALLOCA)
42libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD) 42libcoreutils_a_DEPENDENCIES = $(libcoreutils_a_LIBADD)
43lib_OBJECTS = $(libcoreutils_a_OBJECTS)
43 44
44libnagiosplug_a_SOURCES = snprintf.c utils_base.c utils_disk.c 45libnagiosplug_a_SOURCES = snprintf.c utils_base.c utils_disk.c
45EXTRA_DIST += utils_base.h utils_disk.h 46EXTRA_DIST += utils_base.h utils_disk.h
@@ -61,6 +62,17 @@ stdbool.h: stdbool_.h
61 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t 62 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' $(srcdir)/stdbool_.h > $@t
62 mv $@t $@ 63 mv $@t $@
63 64
65BUILT_SOURCES += $(ALLOCA_H)
66EXTRA_DIST += alloca_.h
67
68# We need the following in order to create an <alloca.h> when the system
69# doesn't have one that works with the given compiler
70all-local $(lib_OBJECTS): $(ALLOCA_H)
71alloca.h: alloca_.h
72 cp $(srcdir)/alloca_.h $@-t
73 mv $@-t $@
74MOSTLYCLEANFILES += alloca.h alloca.h-t
75
64BUILT_SOURCES += $(GETOPT_H) 76BUILT_SOURCES += $(GETOPT_H)
65EXTRA_DIST += getopt_.h getopt_int.h 77EXTRA_DIST += getopt_.h getopt_int.h
66 78