Makefile.am.newautomake 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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. archivers/mix.c \
  49. platform/unix.c \
  50. platform/posix.c \
  51. $(ZLIB_SRC)
  52. libphysfs_la_INCLUDES = $(ZLIB_INC)
  53. libphysfs_la_LDFLAGS = \
  54. -release $(LT_RELEASE) \
  55. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  56. if BUILD_TEST_PHYSFS
  57. bin_PROGRAMS = test_physfs
  58. test_physfs_INCLUDES = -I$(top_srcdir)
  59. test_physfs_LDADD = $(top_srcdir)/libphysfs.la
  60. test_physfs_SOURCES = test/test_physfs.c
  61. TEST_EXTRADIST =
  62. else
  63. TEST_EXTRADIST = test/test_physfs.c
  64. endif
  65. EXTRA_DIST = \
  66. CREDITS \
  67. LICENSE \
  68. CHANGELOG \
  69. INSTALL \
  70. TODO \
  71. Doxyfile \
  72. CWProjects.sit \
  73. physfs.spec \
  74. physfs.dsp \
  75. test_physfs.dsp \
  76. physfs_static.dsp \
  77. physfs.vcproj \
  78. test_physfs.vcproj \
  79. platform/skeleton.c \
  80. platform/macclassic.c \
  81. platform/win32.c \
  82. platform/beos.cpp \
  83. platform/os2.c \
  84. extras/physfsrwops.h \
  85. extras/physfsrwops.c \
  86. extras/physfshttpd.c \
  87. Makefile.am.oldautomake \
  88. Makefile.am.newautomake \
  89. zlib_license_change.txt \
  90. makeos2.cmd \
  91. PBProjects \
  92. $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
  93. else
  94. SUBDIRS = platform archivers zlib123 . test extras
  95. libphysfs_la_SOURCES = \
  96. physfs.c \
  97. physfs_internal.h \
  98. physfs_byteorder.c
  99. if BUILD_ZLIB
  100. ZLIB_LIB = zlib123/libz.la
  101. else
  102. ZLIB_LIB =
  103. endif
  104. libphysfs_la_LDFLAGS = \
  105. -release $(LT_RELEASE) \
  106. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  107. libphysfs_la_LIBADD = \
  108. archivers/libarchivers.la \
  109. platform/libplatform.la \
  110. $(ZLIB_LIB)
  111. EXTRA_DIST = \
  112. CREDITS \
  113. LICENSE \
  114. CHANGELOG \
  115. INSTALL \
  116. TODO \
  117. Doxyfile \
  118. PBProjects \
  119. CWProjects.sit \
  120. physfsMPW.make \
  121. physfs.spec.in \
  122. physfs.spec \
  123. physfs.dsp \
  124. test_physfs.dsp \
  125. physfs_static.dsp \
  126. physfs.vcproj \
  127. test_physfs.vcproj \
  128. zlib_license_change.txt \
  129. makeos2.cmd
  130. endif
  131. dist-hook:
  132. perl -w -pi -e 'chomp; $$_ .= "\r\n";' $(distdir)/*.dsp $(distdir)/*.vcproj
  133. mkdir $(distdir)/docs
  134. echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
  135. echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
  136. echo >> $(distdir)/docs/README
  137. rm -rf `find $(distdir) -name "CVS" -type d`
  138. rm -rf `find $(distdir) -name ".svn" -type d`