Makefile.am 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. lib_LTLIBRARIES = libphysfs.la
  2. #SUBDIRS = platform archivers zlib114 . test extras
  3. ZLIB_FILES = zlib114/adler32.c \
  4. zlib114/compress.c \
  5. zlib114/crc32.c \
  6. zlib114/deflate.c \
  7. zlib114/deflate.h \
  8. zlib114/infblock.c \
  9. zlib114/infblock.h \
  10. zlib114/infcodes.c \
  11. zlib114/infcodes.h \
  12. zlib114/inffast.c \
  13. zlib114/inffast.h \
  14. zlib114/inffixed.h \
  15. zlib114/inflate.c \
  16. zlib114/inftrees.c \
  17. zlib114/inftrees.h \
  18. zlib114/infutil.c \
  19. zlib114/infutil.h \
  20. zlib114/trees.c \
  21. zlib114/trees.h \
  22. zlib114/uncompr.c \
  23. zlib114/zconf.h \
  24. zlib114/zlib.h \
  25. zlib114/zutil.c \
  26. zlib114/zutil.h
  27. if BUILD_ZLIB
  28. ZLIB_SRC = $(ZLIB_FILES)
  29. ZLIB_INC = -I$(top_srcdir)/zlib114
  30. ZLIB_EXTRADIST =
  31. else
  32. ZLIB_SRC =
  33. ZLIB_INC =
  34. ZLIB_EXTRADIST = $(ZLIB_FILES)
  35. endif
  36. if BUILD_BEOS_CPP
  37. BEOS_SRC = platform/beos.cpp
  38. BEOS_EXTRADIST =
  39. else
  40. BEOS_SRC =
  41. BEOS_EXTRADIST = platform/beos.cpp
  42. endif
  43. libphysfsincludedir = $(includedir)
  44. libphysfsinclude_HEADERS = \
  45. physfs.h
  46. libphysfs_la_SOURCES = \
  47. physfs.c \
  48. physfs_internal.h \
  49. physfs_byteorder.c \
  50. archivers/dir.c \
  51. archivers/grp.c \
  52. archivers/zip.c \
  53. archivers/unzip.c \
  54. archivers/unzip.h \
  55. platform/unix.c \
  56. platform/posix.c \
  57. $(ZLIB_SRC) $(BEOS_SRC)
  58. libphysfs_la_INCLUDES = $(ZLIB_INC)
  59. libphysfs_la_LDFLAGS = \
  60. -release $(LT_RELEASE) \
  61. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  62. if BUILD_TEST_PHYSFS
  63. bin_PROGRAMS = test_physfs
  64. test_physfs_INCLUDES = -I$(top_srcdir)
  65. test_physfs_LDADD = $(top_srcdir)/libphysfs.la
  66. test_physfs_SOURCES = test/test_physfs.c
  67. TEST_EXTRADIST =
  68. else
  69. TEST_EXTRADIST = test/test_physfs.c
  70. endif
  71. EXTRA_DIST = \
  72. CREDITS \
  73. LICENSE \
  74. CHANGELOG \
  75. INSTALL \
  76. TODO \
  77. Doxyfile \
  78. CWProjects.sit \
  79. physfs.dsp \
  80. test_physfs.dsp \
  81. platform/skeleton.c \
  82. platform/macclassic.c \
  83. platform/win32.c \
  84. docs \
  85. extras/physfsrwops.h \
  86. extras/physfsrwops.c \
  87. extras/physfshttpd.c \
  88. $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
  89. dist-hook:
  90. rm -rf $(distdir)/docs/*
  91. echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
  92. echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
  93. echo >> $(distdir)/docs/README