SHA256
1
0
forked from pool/deutex
deutex/deutex-automake.diff

76 lines
1.7 KiB
Diff

---
Makefile.am | 37 +++++++++++++++++++++++++++++++++++++
configure.ac | 9 +++++++++
src/deutex.h | 2 +-
3 files changed, 47 insertions(+), 1 deletion(-)
Index: deutex-4.4.902/Makefile.am
===================================================================
--- /dev/null
+++ deutex-4.4.902/Makefile.am
@@ -0,0 +1,37 @@
+# -*- Makefile -*-
+
+AM_CFLAGS = -Wall -Wpointer-arith -Wstrict-prototypes
+
+bin_PROGRAMS = deusf deutex
+
+deutex_SOURCES = \
+ src/color.c \
+ src/compose.c \
+ src/deutex.c \
+ src/endianio.c \
+ src/endianm.c \
+ src/extract.c \
+ src/gifcodec.c \
+ src/ident.c \
+ src/listdir.c \
+ src/lists.c \
+ src/log.c \
+ src/lzw.c \
+ src/merge.c \
+ src/mkwad.c \
+ src/picture.c \
+ src/sound.c \
+ src/sscript.c \
+ src/substit.c \
+ src/text.c \
+ src/texture.c \
+ src/tools.c \
+ src/usedidx.c \
+ src/version.c \
+ src/wadio.c
+deutex_CFLAGS = ${AM_CFLAGS} -DDeuTex
+
+deusf_SOURCES = ${deutex_SOURCES}
+deusf_CFLAGS = ${AM_CFLAGS} -DDeuSF
+
+man_MANS = deutex.6
Index: deutex-4.4.902/configure.ac
===================================================================
--- /dev/null
+++ deutex-4.4.902/configure.ac
@@ -0,0 +1,9 @@
+AC_INIT([deutex], [4.4.902])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_CHECK_HEADERS([inttypes.h])
+AC_CHECK_FUNCS([snprintf])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
Index: deutex-4.4.902/src/deutex.h
===================================================================
--- deutex-4.4.902.orig/src/deutex.h
+++ deutex-4.4.902/src/deutex.h
@@ -100,7 +100,7 @@ extern const char deutex_version[];
#endif
/* Fixed-size types */
-#ifdef HAVE_INTTYPES
+#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif