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

54 lines
1.4 KiB
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-09-03 18:36:01.337662518 +0200
build: add automake files
cmake is nice, but the lz4c32/lz4c64 distinction is totally uncool
for distros. The many options also make CMakeLists.txt longer than
it needs to be.
---
Makefile.am | 19 +++++++++++++++++++
configure.ac | 10 ++++++++++
2 files changed, 29 insertions(+)
Index: trunk/Makefile.am
===================================================================
--- /dev/null
+++ trunk/Makefile.am
@@ -0,0 +1,19 @@
+# -*- Makefile -*-
+
+AM_CFLAGS = -Wall -W -Wundef -Wcast-align -Wno-implicit-function-declaration \
+ -Os -std=c99
+
+lib_LTLIBRARIES = liblz4.la
+liblz4_la_SOURCES = lz4.c lz4hc.c
+liblz4_la_LDFLAGS = -release 0s102
+
+include_HEADERS = lz4.h lz4hc.h
+
+bin_PROGRAMS = lz4c
+lz4c_SOURCES = xxhash.c bench.c lz4c.c
+lz4c_LDADD = liblz4.la
+
+noinst_PROGRAMS = fuzzer fullbench
+fuzzer_LDADD = liblz4.la
+fullbench_SOURCES = fullbench.c xxhash.c
+fullbench_LDADD = liblz4.la
Index: trunk/configure.ac
===================================================================
--- /dev/null
+++ trunk/configure.ac
@@ -0,0 +1,10 @@
+AC_INIT([lz4], [0])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax dist-xz])
+AC_PROG_CC
+AM_PROG_CC_C_O
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+LT_INIT([disable-static])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT