ensure seekable_format/examples generated libzstd.a
when it's not already present in the expected directory
This commit is contained in:
parent
bdb673666f
commit
30ee23e905
@ -9,13 +9,16 @@
|
|||||||
|
|
||||||
# This Makefile presumes libzstd is built, using `make` in / or /lib/
|
# This Makefile presumes libzstd is built, using `make` in / or /lib/
|
||||||
|
|
||||||
LDFLAGS += ../../../lib/libzstd.a
|
ZSTDLIB_PATH = ../../../lib
|
||||||
|
ZSTDLIB_NAME = libzstd.a
|
||||||
|
ZSTDLIB = $(ZSTDLIB_PATH)/$(ZSTDLIB_NAME)
|
||||||
|
|
||||||
CPPFLAGS += -I../ -I../../../lib -I../../../lib/common
|
CPPFLAGS += -I../ -I../../../lib -I../../../lib/common
|
||||||
|
|
||||||
CFLAGS ?= -O3
|
CFLAGS ?= -O3
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
|
|
||||||
SEEKABLE_OBJS = ../zstdseek_compress.c ../zstdseek_decompress.c
|
SEEKABLE_OBJS = ../zstdseek_compress.c ../zstdseek_decompress.c $(ZSTDLIB)
|
||||||
|
|
||||||
.PHONY: default all clean test
|
.PHONY: default all clean test
|
||||||
|
|
||||||
@ -23,6 +26,9 @@ default: all
|
|||||||
|
|
||||||
all: seekable_compression seekable_decompression parallel_processing
|
all: seekable_compression seekable_decompression parallel_processing
|
||||||
|
|
||||||
|
$(ZSTDLIB):
|
||||||
|
make -C $(ZSTDLIB_PATH) $(ZSTDLIB_NAME)
|
||||||
|
|
||||||
seekable_compression : seekable_compression.c $(SEEKABLE_OBJS)
|
seekable_compression : seekable_compression.c $(SEEKABLE_OBJS)
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user