1 lib_LTLIBRARIES = libminizip.la
   2 
   3 if COND_DEMOS
   4 bin_PROGRAMS = miniunzip minizip
   5 endif
   6 
   7 zlib_top_srcdir = $(top_srcdir)/../..
   8 zlib_top_builddir = $(top_builddir)/../..
   9 
  10 AM_CPPFLAGS = -I$(zlib_top_srcdir)
  11 AM_LDFLAGS = -L$(zlib_top_builddir)
  12 
  13 if WIN32
  14 iowin32_src = iowin32.c
  15 iowin32_h = iowin32.h
  16 endif
  17 
  18 libminizip_la_SOURCES = \
  19         ioapi.c \
  20         mztools.c \
  21         unzip.c \
  22         zip.c \
  23         ${iowin32_src}
  24 
  25 libminizip_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 -lz
  26 
  27 minizip_includedir = $(includedir)/minizip
  28 minizip_include_HEADERS = \
  29         crypt.h \
  30         ioapi.h \
  31         mztools.h \
  32         unzip.h \
  33         zip.h \
  34         ${iowin32_h}
  35 
  36 pkgconfigdir = $(libdir)/pkgconfig
  37 pkgconfig_DATA = minizip.pc
  38 
  39 EXTRA_PROGRAMS = miniunzip minizip
  40 
  41 miniunzip_SOURCES = miniunz.c
  42 miniunzip_LDADD = libminizip.la
  43 
  44 minizip_SOURCES = minizip.c
  45 minizip_LDADD = libminizip.la -lz