make all includes contrib/largeNbDicts

This commit is contained in:
Yann Collet 2018-08-29 16:17:22 -07:00
parent d89fa814c1
commit a5a77965d3
2 changed files with 8 additions and 2 deletions

View File

@ -87,6 +87,7 @@ contrib: lib
$(MAKE) -C contrib/pzstd all
$(MAKE) -C contrib/seekable_format/examples all
$(MAKE) -C contrib/adaptive-compression all
$(MAKE) -C contrib/largeNbDicts all
.PHONY: cleanTabs
cleanTabs:

View File

@ -10,6 +10,8 @@
PROGDIR = ../../programs
LIBDIR = ../../lib
LIBZSTD = $(LIBDIR)/libzstd.a
CPPFLAGS+= -I$(LIBDIR) -I$(LIBDIR)/common -I$(LIBDIR)/dictBuilder -I$(PROGDIR)
CFLAGS ?= -O3
@ -25,10 +27,13 @@ default: largeNbDicts
all : largeNbDicts
largeNbDicts: LDFLAGS += -lzstd
largeNbDicts: bench.o datagen.o xxhash.o largeNbDicts.c
largeNbDicts: bench.o datagen.o xxhash.o $(LIBZSTD) largeNbDicts.c
$(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LDFLAGS) -o $@
.PHONY: $(LIBZSTD)
$(LIBZSTD):
$(MAKE) -C $(LIBDIR) libzstd.a
bench.o : $(PROGDIR)/bench.c
$(CC) $(CPPFLAGS) $(CFLAGS) $^ -c