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

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)

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) $< >$@