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