summaryrefslogtreecommitdiffstats
path: root/examples/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2017-06-08 19:51:56 (GMT)
committerYann Collet <cyan@fb.com>2017-06-08 19:51:56 (GMT)
commit775e63ee01af461d20a607f658ca3795ff738157 (patch)
treee8c5022408a9cb7574c3ffd1765e63ca23232825 /examples/Makefile
parent7e15e240aba842020a2f6e86f35e71cbacdf237d (diff)
downloadlz4-775e63ee01af461d20a607f658ca3795ff738157.zip
lz4-775e63ee01af461d20a607f658ca3795ff738157.tar.gz
lz4-775e63ee01af461d20a607f658ca3795ff738157.tar.bz2
refactored simple_buffer.c example (#363)
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/Makefile b/examples/Makefile
index aad713b..7647f16 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -27,9 +27,10 @@
# kindly provided by Takayuki Matsuoka
# ##########################################################################
-CFLAGS ?= -O3
-CFLAGS += -std=gnu99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wstrict-prototypes
-FLAGS := -I../lib $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
+CPPFLAGS += -I../lib
+CFLAGS ?= -O3
+CFLAGS += -std=gnu99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wstrict-prototypes
+FLAGS := $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
TESTFILE= Makefile
LZ4DIR := ../lib
@@ -48,7 +49,8 @@ endif
default: all
-all: printVersion doubleBuffer dictionaryRandomAccess ringBuffer ringBufferHC lineCompress frameCompress
+all: printVersion doubleBuffer dictionaryRandomAccess ringBuffer ringBufferHC \
+ lineCompress frameCompress simpleBuffer
printVersion: $(LZ4DIR)/lz4.c printVersion.c
$(CC) $(FLAGS) $^ -o $@$(EXT)
@@ -85,6 +87,7 @@ test : all
./ringBufferHC$(EXT) $(TESTFILE)
./lineCompress$(EXT) $(TESTFILE)
./frameCompress$(EXT) $(TESTFILE)
+ ./simpleBuffer$(EXT)
$(LZ4) -vt $(TESTFILE).lz4
clean: