Makefile.am.newautomake 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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/hog.c \
  46. archivers/mvl.c \
  47. archivers/zip.c \
  48. archivers/qpak.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. platform/skeleton.c \
  77. platform/macclassic.c \
  78. platform/win32.c \
  79. platform/beos.cpp \
  80. platform/os2.c \
  81. extras/physfsrwops.h \
  82. extras/physfsrwops.c \
  83. extras/physfshttpd.c \
  84. Makefile.am.oldautomake \
  85. Makefile.am.newautomake \
  86. makeos2.cmd \
  87. $(ZLIB_EXTRADIST) $(BEOS_EXTRADIST) $(TEST_EXTRADIST)
  88. else
  89. SUBDIRS = platform archivers zlib114 . test extras
  90. libphysfs_la_SOURCES = \
  91. physfs.c \
  92. physfs_internal.h \
  93. physfs_byteorder.c
  94. if BUILD_ZLIB
  95. ZLIB_LIB = zlib114/libz.la
  96. else
  97. ZLIB_LIB =
  98. endif
  99. libphysfs_la_LDFLAGS = \
  100. -release $(LT_RELEASE) \
  101. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  102. libphysfs_la_LIBADD = \
  103. archivers/libarchivers.la \
  104. platform/libplatform.la \
  105. $(ZLIB_LIB)
  106. EXTRA_DIST = \
  107. CREDITS \
  108. LICENSE \
  109. CHANGELOG \
  110. INSTALL \
  111. TODO \
  112. Doxyfile \
  113. CWProjects.sit \
  114. physfs.spec.in \
  115. physfs.spec \
  116. physfs.dsp \
  117. test_physfs.dsp \
  118. makeos2.cmd
  119. endif
  120. dist-hook:
  121. mkdir $(distdir)/docs
  122. echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
  123. echo " or can be read online at http://icculus.org/physfs/docs/" >> $(distdir)/docs/README
  124. echo >> $(distdir)/docs/README
  125. rm -rf `find $(distdir) -name "CVS" -type d`