Makefile.am.newautomake 2.9 KB

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