fix zlibWrapper make test
This commit is contained in:
parent
7347869fb6
commit
6c111fa3da
8
zlibWrapper/.gitignore
vendored
8
zlibWrapper/.gitignore
vendored
@ -3,10 +3,16 @@ _*
|
|||||||
example.*
|
example.*
|
||||||
example_zstd.*
|
example_zstd.*
|
||||||
fitblk.*
|
fitblk.*
|
||||||
fitblk_zstd.*
|
fitblk_zstd.*
|
||||||
zwrapbench.*
|
zwrapbench.*
|
||||||
foo.gz
|
foo.gz
|
||||||
|
|
||||||
|
example
|
||||||
|
example_zstd
|
||||||
|
fitblk
|
||||||
|
fitblk_zstd
|
||||||
|
zwrapbench
|
||||||
|
|
||||||
# Misc files
|
# Misc files
|
||||||
*.bat
|
*.bat
|
||||||
*.zip
|
*.zip
|
||||||
|
@ -16,7 +16,7 @@ EXAMPLE_PATH = examples
|
|||||||
PROGRAMS_PATH = ../programs
|
PROGRAMS_PATH = ../programs
|
||||||
TEST_FILE = ../doc/zstd_compression_format.md
|
TEST_FILE = ../doc/zstd_compression_format.md
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
CFLAGS ?= -O3
|
CFLAGS ?= -O3
|
||||||
CFLAGS += $(LOC) -I$(PROGRAMS_PATH) -I$(ZSTDLIBDIR) -I$(ZSTDLIBDIR)/common -I$(ZLIBWRAPPER_PATH) -std=gnu99
|
CFLAGS += $(LOC) -I$(PROGRAMS_PATH) -I$(ZSTDLIBDIR) -I$(ZSTDLIBDIR)/common -I$(ZLIBWRAPPER_PATH) -std=gnu99
|
||||||
CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef
|
CFLAGS += -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes -Wundef
|
||||||
LDFLAGS = $(LOC)
|
LDFLAGS = $(LOC)
|
||||||
@ -50,7 +50,7 @@ valgrindTest: clean example fitblk example_zstd fitblk_zstd zwrapbench
|
|||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
example: $(EXAMPLE_PATH)/example.o $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.o $(ZSTDLIBRARY)
|
example: $(EXAMPLE_PATH)/example.o $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.o $(ZSTDLIBRARY)
|
||||||
$(CC) $(LDFLAGS) -o $@ $(EXAMPLE_PATH)/example.o $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.o $(ZSTDLIBRARY) $(ZLIB_LIBRARY)
|
$(CC) $(LDFLAGS) -o $@ $(EXAMPLE_PATH)/example.o $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.o $(ZSTDLIBRARY) $(ZLIB_LIBRARY)
|
||||||
|
|
||||||
@ -75,10 +75,10 @@ $(ZLIBWRAPPER_PATH)/zstdTurnedOn_zlibwrapper.o: $(ZLIBWRAPPER_PATH)/zstd_zlibwra
|
|||||||
$(CC) $(CFLAGS) -DZWRAP_USE_ZSTD=1 -I. -c -o $@ $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.c
|
$(CC) $(CFLAGS) -DZWRAP_USE_ZSTD=1 -I. -c -o $@ $(ZLIBWRAPPER_PATH)/zstd_zlibwrapper.c
|
||||||
|
|
||||||
$(ZSTDLIBDIR)/libzstd.a:
|
$(ZSTDLIBDIR)/libzstd.a:
|
||||||
$(MAKE) -C $(ZSTDLIBDIR) all
|
$(MAKE) -C $(ZSTDLIBDIR) libzstd.a
|
||||||
|
|
||||||
$(ZSTDLIBDIR)/libzstd.so:
|
$(ZSTDLIBDIR)/libzstd.so:
|
||||||
$(MAKE) -C $(ZSTDLIBDIR) all
|
$(MAKE) -C $(ZSTDLIBDIR) libzstd
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-$(RM) $(ZLIBWRAPPER_PATH)/*.o $(EXAMPLE_PATH)/*.o *.o *.exe foo.gz example example_zstd fitblk fitblk_zstd zwrapbench
|
-$(RM) $(ZLIBWRAPPER_PATH)/*.o $(EXAMPLE_PATH)/*.o *.o *.exe foo.gz example example_zstd fitblk fitblk_zstd zwrapbench
|
||||||
|
Loading…
Reference in New Issue
Block a user