32d8a5379e
This makes build-testing and installing the minizip/miniunzip programs as simple as "autoreconf -if && ./configure --enable-demos && make && make install". Without --enable-demos, the makefile will only build and install the library, as before. Helped by Mike Frysinger. minizip/miniunzip were not intended to be general-purpose installed utilities, but they can be useful from time to time as a lightweight substitute for zip/unzip. You can also use them to quickly test that the library installation procedure worked.
39 lines
722 B
Makefile
39 lines
722 B
Makefile
lib_LTLIBRARIES = libminizip.la
|
|
|
|
if COND_DEMOS
|
|
bin_PROGRAMS = miniunzip minizip
|
|
endif
|
|
|
|
zlib_top_srcdir = $(top_srcdir)/../..
|
|
zlib_top_builddir = $(top_builddir)/../..
|
|
|
|
AM_CPPFLAGS = -I$(zlib_top_srcdir)
|
|
AM_LDFLAGS = -L$(zlib_top_builddir)
|
|
|
|
libminizip_la_SOURCES = \
|
|
ioapi.c \
|
|
mztools.c \
|
|
unzip.c \
|
|
zip.c
|
|
|
|
libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz
|
|
|
|
minizip_includedir = $(includedir)/minizip
|
|
minizip_include_HEADERS = \
|
|
crypt.h \
|
|
ioapi.h \
|
|
mztools.h \
|
|
unzip.h \
|
|
zip.h
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = minizip.pc
|
|
|
|
EXTRA_PROGRAMS = miniunzip minizip
|
|
|
|
miniunzip_SOURCES = miniunz.c
|
|
miniunzip_LDADD = libminizip.la
|
|
|
|
minizip_SOURCES = minizip.c
|
|
minizip_LDADD = libminizip.la -lz
|