summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 746cde34472307ab3fc7b713f8bee98dab44a8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ACLOCAL_AMFLAGS = -I m4

MAINTAINERCLEANFILES = ChangeLog INSTALL Makefile.in

.PHONY: ChangeLog INSTALL

INSTALL:
	$(INSTALL_CMD)

ChangeLog:
	$(CHANGELOG_CMD)

dist-hook: ChangeLog INSTALL

EXTRA_DIST = autogen.sh xcb-errors.pc.in src/errors.h src/extensions.py

lib_LTLIBRARIES = libxcb-errors.la

xcbinclude_HEADERS = src/xcb_errors.h

AM_CFLAGS = $(CWARNFLAGS)

libxcb_errors_la_SOURCES = src/xcb_errors.c src/extensions.c
libxcb_errors_la_CPPFLAGS = $(XCB_CFLAGS) $(XPROTO_CFLAGS)
libxcb_errors_la_LIBADD = $(XCB_LIBS) $(XPROTO_LIBS)
libxcb_errors_la_LDFLAGS = -version-info 0:0:0 -no-undefined -export-symbols-regex '^xcb_errors_'

pkgconfig_DATA = xcb-errors.pc

TESTS = tests/test
check_PROGRAMS = tests/test
tests_test_SOURCE = tests/test.c
tests_test_CPPFLAGS = -I$(srcdir)/src/ $(XCB_CFLAGS)
tests_test_LDADD = libxcb-errors.la $(XCB_LIBS)

CLEANFILES = src/extensions.c

src/extensions.c: src/extensions.py
	$(AM_V_GEN)src/extensions.py $@.tmp ${XCBPROTO_XCBINCLUDEDIR}/*.xml && \
	mv $@.tmp $@