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. 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.spec \
  71. physfs.dsp \
  72. test_physfs.dsp \
  73. platform/skeleton.c \
  74. platform/macclassic.c \
  75. platform/win32.c \
  76. platform/beos.cpp \
  77. extras/physfsrwops.h \
  78. extras/physfsrwops.c \
  79. extras/physfshttpd.c \
  80. Makefile.am.oldautomake \
  81. Makefile.am.newautomake \
  82. $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
  83. else
  84. SUBDIRS = platform archivers zlib114 . test extras
  85. libphysfs_la_SOURCES = \
  86. physfs.c \
  87. physfs_internal.h \
  88. physfs_byteorder.c
  89. if BUILD_ZLIB
  90. ZLIB_LIB = zlib114/libz.la
  91. else
  92. ZLIB_LIB =
  93. endif
  94. libphysfs_la_LDFLAGS = \
  95. -release $(LT_RELEASE) \
  96. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  97. libphysfs_la_LIBADD = \
  98. archivers/libarchivers.la \
  99. platform/libplatform.la \
  100. $(ZLIB_LIB)
  101. EXTRA_DIST = \
  102. CREDITS \
  103. LICENSE \
  104. CHANGELOG \
  105. INSTALL \
  106. TODO \
  107. Doxyfile \
  108. CWProjects.sit \
  109. physfs.spec \
  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