Makefile.am.newautomake 3.1 KB

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