summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortest4973 <Kdo4973@hotmail.com>2018-04-04 18:38:55 (GMT)
committertest4973 <Kdo4973@hotmail.com>2018-04-04 18:38:55 (GMT)
commit43132af808119e71fdeb153f6e7ad53673c8f9e4 (patch)
tree544cfebf96b23a909813e5169269debb80804c68 /Makefile
parentc3f0ed28ffa66fd7e28ec3b6dbbe95eb0974bfef (diff)
parentd759d0630003b0722e9389c2297c1856ba8e939f (diff)
downloadlz4-43132af808119e71fdeb153f6e7ad53673c8f9e4.zip
lz4-43132af808119e71fdeb153f6e7ad53673c8f9e4.tar.gz
lz4-43132af808119e71fdeb153f6e7ad53673c8f9e4.tar.bz2
Merge branch 'dev' into lowAddr
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 83320fa..3a95808 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,8 @@
# ################################################################
# LZ4 - Makefile
-# Copyright (C) Yann Collet 2011-2016
+# Copyright (C) Yann Collet 2011-present
# All rights reserved.
#
-# This Makefile is validated for Linux, macOS, *BSD, Hurd, Solaris, MSYS2 targets
-#
# BSD license
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
@@ -58,6 +56,7 @@ all: allmost manuals
allmost: lib lz4 examples
.PHONY: lib lib-release liblz4.a
+lib: liblz4.a
lib lib-release liblz4.a:
@$(MAKE) -C $(LZ4DIR) $@
@@ -69,7 +68,7 @@ lz4 lz4-release :
@cp $(PRGDIR)/lz4$(EXT) .
.PHONY: examples
-examples:
+examples: liblz4.a
$(MAKE) -C $(EXDIR) all
.PHONY: manuals
@@ -122,6 +121,10 @@ ifneq (,$(filter $(HOST_OS),MSYS POSIX))
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
+.PHONY: check
+check:
+ $(MAKE) -C $(TESTDIR) test-lz4-essentials
+
.PHONY: test
test:
$(MAKE) -C $(TESTDIR) $@
@@ -170,7 +173,7 @@ gpptest gpptest32: clean
CC=$(CC) $(MAKE) -C $(TESTDIR) all CFLAGS="$(CFLAGS)"
c_standards: clean
- # note : lz4 is not C90 compatible, because it requires long long support
+ CFLAGS="-std=c90 -Werror" $(MAKE) clean allmost
CFLAGS="-std=gnu90 -Werror" $(MAKE) clean allmost
CFLAGS="-std=c99 -Werror" $(MAKE) clean allmost
CFLAGS="-std=gnu99 -Werror" $(MAKE) clean allmost