Makefile.am 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # Copyright (C) 2011 Michael McMaster <michael@codesrc.com>
  2. #
  3. # This file is part of libzipper.
  4. #
  5. # libzipper is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # libzipper is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with libzipper. If not, see <http://www.gnu.org/licenses/>.
  17. AUTOMAKE_OPTIONS = subdir-objects
  18. include doxygen.am
  19. dist_noinst_SCRIPTS = \
  20. autogen.sh
  21. pkgconfigdir = $(libdir)/pkgconfig
  22. pkgconfig_DATA = libzipper1.pc
  23. EXTRA_DIST = \
  24. COPYING \
  25. INSTALL \
  26. INSTALL.Android \
  27. NEWS \
  28. README \
  29. VERSION \
  30. android/zipper/Android.mk
  31. lib_LTLIBRARIES = libzipper.la
  32. libzipper_la_SOURCES = \
  33. Compressor.cc \
  34. CompressedFile.cc \
  35. Container.cc \
  36. Decompressor.cc \
  37. deflate.cc \
  38. deflate.hh \
  39. Exception.cc \
  40. FileReader.cc \
  41. FileWriter.cc \
  42. gzip.cc \
  43. gzip.hh \
  44. Reader.cc \
  45. split.hh \
  46. strerror.hh \
  47. util.hh \
  48. Writer.cc \
  49. zip.hh \
  50. zip.cc
  51. if HAVE_GNU_STRERROR
  52. libzipper_la_SOURCES += \
  53. port/strerror_gnu.cc
  54. else
  55. libzipper_la_SOURCES += \
  56. port/strerror_posix.cc
  57. endif
  58. if !HAVE_PREAD
  59. libzipper_la_SOURCES += \
  60. port/pread.c
  61. endif
  62. if !HAVE_PWRITE
  63. libzipper_la_SOURCES += \
  64. port/pwrite.c
  65. endif
  66. if !HAVE_UTIMES
  67. libzipper_la_SOURCES += \
  68. port/utimes.c
  69. endif
  70. # Public API headers go here, for installation to /usr/include
  71. include_HEADERS = zipper.hh
  72. libzipper_la_LDFLAGS = ${ZLIB_LIBS} -version-info 1:0
  73. libzipper_la_CFLAGS = ${ZLIB_CFLAGS}
  74. bin_PROGRAMS = zipper
  75. man_MANS = zipper.1
  76. zipper_SOURCES = \
  77. zipper.cc
  78. zipper_LDADD = libzipper.la
  79. CXXFLAGS=-g -O2 -W -Wall -std=c++0x
  80. MOSTLYCLEANFILES=$(DX_CLEANFILES)
  81. install-data-local: doxygen-install
  82. all-local: doxygen-doc