Makefile.am.newautomake 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. lib_LTLIBRARIES = libphysfs.la
  2. libphysfsincludedir = $(includedir)
  3. libphysfsinclude_HEADERS = \
  4. physfs.h
  5. if BUILD_MACOSX
  6. ZLIB_FILES = zlib121/adler32.c \
  7. zlib121/compress.c \
  8. zlib121/crc32.c \
  9. zlib121/crc32.h \
  10. zlib121/deflate.c \
  11. zlib121/deflate.h \
  12. zlib121/gzio.c \
  13. zlib121/infback.c \
  14. zlib121/inffast.c \
  15. zlib121/inffast.h \
  16. zlib121/inffixed.h \
  17. zlib121/inflate.c \
  18. zlib121/inflate.h \
  19. zlib121/inftrees.c \
  20. zlib121/inftrees.h \
  21. zlib121/trees.c \
  22. zlib121/trees.h \
  23. zlib121/uncompr.c \
  24. zlib121/zconf.h \
  25. zlib121/zlib.h \
  26. zlib121/zutil.c \
  27. zlib121/zutil.h
  28. if BUILD_ZLIB
  29. ZLIB_SRC = $(ZLIB_FILES)
  30. ZLIB_INC = -I$(top_srcdir)/zlib121
  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. platform/skeleton.c \
  76. platform/macclassic.c \
  77. platform/win32.c \
  78. platform/beos.cpp \
  79. platform/os2.c \
  80. extras/physfsrwops.h \
  81. extras/physfsrwops.c \
  82. extras/physfshttpd.c \
  83. Makefile.am.oldautomake \
  84. Makefile.am.newautomake \
  85. makeos2.cmd \
  86. $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
  87. else
  88. SUBDIRS = platform archivers zlib121 . test extras
  89. libphysfs_la_SOURCES = \
  90. physfs.c \
  91. physfs_internal.h \
  92. physfs_byteorder.c
  93. if BUILD_ZLIB
  94. ZLIB_LIB = zlib121/libz.la
  95. else
  96. ZLIB_LIB =
  97. endif
  98. libphysfs_la_LDFLAGS = \
  99. -release $(LT_RELEASE) \
  100. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  101. libphysfs_la_LIBADD = \
  102. archivers/libarchivers.la \
  103. platform/libplatform.la \
  104. $(ZLIB_LIB)
  105. EXTRA_DIST = \
  106. CREDITS \
  107. LICENSE \
  108. CHANGELOG \
  109. INSTALL \
  110. TODO \
  111. Doxyfile \
  112. CWProjects.sit \
  113. physfs.spec.in \
  114. physfs.spec \
  115. physfs.dsp \
  116. test_physfs.dsp \
  117. makeos2.cmd
  118. endif
  119. dist-hook:
  120. mkdir $(distdir)/docs
  121. echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
  122. echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
  123. echo >> $(distdir)/docs/README
  124. rm -rf `find $(distdir) -name "CVS" -type d`