Makefile.am 1.64 KB
Newer Older
1 2
ACLOCAL_AMFLAGS = -I m4

3
EXTRA_DIST = libdvdcss.spec doc/header.html doc/footer.html INSTALL
4

5 6 7 8 9 10 11 12 13 14 15
dist_doc_DATA = AUTHORS COPYING NEWS README ChangeLog

DISTCLEANFILES = ChangeLog

ChangeLog: stamp-changelog

stamp-changelog:
	-git log > ChangeLog-tmp
	test -s ChangeLog-tmp && mv ChangeLog-tmp ChangeLog
	-rm -f ChangeLog-tmp
	test -e ChangeLog || touch ChangeLog
16

17
lib_LTLIBRARIES = libdvdcss.la
18
EXTRA_PROGRAMS = csstest dvd_region
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

libdvdcss_la_SOURCES = \
	src/libdvdcss.c \
	src/libdvdcss.h \
	src/device.c \
	src/device.h \
	src/css.c \
	src/css.h \
	src/csstables.h \
	src/ioctl.c \
	src/ioctl.h \
	src/error.c \
	src/common.h

libdvdcss_la_LDFLAGS = -version-info 3:0:1 $(DVDCSS_LDFLAGS)
libdvdcss_la_LIBADD =

if !SYS_MSVC
libdvdcss_la_LDFLAGS += = -no-undefined
endif

csstest_SOURCES = test/csstest.c
csstest_LDADD = libdvdcss.la
csstest_CFLAGS = -I $(top_srcdir)/src

44
dvd_region_SOURCES = test/dvd_region.c src/ioctl.c
45 46 47
dvd_region_LDADD = libdvdcss.la
dvd_region_CFLAGS = -I $(top_srcdir)/src

48 49 50 51 52
pkgincludedir = $(includedir)/dvdcss
pkginclude_HEADERS = src/dvdcss/dvdcss.h

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = src/libdvdcss.pc
53

54 55 56 57 58
if APIDOC
all-local: apidoc
install-data-local: install-apidoc
uninstall-hook: uninstall-apidoc
endif
59

60
apidoc: stamp-doxygen
61

62 63
stamp-doxygen: doc/doxygen.cfg
	cd doc && doxygen doxygen.cfg
64 65 66
	touch $@

clean-local:
67 68 69 70 71 72 73 74 75 76
	-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