You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

295 lines
7.7 KiB

  1. # Copyright (c) 2007 Vreixo Formoso
  2. # Copyright (c) 2009 - 2019 Thomas Schmitt
  3. # Provided under the terms of the GNU General Public License version 2 or later.
  4. # ts A90315 : LIBBURNIA_PKGCONFDIR is defined OS specific in acinclude.m4
  5. # was: pkgconfigdir=$(libdir)/pkgconfig
  6. pkgconfigdir=$(LIBBURNIA_PKGCONFDIR)
  7. libincludedir=$(includedir)/libisofs
  8. lib_LTLIBRARIES = libisofs/libisofs.la
  9. ACLOCAL_AMFLAGS = -I ./
  10. # Enable this if the source includes generated files like version.h
  11. # AM_CPPFLAGS = -I $(top_builddir)/libisofs
  12. ## ========================================================================= ##
  13. # Build libraries
  14. libisofs_libisofs_la_LDFLAGS = \
  15. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(LIBLDFLAGS)
  16. # Eventually enabling system adapters for ACL and EA.
  17. # ts A90409: Eventually enabling use of zlib.
  18. # ts B00927: Eventually enabling use of libjte (Jigdo Template Extraction)
  19. libisofs_libisofs_la_CFLAGS = $(LIBACL_DEF) $(XATTR_DEF) $(ZLIB_DEF) \
  20. $(LIBJTE_DEF)
  21. # ts A90114 : added aaip_0_2.*
  22. libisofs_libisofs_la_SOURCES = \
  23. libisofs/builder.h \
  24. libisofs/builder.c \
  25. libisofs/node.h \
  26. libisofs/node.c \
  27. libisofs/tree.h \
  28. libisofs/tree.c \
  29. libisofs/find.c \
  30. libisofs/image.h \
  31. libisofs/image.c \
  32. libisofs/fsource.h \
  33. libisofs/fsource.c \
  34. libisofs/fs_local.c \
  35. libisofs/fs_image.c \
  36. libisofs/messages.h \
  37. libisofs/messages.c \
  38. libisofs/libiso_msgs.h \
  39. libisofs/libiso_msgs.c \
  40. libisofs/stream.h \
  41. libisofs/stream.c \
  42. libisofs/filter.h \
  43. libisofs/filter.c \
  44. libisofs/filters/external.c \
  45. libisofs/filters/zisofs.c \
  46. libisofs/filters/gzip.c \
  47. libisofs/util.h \
  48. libisofs/util.c \
  49. libisofs/util_rbtree.c \
  50. libisofs/util_htable.c \
  51. libisofs/filesrc.h \
  52. libisofs/filesrc.c \
  53. libisofs/ecma119.h \
  54. libisofs/ecma119.c \
  55. libisofs/ecma119_tree.h \
  56. libisofs/ecma119_tree.c \
  57. libisofs/writer.h \
  58. libisofs/buffer.h \
  59. libisofs/buffer.c \
  60. libisofs/rockridge.h \
  61. libisofs/rockridge.c \
  62. libisofs/rockridge_read.c \
  63. libisofs/joliet.h \
  64. libisofs/joliet.c \
  65. libisofs/hfsplus.h \
  66. libisofs/hfsplus.c \
  67. libisofs/hfsplus_decompose.c \
  68. libisofs/hfsplus_classes.c \
  69. libisofs/hfsplus_case.c \
  70. libisofs/eltorito.h \
  71. libisofs/eltorito.c \
  72. libisofs/system_area.h \
  73. libisofs/system_area.c \
  74. libisofs/make_isohybrid_mbr.c \
  75. libisofs/iso1999.h \
  76. libisofs/iso1999.c \
  77. libisofs/data_source.c \
  78. libisofs/aaip_0_2.h \
  79. libisofs/aaip_0_2.c \
  80. libisofs/md5.h \
  81. libisofs/md5.c
  82. libisofs_libisofs_la_LIBADD= \
  83. $(THREAD_LIBS)
  84. libinclude_HEADERS = \
  85. libisofs/libisofs.h
  86. install-exec-hook:
  87. $(LIBBURNIA_LDCONFIG_CMD) "$(DESTDIR)$(libdir)" || echo 'NOTE: Explicit dynamic library configuration failed. If needed, configure manually for:' "$(DESTDIR)$(libdir)"
  88. ## ========================================================================= ##
  89. ## Build demo applications
  90. noinst_PROGRAMS = \
  91. demo/demo
  92. # demo/tree \
  93. # demo/find \
  94. # demo/iso \
  95. # demo/isoread \
  96. # demo/isocat \
  97. # demo/isomodify \
  98. # demo/isoms
  99. # demo/ecma119tree \
  100. # demo/lsl \
  101. # demo/cat \
  102. # demo/catbuffer \
  103. # demo/isogrow
  104. # ts A90807
  105. # Consolidated demo code for having less linker messages with a make run.
  106. demo_demo_CPPFLAGS = -I $(top_srcdir)/libisofs
  107. demo_demo_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
  108. demo_demo_SOURCES = demo/demo.c
  109. # ts A90806
  110. # This includes fsource.h and thus is no API demo
  111. # demo_lsl_CPPFLAGS = -Ilibisofs
  112. # demo_lsl_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
  113. # demo_lsl_SOURCES = demo/lsl.c
  114. # ts A90806
  115. # This includes fsource.h and thus is no API demo
  116. # demo_cat_CPPFLAGS = -Ilibisofs
  117. # demo_cat_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
  118. # demo_cat_SOURCES = demo/cat.c
  119. # ts A90806
  120. # This inlcudes buffer.h and thus is no API demo
  121. # demo_catbuffer_CPPFLAGS = -Ilibisofs
  122. # demo_catbuffer_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  123. # $(libisofs_libisofs_la_LIBADD)
  124. # demo_catbuffer_SOURCES = demo/cat_buffer.c
  125. # ts A90807
  126. # Consolidated in demo/demo
  127. # demo_tree_CPPFLAGS = -Ilibisofs
  128. # demo_tree_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  129. # $(libisofs_libisofs_la_LIBADD)
  130. # demo_tree_SOURCES = demo/tree.c
  131. # ts A90807
  132. # Consolidated in demo/demo
  133. # demo_find_CPPFLAGS = -Ilibisofs
  134. # demo_find_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  135. # $(libisofs_libisofs_la_LIBADD)
  136. # demo_find_SOURCES = demo/find.c
  137. # ts A90806
  138. # This inlcudes lots of internal .h files and thus is no API demo
  139. # demo_ecma119tree_CPPFLAGS = -Ilibisofs
  140. # demo_ecma119tree_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  141. # $(libisofs_libisofs_la_LIBADD)
  142. # demo_ecma119tree_SOURCES = demo/ecma119_tree.c
  143. # ts A90807
  144. # Consolidated in demo/demo
  145. # demo_iso_CPPFLAGS = -Ilibisofs
  146. # demo_iso_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
  147. # demo_iso_SOURCES = demo/iso.c
  148. # ts A90807
  149. # Consolidated in demo/demo
  150. # demo_isoread_CPPFLAGS = -Ilibisofs
  151. # demo_isoread_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  152. # $(libisofs_libisofs_la_LIBADD)
  153. # demo_isoread_SOURCES = demo/iso_read.c
  154. # ts A90807
  155. # Consolidated in demo/demo
  156. # demo_isocat_CPPFLAGS = -Ilibisofs
  157. # demo_isocat_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  158. # $(libisofs_libisofs_la_LIBADD)
  159. # demo_isocat_SOURCES = demo/iso_cat.c
  160. # ts A90807
  161. # Consolidated in demo/demo
  162. # demo_isomodify_CPPFLAGS = -Ilibisofs
  163. # demo_isomodify_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  164. # $(libisofs_libisofs_la_LIBADD)
  165. # demo_isomodify_SOURCES = demo/iso_modify.c
  166. # ts A90807
  167. # Consolidated in demo/demo
  168. # demo_isoms_CPPFLAGS = -Ilibisofs
  169. # demo_isoms_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  170. # $(libisofs_libisofs_la_LIBADD)
  171. # demo_isoms_SOURCES = demo/iso_ms.c
  172. # demo_isogrow_CPPFLAGS = -Ilibisofs -Ilibburn
  173. # demo_isogrow_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  174. # $(libisofs_libisofs_la_LIBADD) \
  175. # -lburn
  176. # demo_isogrow_SOURCES = demo/iso_grow.c
  177. ## ts A90428 , ticket 147, The test code does not use the API and is totally
  178. ## outdated in its creation of mocked objects.
  179. ## A volunteer is needed to rewrite it using the API.
  180. # ## Build unit test
  181. # check_PROGRAMS = \
  182. # test/test
  183. #
  184. # test_test_CPPFLAGS = -Ilibisofs
  185. # test_test_LDADD = $(libisofs_libisofs_la_OBJECTS) \
  186. # $(libisofs_libisofs_la_LIBADD) -lcunit
  187. # test_test_LDFLAGS = -L.. -lm
  188. #
  189. # test_test_SOURCES = \
  190. # test/test.h \
  191. # test/test.c \
  192. # test/test_node.c \
  193. # test/test_image.c \
  194. # test/test_tree.c \
  195. # test/test_util.c \
  196. # test/test_rockridge.c \
  197. # test/test_stream.c \
  198. # test/mocked_fsrc.h \
  199. # test/mocked_fsrc.c
  200. # "make clean" shall remove a few stubborn .libs directories
  201. # which George Danchev reported Dec 03 2011.
  202. # Learned from: http://www.gnu.org/software/automake/manual/automake.html#Clean
  203. clean-local:
  204. -rm -rf demo/.libs
  205. ## ========================================================================= ##
  206. ## Build documentation (You need Doxygen for this to work)
  207. docdir = $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)-$(VERSION)
  208. doc: doc/html
  209. doc/html: doc/doxygen.conf
  210. $(RM) -r doc/html; \
  211. doxygen doc/doxygen.conf;
  212. install-data-local:
  213. if [ -d doc/html ]; then \
  214. $(mkinstalldirs) $(docdir)/html; \
  215. $(INSTALL_DATA) doc/html/* $(docdir)/html; \
  216. fi
  217. uninstall-local:
  218. rm -rf $(docdir)
  219. ## ========================================================================= ##
  220. # Extra things
  221. nodist_pkgconfig_DATA = \
  222. libisofs-1.pc
  223. # ts A80114 : added aaip-os*
  224. EXTRA_DIST = \
  225. bootstrap \
  226. libisofs-1.pc.in \
  227. version.h.in \
  228. doc/doxygen.conf.in \
  229. doc/Tutorial \
  230. README \
  231. AUTHORS \
  232. COPYRIGHT \
  233. COPYING \
  234. NEWS \
  235. INSTALL \
  236. TODO \
  237. ChangeLog \
  238. Roadmap \
  239. doc/susp_aaip_2_0.txt \
  240. doc/susp_aaip_isofs_names.txt \
  241. doc/zisofs_format.txt \
  242. doc/checksums.txt \
  243. doc/boot_sectors.txt \
  244. libisofs/libisofs.ver \
  245. libisofs/aaip-os-dummy.c \
  246. libisofs/aaip-os-linux.c \
  247. libisofs/aaip-os-freebsd.c