diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-10-21 11:58:06 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-10-21 11:58:06 (GMT) |
commit | ff3324b8d5ca6d7144a09ce7cc5521284d741bea (patch) | |
tree | 540746de13c61b8b796bee30743bf61eafdb5bd6 /programs/Makefile | |
parent | 64f8b037eec5a0571bdf2e6ae312f714545c06c9 (diff) | |
download | lz4-ff3324b8d5ca6d7144a09ce7cc5521284d741bea.zip lz4-ff3324b8d5ca6d7144a09ce7cc5521284d741bea.tar.gz lz4-ff3324b8d5ca6d7144a09ce7cc5521284d741bea.tar.bz2 |
Fix : compiler-independent macro to remove deprecation warnings
Diffstat (limited to 'programs/Makefile')
-rw-r--r-- | programs/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/programs/Makefile b/programs/Makefile index 332fd01..27d5922 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -36,17 +36,17 @@ RELEASE ?= r132 -DESTDIR ?= -PREFIX ?= /usr/local -CFLAGS ?= -O3 # can select customized flags instead, for example : CFLAGS="-O2 -g" make -CFLAGS += -I../lib -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -pedantic -CPPFLAGS:= -DXXH_NAMESPACE=LZ4_ -DLZ4_VERSION=\"$(RELEASE)\" -FLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) - BINDIR := $(PREFIX)/bin MANDIR := $(PREFIX)/share/man/man1 LZ4DIR := ../lib +DESTDIR ?= +PREFIX ?= /usr/local +CFLAGS ?= -O3 # can select customized optimized flags such as for example : CFLAGS="-O2 -g" make +CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -pedantic +CPPFLAGS:= -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ -DLZ4_VERSION=\"$(RELEASE)\" +FLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) + # Define *.exe as extension for Windows systems ifneq (,$(filter Windows%,$(OS))) @@ -58,7 +58,7 @@ VOID = /dev/null endif -# Select test target for Travis CI's Build Matrix +# Default test parameters TEST_FILES := COPYING FUZZER_TIME := -T9mn @@ -102,6 +102,7 @@ datagen : datagen.o datagencli.c $(CC) $(FLAGS) $^ -o $@$(EXT) clean: + @$(MAKE) -C $(LZ4DIR) $@ > $(VOID) @rm -f core *.o *.test tmp* \ lz4$(EXT) lz4c$(EXT) lz4c32$(EXT) \ fullbench$(EXT) fullbench32$(EXT) \ |