Makefile.am.newautomake 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. lib_LTLIBRARIES = libphysfs.la
  2. libphysfsincludedir = $(includedir)
  3. libphysfsinclude_HEADERS = \
  4. physfs.h
  5. if BUILD_MACOSX
  6. ZLIB_FILES = zlib123/adler32.c \
  7. zlib123/compress.c \
  8. zlib123/crc32.c \
  9. zlib123/crc32.h \
  10. zlib123/deflate.c \
  11. zlib123/deflate.h \
  12. zlib123/gzio.c \
  13. zlib123/infback.c \
  14. zlib123/inffast.c \
  15. zlib123/inffast.h \
  16. zlib123/inffixed.h \
  17. zlib123/inflate.c \
  18. zlib123/inflate.h \
  19. zlib123/inftrees.c \
  20. zlib123/inftrees.h \
  21. zlib123/trees.c \
  22. zlib123/trees.h \
  23. zlib123/uncompr.c \
  24. zlib123/zconf.h \
  25. zlib123/zlib.h \
  26. zlib123/zutil.c \
  27. zlib123/zutil.h
  28. if BUILD_ZLIB
  29. ZLIB_SRC = $(ZLIB_FILES)
  30. ZLIB_INC = -I$(top_srcdir)/zlib123
  31. ZLIB_EXTRADIST =
  32. else
  33. ZLIB_SRC =
  34. ZLIB_INC =
  35. ZLIB_EXTRADIST = $(ZLIB_FILES)
  36. endif
  37. libphysfs_la_SOURCES = \
  38. physfs.c \
  39. physfs_internal.h \
  40. physfs_byteorder.c \
  41. archivers/dir.c \
  42. archivers/grp.c \
  43. archivers/wad.c \
  44. archivers/hog.c \
  45. archivers/mvl.c \
  46. archivers/zip.c \
  47. archivers/qpak.c \
  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.spec \
  73. physfs.dsp \
  74. test_physfs.dsp \
  75. physfs_static.dsp \
  76. physfs.vcproj \
  77. test_physfs.vcproj \
  78. platform/skeleton.c \
  79. platform/macclassic.c \
  80. platform/win32.c \
  81. platform/beos.cpp \
  82. platform/os2.c \
  83. extras/physfsrwops.h \
  84. extras/physfsrwops.c \
  85. extras/physfshttpd.c \
  86. Makefile.am.oldautomake \
  87. Makefile.am.newautomake \
  88. zlib_license_change.txt \
  89. makeos2.cmd \
  90. PBProjects \
  91. $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
  92. else
  93. SUBDIRS = platform archivers zlib123 . test extras
  94. libphysfs_la_SOURCES = \
  95. physfs.c \
  96. physfs_internal.h \
  97. physfs_byteorder.c
  98. if BUILD_ZLIB
  99. ZLIB_LIB = zlib123/libz.la
  100. else
  101. ZLIB_LIB =
  102. endif
  103. libphysfs_la_LDFLAGS = \
  104. -release $(LT_RELEASE) \
  105. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  106. libphysfs_la_LIBADD = \
  107. archivers/libarchivers.la \
  108. platform/libplatform.la \
  109. $(ZLIB_LIB)
  110. EXTRA_DIST = \
  111. CREDITS \
  112. LICENSE \
  113. CHANGELOG \
  114. INSTALL \
  115. TODO \
  116. Doxyfile \
  117. PBProjects \
  118. CWProjects.sit \
  119. physfs.spec.in \
  120. physfs.spec \
  121. physfs.dsp \
  122. test_physfs.dsp \
  123. physfs_static.dsp \
  124. physfs.vcproj \
  125. test_physfs.vcproj \
  126. zlib_license_change.txt \
  127. makeos2.cmd
  128. endif
  129. dist-hook:
  130. perl -w -pi -e 'chomp; $$_ .= "\r\n";' $(distdir)/*.dsp $(distdir)/*.vcproj
  131. mkdir $(distdir)/docs
  132. echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
  133. echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
  134. echo >> $(distdir)/docs/README
  135. rm -rf `find $(distdir) -name "CVS" -type d`
  136. rm -rf `find $(distdir) -name ".svn" -type d`