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.
 
 
 
 
 
 

320 lines
8.6 KiB

  1. # Copyright (C) 2006 - 2008 Vreixo Formoso <metalpain2002@yahoo.es>
  2. # Copyright (C) 2008 - 2019 Thomas Schmitt <scdbackup@gmx.net>
  3. # Provided under GPL 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)/libisoburn
  8. lib_LTLIBRARIES = libisoburn/libisoburn.la
  9. ACLOCAL_AMFLAGS = -I ./
  10. ## ========================================================================= ##
  11. # Build libraries
  12. libisoburn_libisoburn_la_LDFLAGS = \
  13. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(LIBLDFLAGS)
  14. libisoburn_libisoburn_la_SOURCES = \
  15. libisoburn/isoburn.h \
  16. libisoburn/libisoburn.h \
  17. libisoburn/burn_wrap.c \
  18. libisoburn/data_source.c \
  19. libisoburn/isoburn.c \
  20. libisoburn/isofs_wrap.c \
  21. \
  22. xorriso/xorriso.h \
  23. xorriso/xorriso_private.h \
  24. xorriso/sfile.h \
  25. xorriso/sfile.c \
  26. xorriso/aux_objects.h \
  27. xorriso/aux_objects.c \
  28. xorriso/findjob.h \
  29. xorriso/findjob.c \
  30. xorriso/check_media.h \
  31. xorriso/check_media.c \
  32. xorriso/misc_funct.h \
  33. xorriso/misc_funct.c \
  34. xorriso/text_io.h \
  35. xorriso/text_io.c \
  36. xorriso/match.h \
  37. xorriso/match.c \
  38. xorriso/emulators.h \
  39. xorriso/emulators.c \
  40. xorriso/disk_ops.h \
  41. xorriso/disk_ops.c \
  42. xorriso/cmp_update.h \
  43. xorriso/cmp_update.c \
  44. xorriso/parse_exec.h \
  45. xorriso/parse_exec.c \
  46. xorriso/opts_a_c.c \
  47. xorriso/opts_d_h.c \
  48. xorriso/opts_i_o.c \
  49. xorriso/opts_p_z.c \
  50. \
  51. xorriso/xorrisoburn.h \
  52. xorriso/base_obj.h \
  53. xorriso/base_obj.c \
  54. xorriso/lib_mgt.h \
  55. xorriso/lib_mgt.c \
  56. xorriso/sort_cmp.h \
  57. xorriso/sort_cmp.c \
  58. xorriso/drive_mgt.h \
  59. xorriso/drive_mgt.c \
  60. xorriso/iso_img.h \
  61. xorriso/iso_img.c \
  62. xorriso/iso_tree.h \
  63. xorriso/iso_tree.c \
  64. xorriso/iso_manip.h \
  65. xorriso/iso_manip.c \
  66. xorriso/write_run.h \
  67. xorriso/write_run.c \
  68. xorriso/read_run.h \
  69. xorriso/read_run.c \
  70. xorriso/filters.h \
  71. xorriso/filters.c \
  72. xorriso/xorriso_timestamp.h \
  73. xorriso/xorriso_buildstamp.h
  74. libisoburn_libisoburn_la_LIBADD = \
  75. $(THREAD_LIBS) \
  76. -lisofs \
  77. -lburn
  78. libinclude_HEADERS = \
  79. libisoburn/libisoburn.h \
  80. xorriso/xorriso.h
  81. # libisoburn_libisoburn_la_CFLAGS = $(READLINE_DEF) $(LIBACL_DEF) $(XATTR_DEF) \
  82. # $(EXTF_DEF) $(EXTF_SUID_DEF) $(ZLIB_DEF) \
  83. # $(XORRISO_DVD_OBS_64K)
  84. ## ========================================================================= ##
  85. # This is the reference application of libisoburn. See man xorriso/xorriso.1
  86. #
  87. bin_PROGRAMS = \
  88. xorriso/xorriso
  89. # This looks quite ugly with make install: xorriso.c is compiled twice again
  90. #
  91. # Trying to create a build timestamp file
  92. #
  93. # BUILT_SOURCES = xorriso/xorriso_buildstamp.h
  94. #
  95. # phony targets get rebuilt every time
  96. #
  97. # .PHONY: xorriso/xorriso_buildstamp.h
  98. # xorriso/xorriso_buildstamp.h:
  99. # date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h
  100. # cat xorriso/xorriso_buildstamp.h
  101. xorriso_xorriso_CPPFLAGS = -Ilibisoburn
  102. # xorriso_xorriso_CFLAGS = $(READLINE_DEF) $(LIBACL_DEF) $(XATTR_DEF) \
  103. # $(EXTF_DEF) $(EXTF_SUID_DEF) $(ZLIB_DEF) \
  104. # $(XORRISO_DVD_OBS_64K)
  105. xorriso_xorriso_LDADD = libisoburn/libisoburn.la -lisofs -lburn \
  106. $(THREAD_LIBS) $(LIBBURN_ARCH_LIBS)
  107. xorriso_xorriso_SOURCES = \
  108. xorriso/xorriso.h \
  109. xorriso/xorriso_main.c
  110. # Install symbolic links to the xorriso binary
  111. #
  112. install-exec-hook:
  113. if test -e "$(DESTDIR)$(bindir)"/xorrisofs ; then rm "$(DESTDIR)$(bindir)"/xorrisofs ; else echo ; fi
  114. ln -s xorriso "$(DESTDIR)$(bindir)"/xorrisofs
  115. if test -e "$(DESTDIR)$(bindir)"/osirrox ; then rm "$(DESTDIR)$(bindir)"/osirrox ; else echo ; fi
  116. ln -s xorriso "$(DESTDIR)$(bindir)"/osirrox
  117. if test -e "$(DESTDIR)$(bindir)"/xorrecord ; then rm "$(DESTDIR)$(bindir)"/xorrecord ; else echo ; fi
  118. ln -s xorriso "$(DESTDIR)$(bindir)"/xorrecord
  119. $(LIBBURNIA_LDCONFIG_CMD) "$(DESTDIR)$(libdir)" || echo 'NOTE: Explicit dynamic library configuration failed. If needed, configure manually for:' "$(DESTDIR)$(libdir)"
  120. # Alternative to the disabled .PHONY above.
  121. # Trying to create a build timestamp file semi-manually: make buildstamped
  122. #
  123. buildstamp:
  124. date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h
  125. cat xorriso/xorriso_buildstamp.h
  126. # For now make buildstamped has to be performed explicitly.
  127. buildstamped: buildstamp
  128. make
  129. # "make clean" shall remove a few stubborn .libs directories
  130. # which George Danchev reported Dec 03 2011.
  131. # Learned from: http://www.gnu.org/software/automake/manual/automake.html#Clean
  132. clean-local:
  133. -rm -rf test/.libs
  134. # Will be executed by "make check"
  135. check-local:
  136. xorriso/xorriso -no_rc -version -list_extras all
  137. ## Build companion applications
  138. noinst_PROGRAMS = \
  139. test/compare_file \
  140. xorriso/make_xorriso_1
  141. # A program to compare two files in mirrored trees in mounted filesystems
  142. # To compare tree /media/dvd and /original/dir :
  143. # find /media/dvd -exec test/compare_file '{}' /media/dvd /original/dir ';'
  144. #
  145. test_compare_file_CPPFLAGS =
  146. test_compare_file_CFLAGS =
  147. test_compare_file_LDADD =
  148. test_compare_file_SOURCES = test/compare_file.c
  149. # Specialized converter from xorriso/xorriso.texi to xorriso/xorriso.1
  150. #
  151. xorriso_make_xorriso_1_CPPFLAGS =
  152. xorriso_make_xorriso_1_CFLAGS =
  153. xorriso_make_xorriso_1_LDADD =
  154. xorriso_make_xorriso_1_SOURCES = xorriso/make_xorriso_1.c
  155. # A Proof-of-concept for frontends, and xorriso-dd-target if on Linux kernel
  156. bin_SCRIPTS = \
  157. frontend/xorriso-tcltk \
  158. $(XORRISO_DD_TARGET)
  159. EXTRA_SCRIPTS = xorriso-dd-target/xorriso-dd-target
  160. ## ========================================================================= ##
  161. ## Build documentation (You need Doxygen for this to work)
  162. webhost = http://libburn-api.pykix.org
  163. webpath = /
  164. docdir = $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)-$(VERSION)
  165. doc: doc/html
  166. doc/html: doc/doxygen.conf
  167. if [ -f ./doc/doc.lock ]; then \
  168. $(RM) -r doc/html; \
  169. doxygen doc/doxygen.conf; \
  170. fi
  171. doc-upload: doc/html
  172. scp -r $</* $(webhost):$(webpath)
  173. ## Not by default any more.
  174. ## It is unclear who is supposed to create file ./doc/doc.lock
  175. # all: doc
  176. install-data-local:
  177. if [ -f ./doc/doc.lock ]; then \
  178. $(mkinstalldirs) $(docdir)/html; \
  179. $(INSTALL_DATA) doc/html/* $(docdir)/html; \
  180. fi
  181. uninstall-local:
  182. rm -rf $(docdir)
  183. ## ========================================================================= ##
  184. # Indent source files
  185. indent_files = \
  186. $(libisoburn_libisoburn_la_SOURCES)
  187. indent: $(indent_files)
  188. indent -bad -bap -nbbb -nbbo -nbc -bli0 -br -bls \
  189. -cdw -ce -cli0 -ncs -nbfda -i8 -l79 -lc79 \
  190. -lp -saf -sai -nprs -npsl -saw -sob -ss -ut \
  191. -sbi0 -nsc -ts8 -npcs -ncdb -fca \
  192. $^
  193. .PHONY: indent
  194. ## ========================================================================= ##
  195. # Extra things
  196. nodist_pkgconfig_DATA = \
  197. libisoburn-1.pc
  198. man_MANS = \
  199. xorriso/xorriso.1 \
  200. xorriso/xorrisofs.1 \
  201. xorriso/xorrecord.1 \
  202. xorriso/xorriso-tcltk.1 \
  203. $(XORRISO_DD_TARGET_MAN)
  204. EXTRA_MANS = xorriso-dd-target/xorriso-dd-target.1
  205. info_TEXINFOS = \
  206. xorriso/xorriso.texi \
  207. xorriso/xorrisofs.texi \
  208. xorriso/xorrecord.texi \
  209. xorriso/xorriso-tcltk.texi \
  210. xorriso-dd-target/xorriso-dd-target.texi
  211. # xorriso-dd-target.texi is hardcoded for now because of
  212. # Makefile.am: error: texinfo file '@XORRISO_DD_TARGET_TEXI@' has
  213. # unrecognized extension
  214. # $(XORRISO_DD_TARGET_TEXI)
  215. #
  216. # EXTRA_TEXINFOS = xorriso-dd-target/xorriso-dd-target.texi
  217. # To have a file in releng_generated_data. If the directory itself is listed
  218. # in Makefile.am EXTRA_DIST, then its .svn subdir gets into the tarball.
  219. releng/releng_generated_data/placeholder:
  220. touch releng/releng_generated_data/placeholder
  221. EXTRA_DIST = \
  222. bootstrap \
  223. libisoburn-1.pc.in \
  224. version.h.in \
  225. doc/comments \
  226. doc/doxygen.conf.in \
  227. doc/partition_offset.wiki \
  228. doc/qemu_xorriso.wiki \
  229. doc/startup_file.txt \
  230. frontend/frontend_pipes_xorriso.c \
  231. frontend/README-tcltk \
  232. frontend/xorriso-tcltk \
  233. frontend/sh_on_named_pipes.sh \
  234. frontend/xorriso_broker.sh \
  235. frontend/grub-mkrescue-sed.sh \
  236. xorriso-dd-target/xorriso-dd-target \
  237. README \
  238. AUTHORS \
  239. CONTRIBUTORS \
  240. COPYRIGHT \
  241. COPYING \
  242. INSTALL \
  243. ChangeLog \
  244. libisoburn/libisoburn.ver \
  245. xorriso/changelog.txt \
  246. xorriso/xorriso_buildstamp_none.h \
  247. xorriso/README_gnu_xorriso \
  248. xorriso/make_docs.sh \
  249. releng/README \
  250. releng/auto_cxx \
  251. releng/auto_isocontent \
  252. releng/auto_printsize \
  253. releng/change_shell_to_use \
  254. releng/codesamples/api_3lib.cpp \
  255. releng/codesamples/api_xorriso.cpp \
  256. releng/inc/releng_getopts.inc \
  257. releng/jigdo-gen-md5-list \
  258. releng/jigdo-gen-md5-list.1 \
  259. releng/manual_burn \
  260. releng/manual_devices \
  261. releng/manual_isojigdo \
  262. releng/releng_generated_data/placeholder \
  263. releng/run_all_auto \
  264. releng/template_new \
  265. $(man_MANS)