2007-09-14 04:32:05 +00:00
|
|
|
pkgconfigdir=$(libdir)/pkgconfig
|
2007-09-14 04:41:55 +00:00
|
|
|
libincludedir=$(includedir)/libisoburn
|
2007-09-14 04:32:05 +00:00
|
|
|
|
2008-01-26 00:26:57 +00:00
|
|
|
lib_LTLIBRARIES = libisoburn/libisoburn.la
|
2007-09-14 04:32:05 +00:00
|
|
|
|
|
|
|
## ========================================================================= ##
|
|
|
|
|
|
|
|
# Build libraries
|
2008-01-26 00:26:57 +00:00
|
|
|
libisoburn_libisoburn_la_LDFLAGS = \
|
2007-09-14 04:32:05 +00:00
|
|
|
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
|
2008-01-26 00:26:57 +00:00
|
|
|
libisoburn_libisoburn_la_SOURCES = \
|
|
|
|
libisoburn/burn_wrap.c \
|
|
|
|
libisoburn/data_source.c \
|
|
|
|
libisoburn/isoburn.c \
|
|
|
|
libisoburn/isoburn.h \
|
|
|
|
libisoburn/isofs_wrap.c \
|
|
|
|
libisoburn/libisoburn.h \
|
2007-09-14 04:32:05 +00:00
|
|
|
version.h
|
2008-07-08 09:27:05 +00:00
|
|
|
|
2008-03-06 13:31:00 +00:00
|
|
|
libisoburn_libisoburn_la_LIBADD = \
|
|
|
|
-lisofs \
|
2008-07-08 09:27:05 +00:00
|
|
|
-lburn
|
|
|
|
|
2007-09-14 04:32:05 +00:00
|
|
|
libinclude_HEADERS = \
|
2008-01-26 00:26:57 +00:00
|
|
|
libisoburn/libisoburn.h
|
2007-09-14 04:32:05 +00:00
|
|
|
|
|
|
|
## ========================================================================= ##
|
|
|
|
|
2008-02-01 19:59:12 +00:00
|
|
|
|
2008-02-10 13:09:35 +00:00
|
|
|
# This is the reference application of libisoburn. See man xorriso/xorriso.1
|
|
|
|
#
|
2008-02-01 19:59:12 +00:00
|
|
|
bin_PROGRAMS = \
|
|
|
|
xorriso/xorriso
|
|
|
|
|
2008-07-21 15:52:59 +00:00
|
|
|
# This looks quite ugly with make install: xorriso.c is compiled twice again
|
|
|
|
#
|
2008-07-19 11:30:08 +00:00
|
|
|
# Trying to create a build timestamp file
|
|
|
|
#
|
2008-07-21 15:52:59 +00:00
|
|
|
# BUILT_SOURCES = xorriso/xorriso_buildstamp.h
|
|
|
|
#
|
2008-07-19 11:30:08 +00:00
|
|
|
# phony targets get rebuilt every time
|
2008-07-21 15:52:59 +00:00
|
|
|
#
|
|
|
|
# .PHONY: xorriso/xorriso_buildstamp.h
|
|
|
|
# xorriso/xorriso_buildstamp.h:
|
|
|
|
# date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h
|
|
|
|
# cat xorriso/xorriso_buildstamp.h
|
2008-07-19 11:30:08 +00:00
|
|
|
|
2008-02-01 19:59:12 +00:00
|
|
|
xorriso_xorriso_CPPFLAGS = -Ilibisoburn
|
2009-01-23 17:27:04 +00:00
|
|
|
xorriso_xorriso_CFLAGS = -DXorriso_with_maiN \
|
|
|
|
$(READLINE_DEF) $(LIBACL_DEF) $(XATTR_DEF)
|
|
|
|
|
2009-01-14 11:10:53 +00:00
|
|
|
xorriso_xorriso_LDADD = libisoburn/libisoburn.la -lisofs -lburn \
|
2009-01-23 17:27:04 +00:00
|
|
|
$(THREAD_LIBS)
|
2009-01-14 11:10:53 +00:00
|
|
|
|
2008-02-01 19:59:12 +00:00
|
|
|
xorriso_xorriso_SOURCES = \
|
|
|
|
xorriso/xorriso.h \
|
|
|
|
xorriso/xorriso_private.h \
|
|
|
|
xorriso/xorriso.c \
|
|
|
|
xorriso/xorrisoburn.h \
|
|
|
|
xorriso/xorrisoburn.c \
|
2008-07-09 15:56:23 +00:00
|
|
|
xorriso/xorriso_timestamp.h \
|
|
|
|
xorriso/xorriso_buildstamp.h
|
2007-09-14 04:32:05 +00:00
|
|
|
|
|
|
|
|
2008-07-08 09:27:05 +00:00
|
|
|
# Install symbolic links to the xorriso binary
|
|
|
|
#
|
|
|
|
install-exec-hook:
|
2008-07-21 16:17:44 +00:00
|
|
|
if test -e "$(DESTDIR)$(bindir)"/xorrisofs ; then rm "$(DESTDIR)$(bindir)"/xorrisofs ; else echo ; fi
|
|
|
|
ln -s xorriso "$(DESTDIR)$(bindir)"/xorrisofs
|
|
|
|
if test -e "$(DESTDIR)$(bindir)"/osirrox ; then rm "$(DESTDIR)$(bindir)"/osirrox ; else echo ; fi
|
|
|
|
ln -s xorriso "$(DESTDIR)$(bindir)"/osirrox
|
|
|
|
if test -e "$(DESTDIR)$(bindir)"/xorrecord ; then rm "$(DESTDIR)$(bindir)"/xorrecord ; else echo ; fi
|
|
|
|
ln -s xorriso "$(DESTDIR)$(bindir)"/xorrecord
|
2008-07-08 09:27:05 +00:00
|
|
|
|
2008-07-09 15:56:23 +00:00
|
|
|
|
2008-07-21 15:52:59 +00:00
|
|
|
# Alternative to the disabled .PHONY above.
|
|
|
|
# Trying to create a build timestamp file semi-manually: make buildstamped
|
2008-07-09 15:56:23 +00:00
|
|
|
#
|
|
|
|
buildstamp:
|
|
|
|
date -u '+#define Xorriso_build_timestamP "%Y.%m.%d.%H%M%S"' >xorriso/xorriso_buildstamp.h
|
|
|
|
cat xorriso/xorriso_buildstamp.h
|
|
|
|
|
|
|
|
# For now make buildstamped has to be performed explicitely.
|
|
|
|
buildstamped: buildstamp
|
|
|
|
make
|
2008-07-19 11:30:08 +00:00
|
|
|
|
2008-07-09 15:56:23 +00:00
|
|
|
|
|
|
|
|
2008-02-10 13:09:35 +00:00
|
|
|
## Build test applications
|
|
|
|
noinst_PROGRAMS = \
|
|
|
|
test/compare_file
|
|
|
|
|
|
|
|
# A program to compare two files in mirrored trees in mounted filesystems
|
|
|
|
# To compare tree /media/dvd and /original/dir :
|
|
|
|
# find /media/dvd -exec test/compare_file '{}' /media/dvd /original/dir ';'
|
|
|
|
#
|
|
|
|
test_compare_file_CPPFLAGS =
|
|
|
|
test_compare_file_CFLAGS =
|
|
|
|
test_compare_file_LDADD =
|
|
|
|
test_compare_file_SOURCES = test/compare_file.c
|
|
|
|
|
|
|
|
|
2007-09-14 04:32:05 +00:00
|
|
|
## ========================================================================= ##
|
|
|
|
|
|
|
|
## Build documentation (You need Doxygen for this to work)
|
|
|
|
webhost = http://libburn-api.pykix.org
|
|
|
|
webpath = /
|
|
|
|
docdir = $(DESTDIR)$(prefix)/share/doc/$(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
doc: doc/html
|
|
|
|
|
|
|
|
doc/html: doc/doxygen.conf
|
|
|
|
if [ -f ./doc/doc.lock ]; then \
|
|
|
|
$(RM) -r doc/html; \
|
|
|
|
doxygen doc/doxygen.conf; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
doc-upload: doc/html
|
|
|
|
scp -r $</* $(webhost):$(webpath)
|
|
|
|
|
|
|
|
all: doc
|
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
if [ -f ./doc/doc.lock ]; then \
|
|
|
|
$(mkinstalldirs) $(docdir)/html; \
|
|
|
|
$(INSTALL_DATA) doc/html/* $(docdir)/html; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
rm -rf $(docdir)
|
|
|
|
|
|
|
|
## ========================================================================= ##
|
|
|
|
|
|
|
|
# Indent source files
|
|
|
|
indent_files = \
|
2008-01-26 00:26:57 +00:00
|
|
|
$(libisoburn_libisoburn_la_SOURCES)
|
2007-09-14 04:32:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
indent: $(indent_files)
|
|
|
|
indent -bad -bap -nbbb -nbbo -nbc -bli0 -br -bls \
|
|
|
|
-cdw -ce -cli0 -ncs -nbfda -i8 -l79 -lc79 \
|
|
|
|
-lp -saf -sai -nprs -npsl -saw -sob -ss -ut \
|
|
|
|
-sbi0 -nsc -ts8 -npcs -ncdb -fca \
|
|
|
|
$^
|
|
|
|
|
|
|
|
.PHONY: indent
|
|
|
|
|
|
|
|
## ========================================================================= ##
|
|
|
|
|
|
|
|
# Extra things
|
|
|
|
nodist_pkgconfig_DATA = \
|
2008-02-01 19:59:12 +00:00
|
|
|
libisoburn-1.pc
|
2007-09-14 04:32:05 +00:00
|
|
|
|
2008-02-14 10:20:01 +00:00
|
|
|
man_MANS = xorriso/xorriso.1
|
2007-09-14 04:32:05 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2008-02-01 19:59:12 +00:00
|
|
|
libisoburn-1.pc.in \
|
2007-09-14 04:32:05 +00:00
|
|
|
version.h.in \
|
2008-12-17 10:22:35 +00:00
|
|
|
doc/comments \
|
|
|
|
doc/doxygen.conf.in \
|
2007-09-14 04:32:05 +00:00
|
|
|
README \
|
|
|
|
AUTHORS \
|
|
|
|
CONTRIBUTORS \
|
|
|
|
COPYRIGHT \
|
|
|
|
COPYING \
|
2008-02-14 10:20:01 +00:00
|
|
|
INSTALL \
|
|
|
|
xorriso/changelog.txt \
|
2008-07-09 15:56:23 +00:00
|
|
|
xorriso/xorriso_buildstamp_none.h \
|
2008-02-14 10:20:01 +00:00
|
|
|
xorriso/README \
|
|
|
|
$(man_MANS)
|
2007-09-14 04:32:05 +00:00
|
|
|
|