summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-02-01 07:17:52 (GMT)
committerYann Collet <cyan@fb.com>2018-02-01 07:17:52 (GMT)
commit886a4858451800f6ebd621a2816a4698486d7ff1 (patch)
treefa222f3dfc210dc02497f3a62b50fa3a1aba5a7f
parent5fd3ac7904ee85a0272b986b5178d89cb2ac8dc4 (diff)
downloadlz4-886a4858451800f6ebd621a2816a4698486d7ff1.zip
lz4-886a4858451800f6ebd621a2816a4698486d7ff1.tar.gz
lz4-886a4858451800f6ebd621a2816a4698486d7ff1.tar.bz2
examples/Makefile : changed dependency order
static library *.a must come after source files *.c on linux
-rw-r--r--Makefile2
-rw-r--r--examples/Makefile18
2 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index b48cfdd..83320fa 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ lz4 lz4-release :
@cp $(PRGDIR)/lz4$(EXT) .
.PHONY: examples
-examples: lib lz4
+examples:
$(MAKE) -C $(EXDIR) all
.PHONY: manuals
diff --git a/examples/Makefile b/examples/Makefile
index c56d455..f9e9e7a 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -55,31 +55,31 @@ all: printVersion doubleBuffer dictionaryRandomAccess ringBuffer ringBufferHC \
$(LZ4DIR)/liblz4.a: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4opt.h $(LZ4DIR)/lz4frame.c $(LZ4DIR)/lz4.h $(LZ4DIR)/lz4hc.h $(LZ4DIR)/lz4frame.h $(LZ4DIR)/lz4frame_static.h
$(MAKE) -C $(LZ4DIR) liblz4.a
-printVersion: $(LZ4DIR)/liblz4.a printVersion.c
+printVersion: printVersion.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
-doubleBuffer: $(LZ4DIR)/liblz4.a blockStreaming_doubleBuffer.c
+doubleBuffer: blockStreaming_doubleBuffer.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
-dictionaryRandomAccess: $(LZ4DIR)/liblz4.a dictionaryRandomAccess.c
+dictionaryRandomAccess: dictionaryRandomAccess.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
-ringBuffer : $(LZ4DIR)/liblz4.a blockStreaming_ringBuffer.c
+ringBuffer : blockStreaming_ringBuffer.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
-ringBufferHC: $(LZ4DIR)/liblz4.a HCStreaming_ringBuffer.c
+ringBufferHC: HCStreaming_ringBuffer.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
-lineCompress: $(LZ4DIR)/liblz4.a blockStreaming_lineByLine.c
+lineCompress: blockStreaming_lineByLine.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
-frameCompress: $(LZ4DIR)/liblz4.a frameCompress.c
+frameCompress: frameCompress.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
-compressFunctions: $(LZ4DIR)/liblz4.a compress_functions.c
+compressFunctions: compress_functions.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT) -lrt
-simpleBuffer: $(LZ4DIR)/liblz4.a simple_buffer.c
+simpleBuffer: simple_buffer.c $(LZ4DIR)/liblz4.a
$(CC) $(FLAGS) $^ -o $@$(EXT)
$(LZ4) :