Makefile.am.newautomake 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. platform/unix.c \
  47. platform/posix.c \
  48. $(ZLIB_SRC)
  49. libphysfs_la_INCLUDES = $(ZLIB_INC)
  50. libphysfs_la_LDFLAGS = \
  51. -release $(LT_RELEASE) \
  52. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  53. if BUILD_TEST_PHYSFS
  54. bin_PROGRAMS = test_physfs
  55. test_physfs_INCLUDES = -I$(top_srcdir)
  56. test_physfs_LDADD = $(top_srcdir)/libphysfs.la
  57. test_physfs_SOURCES = test/test_physfs.c
  58. TEST_EXTRADIST =
  59. else
  60. TEST_EXTRADIST = test/test_physfs.c
  61. endif
  62. EXTRA_DIST = \
  63. CREDITS \
  64. LICENSE \
  65. CHANGELOG \
  66. INSTALL \
  67. TODO \
  68. Doxyfile \
  69. CWProjects.sit \
  70. physfs.dsp \
  71. test_physfs.dsp \
  72. platform/skeleton.c \
  73. platform/macclassic.c \
  74. platform/win32.c \
  75. platform/beos.cpp \
  76. extras/physfsrwops.h \
  77. extras/physfsrwops.c \
  78. extras/physfshttpd.c \
  79. Makefile.am.oldautomake \
  80. Makefile.am.newautomake \
  81. $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
  82. else
  83. SUBDIRS = platform archivers zlib114 . test extras
  84. libphysfs_la_SOURCES = \
  85. physfs.c \
  86. physfs_internal.h \
  87. physfs_byteorder.c
  88. if BUILD_ZLIB
  89. ZLIB_LIB = zlib114/libz.la
  90. else
  91. ZLIB_LIB =
  92. endif
  93. libphysfs_la_LDFLAGS = \
  94. -release $(LT_RELEASE) \
  95. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  96. libphysfs_la_LIBADD = \
  97. archivers/libarchivers.la \
  98. platform/libplatform.la \
  99. $(ZLIB_LIB)
  100. EXTRA_DIST = \
  101. CREDITS \
  102. LICENSE \
  103. CHANGELOG \
  104. INSTALL \
  105. TODO \
  106. Doxyfile \
  107. CWProjects.sit \
  108. physfs.dsp \
  109. test_physfs.dsp
  110. endif
  111. dist-hook:
  112. mkdir $(distdir)/docs
  113. echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
  114. echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
  115. echo >> $(distdir)/docs/README