Skip to content

Commit

Permalink
Merge pull request #133 from ibm-genwqe/more_zlib_tests
Browse files Browse the repository at this point in the history
More zlib tests
  • Loading branch information
fhaverkamp authored Jan 5, 2017
2 parents 3946ac6 + 6fafd71 commit 5a9f8f9
Show file tree
Hide file tree
Showing 15 changed files with 3,120 additions and 167 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ PLATFORM ?= $(shell uname -i)

distro = $(shell lsb_release -d | cut -f2)

subdirs += lib tools
subdirs += lib tools misc

ifdef WITH_LIBCXL
subdirs += init
Expand All @@ -51,7 +51,7 @@ MODPROBE_D ?= /etc/modprobe.d
all: $(subdirs)

# Rules for the recursive build
tools: lib
tools misc: lib

# z_ prefixed version of libz, intended to be linked statically with
# our libz version to provide the software zlib functionality.
Expand Down Expand Up @@ -176,3 +176,4 @@ clean:
fi
@find . -depth -name '*~' -exec rm -rf '{}' \; -print
@find . -depth -name '.#*' -exec rm -rf '{}' \; -print
@$(RM) *.bin *.log
1 change: 1 addition & 0 deletions include/libzHW.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ int zedc_inflateGetHeader(zedc_streamp strm, gzedc_headerp head);
int zedc_inflateSaveBuffers(zedc_streamp strm, const char *prefix);
void zedc_lib_debug(int onoff); /* debug outputs on/off */
void zedc_set_logfile(FILE *logfile);
int zedc_inflate_pending_output(struct zedc_stream_s *strm);

/**
* The application can compare zedc_Version and ZEDC_VERSION for
Expand Down
1 change: 1 addition & 0 deletions include/zaddons.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ enum zlib_impl {
ZLIB_FLAG_CACHE_HANDLES = 0x20, /* GenWQE only, fails for CAPI */
ZLIB_FLAG_OMIT_LAST_DICT = 0x40, /* Useful for cases like Genomics */
ZLIB_FLAG_USE_POLLING = 0x80, /* Use polling mode only for CAPI */
ZLIB_FLAG_DISABLE_CV_FOR_Z_STREAM_END = 0x100,
};

/**
Expand Down
9 changes: 8 additions & 1 deletion lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ libversion = $(VERSION)
CFLAGS += -fPIC -fno-strict-aliasing
LDLIBS += -lpthread -ldl -lrt

# If we use libcxl, we need to reflect that to avoid underlinkage
ifeq ($(WITH_LIBCXL),1)
ifneq ($(BUNDLE_LIBCXL),1)
LDLIBS += -lcxl
endif
endif

### Accelerated libz implementation (Accelerated Data Compression/ADC)
libname=libzADC
projA = $(libname).a \
Expand Down Expand Up @@ -203,7 +210,7 @@ uninstall:
$(CC) -MM $(CPPFLAGS) $(CFLAGS) $< > $*.d

clean distclean:
$(RM) *.o *.d $(projs) *.so
$(RM) *.o *.d $(projs) *.so *.so.*
ifneq ($(CONFIG_LIBCXL_PATH),)
$(MAKE) -C $(CONFIG_LIBCXL_PATH) $@
endif
Expand Down
Loading

0 comments on commit 5a9f8f9

Please sign in to comment.