1 2 # Copyright (c) 2007 - 2019 Thomas Schmitt <scdbackup@gmx.net> 3 # Provided under GPL version 2 or later. 4 5 # ts A90315 : LIBBURNIA_PKGCONFDIR is defined OS specific in acinclude.m4 6 # was: pkgconfigdir=$(libdir)/pkgconfig 7 pkgconfigdir=$(LIBBURNIA_PKGCONFDIR) 8 9 libincludedir= 10 11 lib_LTLIBRARIES = 12 ACLOCAL_AMFLAGS = -I ./ 13 14 ## ========================================================================= ## 15 16 libinclude_HEADERS = 17 18 ## ========================================================================= ## 19 20 bin_PROGRAMS = \ 21 xorriso/xorriso 22 23 xorriso_xorriso_CPPFLAGS = -I./libburn -I./libisofs -I./libisoburn -I./xorriso 24 25 # ts B00518 : The configuration macros are now transmitted via config.h 26 # xorriso_xorriso_CFLAGS = -DXorriso_standalonE \ 27 # $(READLINE_DEF) $(LIBACL_DEF) $(XATTR_DEF) \ 28 # $(EXTF_DEF) $(EXTF_SUID_DEF) $(ZLIB_DEF) \ 29 # $(LIBCDIO_DEF) \ 30 # $(XORRISO_DVD_OBS_64K) $(LIBBURN_O_DIRECT_DEF) 31 xorriso_xorriso_CFLAGS = 32 33 xorriso_xorriso_LDADD = $(THREAD_LIBS) $(LIBBURN_ARCH_LIBS) 34 35 36 xorriso_xorriso_SOURCES = \ 37 \ 38 xorriso/xorriso.h \ 39 xorriso/xorriso_private.h \ 40 xorriso/xorriso_main.c \ 41 xorriso/sfile.h \ 42 xorriso/sfile.c \ 43 xorriso/aux_objects.h \ 44 xorriso/aux_objects.c \ 45 xorriso/findjob.h \ 46 xorriso/findjob.c \ 47 xorriso/check_media.h \ 48 xorriso/check_media.c \ 49 xorriso/misc_funct.h \ 50 xorriso/misc_funct.c \ 51 xorriso/text_io.h \ 52 xorriso/text_io.c \ 53 xorriso/match.h \ 54 xorriso/match.c \ 55 xorriso/emulators.h \ 56 xorriso/emulators.c \ 57 xorriso/disk_ops.h \ 58 xorriso/disk_ops.c \ 59 xorriso/cmp_update.h \ 60 xorriso/cmp_update.c \ 61 xorriso/parse_exec.h \ 62 xorriso/parse_exec.c \ 63 xorriso/opts_a_c.c \ 64 xorriso/opts_d_h.c \ 65 xorriso/opts_i_o.c \ 66 xorriso/opts_p_z.c \ 67 \ 68 xorriso/xorrisoburn.h \ 69 xorriso/base_obj.h \ 70 xorriso/base_obj.c \ 71 xorriso/lib_mgt.h \ 72 xorriso/lib_mgt.c \ 73 xorriso/sort_cmp.h \ 74 xorriso/sort_cmp.c \ 75 xorriso/drive_mgt.h \ 76 xorriso/drive_mgt.c \ 77 xorriso/iso_img.h \ 78 xorriso/iso_img.c \ 79 xorriso/iso_tree.h \ 80 xorriso/iso_tree.c \ 81 xorriso/iso_manip.h \ 82 xorriso/iso_manip.c \ 83 xorriso/write_run.h \ 84 xorriso/write_run.c \ 85 xorriso/read_run.h \ 86 xorriso/read_run.c \ 87 xorriso/filters.h \ 88 xorriso/filters.c \ 89 \ 90 xorriso/xorriso_timestamp.h \ 91 xorriso/xorriso_buildstamp.h \ 92 \ 93 libisoburn/libisoburn.h \ 94 libisoburn/isoburn.h \ 95 libisoburn/isoburn.c \ 96 libisoburn/isofs_wrap.c \ 97 libisoburn/burn_wrap.c \ 98 libisoburn/data_source.c \ 99 \ 100 libisofs/libisofs.h \ 101 libisofs/builder.h \ 102 libisofs/builder.c \ 103 libisofs/node.h \ 104 libisofs/node.c \ 105 libisofs/tree.h \ 106 libisofs/tree.c \ 107 libisofs/image.h \ 108 libisofs/image.c \ 109 libisofs/iso1999.h \ 110 libisofs/iso1999.c \ 111 libisofs/fsource.h \ 112 libisofs/fsource.c \ 113 libisofs/fs_local.c \ 114 libisofs/fs_image.c \ 115 libisofs/messages.h \ 116 libisofs/messages.c \ 117 libisofs/libiso_msgs.h \ 118 libisofs/libiso_msgs.c \ 119 libisofs/stream.h \ 120 libisofs/stream.c \ 121 libisofs/util.h \ 122 libisofs/util.c \ 123 libisofs/util_rbtree.c \ 124 libisofs/util_htable.c \ 125 libisofs/filesrc.h \ 126 libisofs/filesrc.c \ 127 libisofs/ecma119.h \ 128 libisofs/ecma119.c \ 129 libisofs/ecma119_tree.h \ 130 libisofs/ecma119_tree.c \ 131 libisofs/writer.h \ 132 libisofs/buffer.h \ 133 libisofs/buffer.c \ 134 libisofs/rockridge.h \ 135 libisofs/rockridge.c \ 136 libisofs/rockridge_read.c \ 137 libisofs/joliet.h \ 138 libisofs/joliet.c \ 139 libisofs/hfsplus.h \ 140 libisofs/hfsplus.c \ 141 libisofs/hfsplus_decompose.c \ 142 libisofs/hfsplus_classes.c \ 143 libisofs/hfsplus_case.c \ 144 libisofs/eltorito.h \ 145 libisofs/eltorito.c \ 146 libisofs/data_source.c \ 147 libisofs/find.c \ 148 libisofs/filter.h \ 149 libisofs/filter.c \ 150 libisofs/filters/external.c \ 151 libisofs/filters/zisofs.c \ 152 libisofs/filters/gzip.c \ 153 libisofs/system_area.h \ 154 libisofs/system_area.c \ 155 libisofs/make_isohybrid_mbr.c \ 156 libisofs/aaip_0_2.h \ 157 libisofs/aaip_0_2.c \ 158 libisofs/md5.h \ 159 libisofs/md5.c \ 160 \ 161 libjte/libjte.h \ 162 libjte/libjte_private.h \ 163 libjte/libjte.c \ 164 libjte/jte.h \ 165 libjte/jte.c \ 166 libjte/checksum.h \ 167 libjte/checksum.c \ 168 libjte/endian.c \ 169 libjte/endianconv.h \ 170 libjte/md5.h \ 171 libjte/md5.c \ 172 libjte/rsync.h \ 173 libjte/rsync.c \ 174 libjte/sha1.h \ 175 libjte/sha1.c \ 176 libjte/sha256.h \ 177 libjte/sha256.c \ 178 libjte/sha512.h \ 179 libjte/sha512.c \ 180 \ 181 libburn/async.c \ 182 libburn/async.h \ 183 libburn/back_hacks.h \ 184 libburn/cdtext.c \ 185 libburn/cleanup.c \ 186 libburn/cleanup.h \ 187 libburn/crc.h \ 188 libburn/debug.c \ 189 libburn/debug.h \ 190 libburn/drive.c \ 191 libburn/drive.h \ 192 libburn/ecma130ab.c \ 193 libburn/ecma130ab.h \ 194 libburn/error.h \ 195 libburn/file.c \ 196 libburn/file.h \ 197 libburn/init.c \ 198 libburn/init.h \ 199 libburn/libburn.h \ 200 libburn/libdax_audioxtr.h \ 201 libburn/libdax_audioxtr.c \ 202 libburn/libdax_msgs.h \ 203 libburn/libdax_msgs.c \ 204 libburn/mmc.c \ 205 libburn/mmc.h \ 206 libburn/null.c \ 207 libburn/null.h \ 208 libburn/options.c \ 209 libburn/options.h \ 210 libburn/os.h \ 211 libburn/read.c \ 212 libburn/read.h \ 213 libburn/sbc.c \ 214 libburn/sbc.h \ 215 libburn/sector.c \ 216 libburn/sector.h \ 217 libburn/sg.c \ 218 libburn/sg.h \ 219 libburn/source.h \ 220 libburn/source.c \ 221 libburn/spc.c \ 222 libburn/spc.h \ 223 libburn/structure.c \ 224 libburn/structure.h \ 225 libburn/toc.c \ 226 libburn/toc.h \ 227 libburn/transport.h \ 228 libburn/util.c \ 229 libburn/util.h \ 230 libburn/write.c \ 231 libburn/write.h 232 233 # Disabled because unneeded and of unclear ancestry 234 # libburn/crc.c 235 236 noinst_PROGRAMS = \ 237 test/compare_file \ 238 xorriso/make_xorriso_1 239 240 241 # A program to compare two trees of files in mounted filesystems 242 # To compare tree /media/dvd and /original/dir : 243 # find /media/dvd -exec test/compare_file '{}' /media/dvd /original/dir ';' 244 # 245 test_compare_file_CPPFLAGS = -I $(top_builddir)/xorriso 246 test_compare_file_CFLAGS = 247 test_compare_file_LDADD = 248 test_compare_file_SOURCES = test/compare_file.c 249 250 # Specialized converter from xorriso/xorriso.texi to xorriso/xorriso.1 251 # 252 xorriso_make_xorriso_1_CPPFLAGS = -I $(top_builddir)/xorriso 253 xorriso_make_xorriso_1_CFLAGS = 254 xorriso_make_xorriso_1_LDADD = 255 xorriso_make_xorriso_1_SOURCES = xorriso/make_xorriso_1.c 256 257 258 # A Proof-of-concept for frontends, and xorriso-dd-target if on Linux kernel 259 bin_SCRIPTS = \ 260 frontend/xorriso-tcltk \ 261 $(XORRISO_DD_TARGET) 262 263 EXTRA_SCRIPTS = xorriso-dd-target/xorriso-dd-target 264 265 266 # Install symbolic links to the xorriso binary 267 # 268 install-exec-hook: 269 if test -e "$(DESTDIR)$(bindir)"/xorrisofs ; then rm "$(DESTDIR)$(bindir)"/xorrisofs ; else echo ; fi 270 ln -s xorriso "$(DESTDIR)$(bindir)"/xorrisofs 271 if test -e "$(DESTDIR)$(bindir)"/osirrox ; then rm "$(DESTDIR)$(bindir)"/osirrox ; else echo ; fi 272 ln -s xorriso "$(DESTDIR)$(bindir)"/osirrox 273 if test -e "$(DESTDIR)$(bindir)"/xorrecord ; then rm "$(DESTDIR)$(bindir)"/xorrecord ; else echo ; fi 274 ln -s xorriso "$(DESTDIR)$(bindir)"/xorrecord 275 276 277 278 # Trying to create a build timestamp file semi-manually: make buildstamped 279 # 280 buildstamp: 281 date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h 282 cat xorriso/xorriso_buildstamp.h 283 284 # For now make buildstamped has to be performed manually. 285 buildstamped: buildstamp 286 make 287 288 # "make clean" shall remove a few stubborn .libs directories 289 # which George Danchev reported Dec 03 2011. 290 # Learned from: http://www.gnu.org/software/automake/manual/automake.html#Clean 291 clean-local: 292 -rm -rf xorriso/.libs test/.libs 293 294 # Will be executed by "make check" 295 check-local: 296 xorriso/xorriso -no_rc -version -list_extras all 297 298 ## ========================================================================= ## 299 300 # Indent source files 301 indent_files = 302 303 304 indent: $(indent_files) 305 indent -bad -bap -nbbb -nbbo -nbc -bli0 -br -bls \ 306 -cdw -ce -cli0 -ncs -nbfda -i8 -l79 -lc79 \ 307 -lp -saf -sai -nprs -npsl -saw -sob -ss -ut \ 308 -sbi0 -nsc -ts8 -npcs -ncdb -fca \ 309 $^ 310 311 .PHONY: indent 312 313 ## ========================================================================= ## 314 315 # Extra things 316 317 man_MANS = \ 318 xorriso/xorriso.1 \ 319 xorriso/xorrisofs.1 \ 320 xorriso/xorrecord.1 \ 321 xorriso/xorriso-tcltk.1 \ 322 $(XORRISO_DD_TARGET_MAN) 323 324 EXTRA_MANS = xorriso-dd-target/xorriso-dd-target.1 325 326 info_TEXINFOS = \ 327 xorriso/xorriso.texi \ 328 xorriso/xorrisofs.texi \ 329 xorriso/xorrecord.texi \ 330 xorriso/xorriso-tcltk.texi \ 331 xorriso-dd-target/xorriso-dd-target.texi 332 333 # xorriso-dd-target.texi is hardcoded for now because of 334 # Makefile.am: error: texinfo file '@XORRISO_DD_TARGET_TEXI@' has 335 # unrecognized extension 336 # $(XORRISO_DD_TARGET_TEXI) 337 # 338 # EXTRA_TEXINFOS = xorriso-dd-target/xorriso-dd-target.texi 339 340 EXTRA_DIST = \ 341 xorriso.pc.in \ 342 version.h.in \ 343 README \ 344 AUTHORS \ 345 CONTRIBUTORS \ 346 COPYRIGHT \ 347 COPYING \ 348 INSTALL \ 349 xorriso/changelog.txt \ 350 xorriso/xorriso_buildstamp_none.h \ 351 xorriso/make_docs.sh \ 352 $(man_MANS) \ 353 doc/susp_aaip_2_0.txt \ 354 doc/susp_aaip_isofs_names.txt \ 355 doc/zisofs_format.txt \ 356 doc/zisofs2_format.txt \ 357 doc/startup_file.txt \ 358 frontend/frontend_pipes_xorriso.c \ 359 frontend/README-tcltk \ 360 frontend/xorriso-tcltk \ 361 frontend/sh_on_named_pipes.sh \ 362 frontend/xorriso_broker.sh \ 363 frontend/grub-mkrescue-sed.sh \ 364 xorriso-dd-target/xorriso-dd-target \ 365 libisofs/aaip-os-dummy.c \ 366 libisofs/aaip-os-linux.c \ 367 libisofs/aaip-os-freebsd.c \ 368 libburn/os-dummy.h \ 369 libburn/os-freebsd.h \ 370 libburn/os-libcdio.h \ 371 libburn/os-linux.h \ 372 libburn/os-solaris.h \ 373 libburn/sg-dummy.c \ 374 libburn/sg-freebsd.c \ 375 libburn/sg-libcdio.c \ 376 libburn/sg-linux.c \ 377 libburn/sg-solaris.c 378