diff options
-rw-r--r-- | lib/Makefile.am | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 0d3033828..062ad31ea 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -130,6 +130,16 @@ stdbool.h: stdbool_.h sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool_.h > $@-t mv $@-t $@ +BUILT_SOURCES += $(STDINT_H) +EXTRA_DIST += stdint_.h + +# We need the following in order to create <stdint.h> when the system +# doesn't have one that works with the given compiler. +stdint.h: stdint_.h + sed -e 's/@''HAVE_LONG_64BIT''@/$(HAVE_LONG_64BIT)/g;s/@''HAVE_LONG_LONG_64BIT@/$(HAVE_LONG_LONG_64BIT)/g' < $(srcdir)/stdint_.h > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += stdint.h stdint.h-t + BUILT_SOURCES += $(ALLOCA_H) EXTRA_DIST += alloca_.h |