summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 13b5313c2fc81ab7cd0e3953c0633b7754e908be (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

lib_LTLIBRARIES = libxcb-util.la

AM_CPPFLAGS = $(XCB_CFLAGS)
AM_CFLAGS = $(CWARNFLAGS)

libxcb_util_la_LIBADD = $(XCB_LIBS)
libxcb_util_la_LDFLAGS = -version-info 0:0:0 -no-undefined
libxcb_util_la_SOURCES = \
	atoms.c		\
	event.c		\
	xcb_aux.c

xcbinclude_HEADERS =	\
	xcb_util.h	\
	xcb_atom.h	\
	xcb_aux.h	\
	xcb_bitops.h	\
	xcb_event.h

BUILT_SOURCES = atoms.c atoms.gperf xcb_atom.h
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = atomlist.m4  atoms.gperf.m4  xcb_atom.h.m4

atoms.c: atoms.gperf
	$(GPERF) --output-file $@ $<

atoms.gperf: $(srcdir)/atoms.gperf.m4 $(srcdir)/atomlist.m4
	$(M4) -I$(srcdir) $< >$@

xcb_atom.h: $(srcdir)/xcb_atom.h.m4 $(srcdir)/atomlist.m4
	$(M4) -I$(srcdir) $< >$@