2013-09-03 18:51:56 +02:00
|
|
|
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.
|
|
|
|
|
2012-03-18 19:08:42 +01:00
|
|
|
---
|
2013-09-03 18:51:56 +02:00
|
|
|
Makefile.am | 19 +++++++++++++++++++
|
|
|
|
configure.ac | 10 ++++++++++
|
|
|
|
2 files changed, 29 insertions(+)
|
2012-03-18 19:08:42 +01:00
|
|
|
|
2013-09-03 18:51:56 +02:00
|
|
|
Index: trunk/Makefile.am
|
2012-03-18 19:08:42 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2013-09-03 18:51:56 +02:00
|
|
|
+++ trunk/Makefile.am
|
2013-11-26 05:03:34 +01:00
|
|
|
@@ -0,0 +1,21 @@
|
2012-03-18 19:08:42 +01:00
|
|
|
+# -*- Makefile -*-
|
|
|
|
+
|
2013-09-03 18:51:56 +02:00
|
|
|
+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
|
2013-11-26 05:03:34 +01:00
|
|
|
+liblz4_la_LDFLAGS = -release 0s108
|
2013-09-03 18:51:56 +02:00
|
|
|
+
|
|
|
|
+include_HEADERS = lz4.h lz4hc.h
|
|
|
|
+
|
|
|
|
+bin_PROGRAMS = lz4c
|
2013-11-26 05:03:34 +01:00
|
|
|
+lz4c_SOURCES = xxhash.c bench.c lz4cli.c
|
2013-09-03 18:51:56 +02:00
|
|
|
+lz4c_LDADD = liblz4.la
|
2012-03-18 19:08:42 +01:00
|
|
|
+
|
2013-09-03 18:51:56 +02:00
|
|
|
+noinst_PROGRAMS = fuzzer fullbench
|
|
|
|
+fuzzer_LDADD = liblz4.la
|
|
|
|
+fullbench_SOURCES = fullbench.c xxhash.c
|
|
|
|
+fullbench_LDADD = liblz4.la
|
2013-11-26 05:03:34 +01:00
|
|
|
+
|
|
|
|
+man1_MANS = lz4.1
|
2013-09-03 18:51:56 +02:00
|
|
|
Index: trunk/configure.ac
|
2012-03-18 19:08:42 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null
|
2013-09-03 18:51:56 +02:00
|
|
|
+++ trunk/configure.ac
|
|
|
|
@@ -0,0 +1,10 @@
|
2012-03-18 19:08:42 +01:00
|
|
|
+AC_INIT([lz4], [0])
|
|
|
|
+AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
+AC_CONFIG_HEADERS([config.h])
|
2013-09-03 18:51:56 +02:00
|
|
|
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax dist-xz])
|
2012-03-18 19:08:42 +01:00
|
|
|
+AC_PROG_CC
|
|
|
|
+AM_PROG_CC_C_O
|
2013-09-03 18:51:56 +02:00
|
|
|
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
|
|
|
+LT_INIT([disable-static])
|
2012-03-18 19:08:42 +01:00
|
|
|
+AC_CONFIG_FILES([Makefile])
|
|
|
|
+AC_OUTPUT
|