1ACLOCAL_AMFLAGS = -I m4
2
3MAINTAINERCLEANFILES = ChangeLog INSTALL Makefile.in
4
5.PHONY: ChangeLog INSTALL
6
7INSTALL:
8	$(INSTALL_CMD)
9
10ChangeLog:
11	$(CHANGELOG_CMD)
12
13dist-hook: ChangeLog INSTALL
14
15EXTRA_DIST = autogen.sh xcb-errors.pc.in src/errors.h src/extensions.py
16
17lib_LTLIBRARIES = libxcb-errors.la
18
19xcbinclude_HEADERS = src/xcb_errors.h
20
21AM_CFLAGS = $(CWARNFLAGS)
22
23libxcb_errors_la_SOURCES = src/xcb_errors.c src/extensions.c
24libxcb_errors_la_CPPFLAGS = $(XCB_CFLAGS) $(XPROTO_CFLAGS)
25libxcb_errors_la_LIBADD = $(XCB_LIBS) $(XPROTO_LIBS)
26libxcb_errors_la_LDFLAGS = -version-info 0:0:0 -no-undefined -export-symbols-regex '^xcb_errors_'
27
28pkgconfig_DATA = xcb-errors.pc
29
30TESTS = tests/test
31check_PROGRAMS = tests/test
32tests_test_SOURCE = tests/test.c
33tests_test_CPPFLAGS = -I$(srcdir)/src/ $(XCB_CFLAGS)
34tests_test_LDADD = libxcb-errors.la $(XCB_LIBS)
35
36CLEANFILES = src/extensions.c
37
38src/extensions.c: src/extensions.py
39	$(AM_V_GEN)src/extensions.py $@.tmp ${XCBPROTO_XCBINCLUDEDIR}/*.xml && \
40	mv $@.tmp $@
41