*** ./lib/Makefile.ORIG Tue Apr 16 22:55:28 2019 --- ./lib/Makefile Mon Jul 22 18:04:27 2019 *************** *** 48,56 **** OS ?= $(shell uname) CPPFLAGS+= -DXXH_NAMESPACE=LZ4_ CFLAGS ?= -O3 ! DEBUGFLAGS:= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \ ! -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \ ! -Wundef -Wpointer-arith -Wstrict-aliasing=1 CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) --- 48,54 ---- OS ?= $(shell uname) CPPFLAGS+= -DXXH_NAMESPACE=LZ4_ CFLAGS ?= -O3 ! DEBUGFLAGS:= CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) *************** *** 65,71 **** --- 63,73 ---- SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT) SONAME_FLAGS = -install_name $(libdir)/liblz4.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER) else + ifeq ($(shell uname), AIX) + SONAME_FLAGS = + else SONAME_FLAGS = -Wl,-soname=liblz4.$(SHARED_EXT).$(LIBVER_MAJOR) + endif SHARED_EXT = so SHARED_EXT_MAJOR = $(SHARED_EXT).$(LIBVER_MAJOR) SHARED_EXT_VER = $(SHARED_EXT).$(LIBVER) *************** *** 109,120 **** --- 111,132 ---- ifneq (,$(filter Windows%,$(OS))) $(Q)$(CC) $(FLAGS) -DLZ4_DLL_EXPORT=1 -shared $^ -o dll/$@.dll -Wl,--out-implib,dll/liblz4.lib else + ifeq ($(shell uname), AIX) + CreateExportList liblz4.exp liblz4.a + $(CC) -qmkshrobj liblz4.a -o $@ -bE:liblz4.exp -bernotok + /usr/bin/rm -f liblz4.exp + /usr/bin/rm -f liblz4.a + else $(Q)$(CC) $(FLAGS) -shared $^ -fPIC -fvisibility=hidden $(SONAME_FLAGS) -o $@ + endif @echo creating versioned links $(Q)ln -sf $@ liblz4.$(SHARED_EXT_MAJOR) $(Q)ln -sf $@ liblz4.$(SHARED_EXT) + ifeq ($(shell uname), AIX) + /usr/bin/ar -q liblz4.a $@ endif endif + endif liblz4: $(LIBLZ4) *************** *** 127,133 **** #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- ! ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD MINGW32_NT-6.1 MINGW64_NT-6.1 MINGW32_NT-10.0 MINGW64_NT-10.0)) .PHONY: listL120 listL120: # extract lines >= 120 characters in *.{c,h}, by Takayuki Matsuoka (note : $$, for Makefile compatibility) --- 139,145 ---- #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- ! ifneq (,$(filter $(shell uname),AIX Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD MINGW32_NT-6.1 MINGW64_NT-6.1 MINGW32_NT-10.0 MINGW64_NT-10.0)) .PHONY: listL120 listL120: # extract lines >= 120 characters in *.{c,h}, by Takayuki Matsuoka (note : $$, for Makefile compatibility) *** ./programs/Makefile.ORIG Tue Apr 16 22:55:28 2019 --- ./programs/Makefile Mon Jul 22 18:04:54 2019 *************** *** 46,54 **** CPPFLAGS += -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ CFLAGS ?= -O3 ! DEBUGFLAGS:=-Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow \ ! -Wswitch-enum -Wdeclaration-after-statement -Wstrict-prototypes \ ! -Wpointer-arith -Wstrict-aliasing=1 CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) --- 46,52 ---- CPPFLAGS += -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_ CFLAGS ?= -O3 ! DEBUGFLAGS:= CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) FLAGS = $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) *************** *** 109,115 **** #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- ! ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD MINGW32_NT-6.1 MINGW64_NT-6.1 MINGW32_NT-10.0 MINGW64_NT-10.0)) unlz4: lz4 ln -s lz4$(EXT) unlz4$(EXT) --- 107,113 ---- #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- ! ifneq (,$(filter $(shell uname),AIX Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD MINGW32_NT-6.1 MINGW64_NT-6.1 MINGW32_NT-10.0 MINGW64_NT-10.0)) unlz4: lz4 ln -s lz4$(EXT) unlz4$(EXT) *************** *** 129,135 **** bindir ?= $(BINDIR) DATAROOTDIR ?= $(prefix)/share datarootdir ?= $(DATAROOTDIR) ! MANDIR ?= $(datarootdir)/man mandir ?= $(MANDIR) MAN1DIR ?= $(mandir)/man1 man1dir ?= $(MAN1DIR) --- 127,133 ---- bindir ?= $(BINDIR) DATAROOTDIR ?= $(prefix)/share datarootdir ?= $(DATAROOTDIR) ! MANDIR ?= $(PREFIX)/man mandir ?= $(MANDIR) MAN1DIR ?= $(mandir)/man1 man1dir ?= $(MAN1DIR) *** ./Makefile.ORIG Mon Jul 22 16:43:02 2019 --- ./Makefile Mon Jul 22 18:05:10 2019 *************** *** 93,99 **** #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- ! ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD MINGW32_NT-6.1 MINGW64_NT-6.1 MINGW32_NT-10.0 MINGW64_NT-10.0)) HOST_OS = POSIX .PHONY: install uninstall --- 93,99 ---- #----------------------------------------------------------------------------- # make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets #----------------------------------------------------------------------------- ! ifneq (,$(filter $(shell uname),AIX Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku MidnightBSD MINGW32_NT-6.1 MINGW64_NT-6.1 MINGW32_NT-10.0 MINGW64_NT-10.0)) HOST_OS = POSIX .PHONY: install uninstall