Makefile.am 1.71 KB
Newer Older
1 2
ACLOCAL_AMFLAGS = -Im4

3
AM_CPPFLAGS = -I$(top_srcdir)/src $(CSS_CFLAGS)
4

5
dist_doc_DATA = AUTHORS ChangeLog COPYING NEWS README TODO
6

7
MAINTAINERCLEANFILES = ChangeLog
8

9 10
ChangeLog: $(wildcard $(srcdir)/.git/logs/HEAD)
	-cd $(srcdir) && git log > $(abs_builddir)/$(@)-tmp
11
	-test -s $(@)-tmp && mv $(@)-tmp $(@)
12 13
	-rm -f $(@)-tmp
	test -e $(@) || touch $(@)
14 15

EXTRA_DIST = msvc/ doc/footer.html doc/header.html
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

lib_LTLIBRARIES = libdvdread.la

libdvdread_la_SOURCES = \
	src/bitreader.c \
	src/bswap.h \
	src/dvd_input.c \
	src/dvd_input.h \
	src/dvd_reader.c \
	src/dvd_udf.c \
	src/dvdread_internal.h \
	src/ifo_print.c \
	src/ifo_read.c \
	src/md5.c \
	src/md5.h \
	src/nav_print.c \
	src/nav_read.c

34
libdvdread_la_LIBADD = $(CSS_LIBS)
35

36
libdvdread_la_LDFLAGS = -version-info $(DVDREAD_LTVERSION) \
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
	-export-symbols-regex "(^dvd.*|^nav.*|^ifo.*|^DVD.*|^UDF.*)"

pkgincludedir = $(includedir)/dvdread
pkginclude_HEADERS = \
	src/dvdread/bitreader.h \
	src/dvdread/dvd_reader.h \
	src/dvdread/dvd_udf.h \
	src/dvdread/ifo_print.h \
	src/dvdread/ifo_read.h \
	src/dvdread/ifo_types.h \
	src/dvdread/nav_print.h \
	src/dvdread/nav_read.h \
	src/dvdread/nav_types.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = misc/dvdread.pc
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

if APIDOC
all-local: apidoc
install-data-local: install-apidoc
uninstall-hook: uninstall-apidoc
endif

apidoc: stamp-doxygen

stamp-doxygen: doc/doxygen.cfg
	cd doc && doxygen doxygen.cfg
	touch $@

clean-local:
	-rm -Rf stamp-doxygen doc/html

install-apidoc:
	$(MKDIR_P) $(DESTDIR)$(htmldir)
	for file in doc/html/*; do \
		$(INSTALL_DATA) $$file "$(DESTDIR)$(htmldir)" || exit 1; \
	done;

uninstall-apidoc:
	-rm -Rf $(DESTDIR)$(htmldir)/*.png $(DESTDIR)$(htmldir)/*.html $(DESTDIR)$(htmldir)/*.css $(DESTDIR)$(htmldir)/*.js