2009-03-17 20:33:20 +00:00
|
|
|
|
2018-10-06 18:40:08 +00:00
|
|
|
# Copyright (c) 2007 Vreixo Formoso
|
2024-07-16 13:05:11 +00:00
|
|
|
# Copyright (c) 2009 - 2024 Thomas Schmitt
|
2018-10-06 18:40:08 +00:00
|
|
|
# Provided under the terms of the GNU General Public License version 2 or later.
|
|
|
|
|
2009-03-17 20:33:20 +00:00
|
|
|
# ts A90315 : LIBBURNIA_PKGCONFDIR is defined OS specific in acinclude.m4
|
|
|
|
# was: pkgconfigdir=$(libdir)/pkgconfig
|
|
|
|
pkgconfigdir=$(LIBBURNIA_PKGCONFDIR)
|
|
|
|
|
2007-11-24 12:14:45 +00:00
|
|
|
libincludedir=$(includedir)/libisofs
|
|
|
|
|
2008-01-26 21:18:07 +00:00
|
|
|
lib_LTLIBRARIES = libisofs/libisofs.la
|
2011-06-08 19:27:53 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I ./
|
2019-04-07 15:31:38 +00:00
|
|
|
|
|
|
|
# Enable this if the source includes generated files like version.h
|
|
|
|
# AM_CPPFLAGS = -I $(top_builddir)/libisofs
|
2007-11-24 12:14:45 +00:00
|
|
|
|
|
|
|
## ========================================================================= ##
|
|
|
|
|
|
|
|
# Build libraries
|
|
|
|
|
2008-01-26 21:18:07 +00:00
|
|
|
libisofs_libisofs_la_LDFLAGS = \
|
2016-04-19 07:17:34 +00:00
|
|
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) $(LIBLDFLAGS)
|
2009-01-14 11:11:47 +00:00
|
|
|
|
2024-07-16 13:05:11 +00:00
|
|
|
# Enabling system adapters for ACL and EA.
|
|
|
|
# ts A90409: Enabling use of zlib.
|
|
|
|
# ts B00927: Enabling use of libjte (Jigdo Template Extraction)
|
|
|
|
# ts C40713: Enabling system adapter for Linux chattr(1) flags
|
|
|
|
libisofs_libisofs_la_CFLAGS = $(LIBACL_DEF) $(XATTR_DEF) $(LFA_DEF) \
|
|
|
|
$(ZLIB_DEF) $(LIBJTE_DEF)
|
2009-01-23 17:28:51 +00:00
|
|
|
|
|
|
|
# ts A90114 : added aaip_0_2.*
|
2009-01-14 11:11:47 +00:00
|
|
|
|
2008-01-26 21:18:07 +00:00
|
|
|
libisofs_libisofs_la_SOURCES = \
|
|
|
|
libisofs/builder.h \
|
|
|
|
libisofs/builder.c \
|
|
|
|
libisofs/node.h \
|
|
|
|
libisofs/node.c \
|
|
|
|
libisofs/tree.h \
|
|
|
|
libisofs/tree.c \
|
2008-03-03 21:02:10 +00:00
|
|
|
libisofs/find.c \
|
2008-01-26 21:18:07 +00:00
|
|
|
libisofs/image.h \
|
|
|
|
libisofs/image.c \
|
|
|
|
libisofs/fsource.h \
|
|
|
|
libisofs/fsource.c \
|
|
|
|
libisofs/fs_local.c \
|
|
|
|
libisofs/fs_image.c \
|
|
|
|
libisofs/messages.h \
|
|
|
|
libisofs/messages.c \
|
|
|
|
libisofs/libiso_msgs.h \
|
|
|
|
libisofs/libiso_msgs.c \
|
|
|
|
libisofs/stream.h \
|
|
|
|
libisofs/stream.c \
|
2008-02-24 17:20:23 +00:00
|
|
|
libisofs/filter.h \
|
|
|
|
libisofs/filter.c \
|
2009-03-26 16:34:38 +00:00
|
|
|
libisofs/filters/external.c \
|
2009-04-09 14:18:50 +00:00
|
|
|
libisofs/filters/zisofs.c \
|
2009-04-14 20:26:00 +00:00
|
|
|
libisofs/filters/gzip.c \
|
2008-01-26 21:18:07 +00:00
|
|
|
libisofs/util.h \
|
|
|
|
libisofs/util.c \
|
|
|
|
libisofs/util_rbtree.c \
|
|
|
|
libisofs/util_htable.c \
|
|
|
|
libisofs/filesrc.h \
|
|
|
|
libisofs/filesrc.c \
|
|
|
|
libisofs/ecma119.h \
|
|
|
|
libisofs/ecma119.c \
|
|
|
|
libisofs/ecma119_tree.h \
|
|
|
|
libisofs/ecma119_tree.c \
|
|
|
|
libisofs/writer.h \
|
2008-02-22 14:57:57 +00:00
|
|
|
libisofs/buffer.h \
|
2008-01-26 21:18:07 +00:00
|
|
|
libisofs/buffer.c \
|
|
|
|
libisofs/rockridge.h \
|
|
|
|
libisofs/rockridge.c \
|
|
|
|
libisofs/rockridge_read.c \
|
|
|
|
libisofs/joliet.h \
|
|
|
|
libisofs/joliet.c \
|
2012-05-23 12:47:49 +00:00
|
|
|
libisofs/hfsplus.h \
|
|
|
|
libisofs/hfsplus.c \
|
2012-05-24 09:27:21 +00:00
|
|
|
libisofs/hfsplus_decompose.c \
|
|
|
|
libisofs/hfsplus_classes.c \
|
|
|
|
libisofs/hfsplus_case.c \
|
2008-01-26 21:18:07 +00:00
|
|
|
libisofs/eltorito.h \
|
|
|
|
libisofs/eltorito.c \
|
2008-10-19 14:03:13 +00:00
|
|
|
libisofs/system_area.h \
|
|
|
|
libisofs/system_area.c \
|
2008-10-18 14:50:20 +00:00
|
|
|
libisofs/make_isohybrid_mbr.c \
|
2008-01-26 21:18:07 +00:00
|
|
|
libisofs/iso1999.h \
|
|
|
|
libisofs/iso1999.c \
|
2009-01-14 11:11:47 +00:00
|
|
|
libisofs/data_source.c \
|
|
|
|
libisofs/aaip_0_2.h \
|
2009-08-06 09:26:38 +00:00
|
|
|
libisofs/aaip_0_2.c \
|
|
|
|
libisofs/md5.h \
|
|
|
|
libisofs/md5.c
|
2008-03-06 15:13:15 +00:00
|
|
|
libisofs_libisofs_la_LIBADD= \
|
2009-01-23 17:28:51 +00:00
|
|
|
$(THREAD_LIBS)
|
2007-11-24 12:14:45 +00:00
|
|
|
libinclude_HEADERS = \
|
2008-01-30 22:43:59 +00:00
|
|
|
libisofs/libisofs.h
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2010-09-22 10:55:13 +00:00
|
|
|
install-exec-hook:
|
2014-12-29 10:51:30 +00:00
|
|
|
$(LIBBURNIA_LDCONFIG_CMD) "$(DESTDIR)$(libdir)" || echo 'NOTE: Explicit dynamic library configuration failed. If needed, configure manually for:' "$(DESTDIR)$(libdir)"
|
2010-09-01 08:45:10 +00:00
|
|
|
|
2007-11-24 12:14:45 +00:00
|
|
|
## ========================================================================= ##
|
|
|
|
|
2007-11-29 21:06:56 +00:00
|
|
|
## Build demo applications
|
2007-11-24 12:14:45 +00:00
|
|
|
noinst_PROGRAMS = \
|
2009-08-07 19:52:42 +00:00
|
|
|
demo/demo
|
|
|
|
|
|
|
|
# demo/tree \
|
|
|
|
# demo/find \
|
|
|
|
# demo/iso \
|
|
|
|
# demo/isoread \
|
|
|
|
# demo/isocat \
|
|
|
|
# demo/isomodify \
|
|
|
|
# demo/isoms
|
2009-02-18 09:29:26 +00:00
|
|
|
|
2009-08-06 09:26:38 +00:00
|
|
|
# demo/ecma119tree \
|
|
|
|
# demo/lsl \
|
|
|
|
# demo/cat \
|
|
|
|
# demo/catbuffer \
|
2009-02-18 09:29:26 +00:00
|
|
|
# demo/isogrow
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2009-08-07 19:52:42 +00:00
|
|
|
|
|
|
|
# ts A90807
|
2019-04-07 15:31:38 +00:00
|
|
|
# Consolidated demo code for having less linker messages with a make run.
|
2019-04-05 16:04:46 +00:00
|
|
|
demo_demo_CPPFLAGS = -I $(top_srcdir)/libisofs
|
2009-08-07 19:52:42 +00:00
|
|
|
demo_demo_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
|
|
|
|
demo_demo_SOURCES = demo/demo.c
|
|
|
|
|
2009-08-06 09:26:38 +00:00
|
|
|
# ts A90806
|
|
|
|
# This includes fsource.h and thus is no API demo
|
|
|
|
# demo_lsl_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_lsl_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_lsl_SOURCES = demo/lsl.c
|
|
|
|
|
|
|
|
# ts A90806
|
|
|
|
# This includes fsource.h and thus is no API demo
|
|
|
|
# demo_cat_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_cat_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_cat_SOURCES = demo/cat.c
|
|
|
|
|
|
|
|
# ts A90806
|
|
|
|
# This inlcudes buffer.h and thus is no API demo
|
|
|
|
# demo_catbuffer_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_catbuffer_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_catbuffer_SOURCES = demo/cat_buffer.c
|
2007-12-23 01:24:21 +00:00
|
|
|
|
2009-08-07 19:52:42 +00:00
|
|
|
# ts A90807
|
|
|
|
# Consolidated in demo/demo
|
|
|
|
# demo_tree_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_tree_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_tree_SOURCES = demo/tree.c
|
2007-12-11 21:47:04 +00:00
|
|
|
|
2009-08-07 19:52:42 +00:00
|
|
|
# ts A90807
|
|
|
|
# Consolidated in demo/demo
|
|
|
|
# demo_find_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_find_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_find_SOURCES = demo/find.c
|
2008-03-03 21:02:10 +00:00
|
|
|
|
2009-08-06 09:26:38 +00:00
|
|
|
# ts A90806
|
|
|
|
# This inlcudes lots of internal .h files and thus is no API demo
|
|
|
|
# demo_ecma119tree_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_ecma119tree_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_ecma119tree_SOURCES = demo/ecma119_tree.c
|
2007-12-15 15:55:44 +00:00
|
|
|
|
2009-08-07 19:52:42 +00:00
|
|
|
# ts A90807
|
|
|
|
# Consolidated in demo/demo
|
|
|
|
# demo_iso_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_iso_LDADD = $(libisofs_libisofs_la_OBJECTS) $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_iso_SOURCES = demo/iso.c
|
|
|
|
|
|
|
|
# ts A90807
|
|
|
|
# Consolidated in demo/demo
|
|
|
|
# demo_isoread_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_isoread_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_isoread_SOURCES = demo/iso_read.c
|
|
|
|
|
|
|
|
# ts A90807
|
|
|
|
# Consolidated in demo/demo
|
|
|
|
# demo_isocat_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_isocat_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_isocat_SOURCES = demo/iso_cat.c
|
|
|
|
|
|
|
|
# ts A90807
|
|
|
|
# Consolidated in demo/demo
|
|
|
|
# demo_isomodify_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_isomodify_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_isomodify_SOURCES = demo/iso_modify.c
|
|
|
|
|
|
|
|
# ts A90807
|
|
|
|
# Consolidated in demo/demo
|
|
|
|
# demo_isoms_CPPFLAGS = -Ilibisofs
|
|
|
|
# demo_isoms_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD)
|
|
|
|
# demo_isoms_SOURCES = demo/iso_ms.c
|
2008-01-04 22:54:31 +00:00
|
|
|
|
2009-02-18 09:29:26 +00:00
|
|
|
# demo_isogrow_CPPFLAGS = -Ilibisofs -Ilibburn
|
|
|
|
# demo_isogrow_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD) \
|
|
|
|
# -lburn
|
|
|
|
# demo_isogrow_SOURCES = demo/iso_grow.c
|
2008-01-05 01:03:22 +00:00
|
|
|
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2009-04-28 20:40:15 +00:00
|
|
|
## ts A90428 , ticket 147, The test code does not use the API and is totally
|
|
|
|
## outdated in its creation of mocked objects.
|
|
|
|
## A volunteer is needed to rewrite it using the API.
|
|
|
|
|
|
|
|
# ## Build unit test
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2009-04-28 20:40:15 +00:00
|
|
|
# check_PROGRAMS = \
|
|
|
|
# test/test
|
|
|
|
#
|
|
|
|
# test_test_CPPFLAGS = -Ilibisofs
|
|
|
|
# test_test_LDADD = $(libisofs_libisofs_la_OBJECTS) \
|
|
|
|
# $(libisofs_libisofs_la_LIBADD) -lcunit
|
|
|
|
# test_test_LDFLAGS = -L.. -lm
|
|
|
|
#
|
|
|
|
# test_test_SOURCES = \
|
|
|
|
# test/test.h \
|
|
|
|
# test/test.c \
|
|
|
|
# test/test_node.c \
|
|
|
|
# test/test_image.c \
|
|
|
|
# test/test_tree.c \
|
|
|
|
# test/test_util.c \
|
|
|
|
# test/test_rockridge.c \
|
|
|
|
# test/test_stream.c \
|
|
|
|
# test/mocked_fsrc.h \
|
|
|
|
# test/mocked_fsrc.c
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2011-12-03 14:43:18 +00:00
|
|
|
# "make clean" shall remove a few stubborn .libs directories
|
|
|
|
# which George Danchev reported Dec 03 2011.
|
|
|
|
# Learned from: http://www.gnu.org/software/automake/manual/automake.html#Clean
|
|
|
|
clean-local:
|
|
|
|
-rm -rf demo/.libs
|
|
|
|
|
2007-11-24 12:14:45 +00:00
|
|
|
## ========================================================================= ##
|
|
|
|
|
|
|
|
## Build documentation (You need Doxygen for this to work)
|
2008-01-29 20:30:52 +00:00
|
|
|
|
|
|
|
docdir = $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
doc: doc/html
|
|
|
|
|
|
|
|
doc/html: doc/doxygen.conf
|
|
|
|
$(RM) -r doc/html; \
|
|
|
|
doxygen doc/doxygen.conf;
|
|
|
|
|
|
|
|
install-data-local:
|
2008-01-31 16:07:31 +00:00
|
|
|
if [ -d doc/html ]; then \
|
|
|
|
$(mkinstalldirs) $(docdir)/html; \
|
|
|
|
$(INSTALL_DATA) doc/html/* $(docdir)/html; \
|
|
|
|
fi
|
2008-01-29 20:30:52 +00:00
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
rm -rf $(docdir)
|
2007-11-24 12:14:45 +00:00
|
|
|
|
|
|
|
## ========================================================================= ##
|
|
|
|
|
|
|
|
# Extra things
|
|
|
|
nodist_pkgconfig_DATA = \
|
2008-01-31 21:07:12 +00:00
|
|
|
libisofs-1.pc
|
2007-11-24 12:14:45 +00:00
|
|
|
|
2009-01-14 11:11:47 +00:00
|
|
|
# ts A80114 : added aaip-os*
|
|
|
|
|
2007-11-24 12:14:45 +00:00
|
|
|
EXTRA_DIST = \
|
2011-12-03 14:58:38 +00:00
|
|
|
bootstrap \
|
2008-01-31 21:07:12 +00:00
|
|
|
libisofs-1.pc.in \
|
2007-11-24 12:14:45 +00:00
|
|
|
version.h.in \
|
2008-01-29 20:30:52 +00:00
|
|
|
doc/doxygen.conf.in \
|
|
|
|
doc/Tutorial \
|
2007-11-24 12:14:45 +00:00
|
|
|
README \
|
|
|
|
AUTHORS \
|
|
|
|
COPYRIGHT \
|
|
|
|
COPYING \
|
2009-01-14 11:11:47 +00:00
|
|
|
NEWS \
|
|
|
|
INSTALL \
|
|
|
|
TODO \
|
|
|
|
ChangeLog \
|
|
|
|
Roadmap \
|
2009-04-16 07:27:36 +00:00
|
|
|
doc/susp_aaip_2_0.txt \
|
|
|
|
doc/susp_aaip_isofs_names.txt \
|
|
|
|
doc/zisofs_format.txt \
|
2020-10-29 08:16:58 +00:00
|
|
|
doc/zisofs2_format.txt \
|
2009-08-30 13:55:36 +00:00
|
|
|
doc/checksums.txt \
|
2019-04-22 08:30:02 +00:00
|
|
|
doc/boot_sectors.txt \
|
2010-07-05 16:20:59 +00:00
|
|
|
libisofs/libisofs.ver \
|
2009-01-29 09:52:08 +00:00
|
|
|
libisofs/aaip-os-dummy.c \
|
2009-01-14 11:11:47 +00:00
|
|
|
libisofs/aaip-os-linux.c \
|
|
|
|
libisofs/aaip-os-freebsd.c
|
2007-11-24 12:14:45 +00:00
|
|
|
|