summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorPrzemyslaw Skibinski <inikep@gmail.com>2016-11-22 09:38:44 (GMT)
committerPrzemyslaw Skibinski <inikep@gmail.com>2016-11-22 09:38:44 (GMT)
commit2cbd0233b8f018ed97f3e7e07eacb38d896ab261 (patch)
treeed86ba7dbd96d22ed5d429bead254af2253c572e /lib/Makefile
parentb1519f861c56db7623b23151dd986fef96f069c9 (diff)
parentcc21115cb4f9ff1f97322104ffb19ca89b5a0eb1 (diff)
downloadlz4-2cbd0233b8f018ed97f3e7e07eacb38d896ab261.zip
lz4-2cbd0233b8f018ed97f3e7e07eacb38d896ab261.tar.gz
lz4-2cbd0233b8f018ed97f3e7e07eacb38d896ab261.tar.bz2
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 4c9b929..28242cc 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,6 +1,6 @@
# ################################################################
# LZ4 library - Makefile
-# Copyright (C) Yann Collet 2011-2015
+# Copyright (C) Yann Collet 2011-2016
# All rights reserved.
#
# BSD license
@@ -46,7 +46,7 @@ DESTDIR?=
PREFIX ?= /usr/local
CPPFLAGS= -DXXH_NAMESPACE=LZ4_
CFLAGS ?= -O3
-CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
+CFLAGS += -g -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
-Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef \
-Wpointer-arith -Wstrict-aliasing=1
CFLAGS += $(MOREFLAGS)
@@ -70,12 +70,18 @@ else
SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER)
endif
-default: lib
+default: lib-release
all: lib
+all32: CFLAGS+=-m32
+all32: all
+
lib: liblz4.a liblz4
+lib-release: CFLAGS := -O3
+lib-release: lib
+
liblz4.a: *.c
ifeq ($(BUILD_STATIC),yes)
@echo compiling static library
@@ -96,7 +102,7 @@ else
endif
clean:
- @$(RM) -f core *.o *.a *.$(SHARED_EXT) *.$(SHARED_EXT).* liblz4.pc dll/liblz4.dll dll/liblz4.lib
+ @$(RM) core *.o *.a *.$(SHARED_EXT) liblz4.pc dll/liblz4.dll dll/liblz4.lib
@echo Cleaning library completed