summaryrefslogtreecommitdiff
path: root/atom/Makefile.am
blob: 8be6e60838b890665bbb742bede4879fa9a95f41 (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

MAINTAINERCLEANFILES = Makefile.in

lib_LTLIBRARIES = libxcb-atom.la

xcbinclude_HEADERS = xcb_atom.h

AM_CFLAGS = $(CWARNFLAGS)

libxcb_atom_la_SOURCES = atoms.c atomlist.m4 atoms.gperf.m4 xcb_atom.h.m4
libxcb_atom_la_CPPFLAGS = $(XCB_CFLAGS)
libxcb_atom_la_LIBADD = $(XCB_LIBS)
libxcb_atom_la_LDFLAGS = -version-info 1:0:0

pkgconfig_DATA = xcb-atom.pc

EXTRA_DIST = xcb-atom.pc.in

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

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

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

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