summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 1d13e3989d3ae1526c60647a0f00a1e39ce2eb6c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
ACLOCAL_AMFLAGS = -I m4

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xkbcommon.pc

MAINTAINERCLEANFILES = ChangeLog INSTALL

.PHONY: ChangeLog INSTALL

INSTALL:
	$(INSTALL_CMD)

ChangeLog:
	$(CHANGELOG_CMD)

dist-hook: ChangeLog INSTALL

AM_CPPFLAGS = \
	-DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/src \
	-I$(top_srcdir)/src/xkbcomp \
	-Isrc/xkbcomp/ \
	-include $(top_srcdir)/src/config.h

AM_CFLAGS = \
	$(BASE_CFLAGS) \
	$(XMALLOC_ZERO_CFLAGS)

AM_YFLAGS = -d

xkbcommonincludedir = $(includedir)/xkbcommon
xkbcommoninclude_HEADERS = include/xkbcommon/xkbcommon.h

lib_LTLIBRARIES = libxkbcommon.la
libxkbcommon_la_LDFLAGS = -no-undefined
libxkbcommon_la_SOURCES = \
	src/xkbcomp/action.c \
	src/xkbcomp/action.h \
	src/xkbcomp/alias.c \
	src/xkbcomp/alias.h \
	src/xkbcomp/compat.c \
	src/xkbcomp/expr.c \
	src/xkbcomp/expr.h \
	src/xkbcomp/indicators.c \
	src/xkbcomp/indicators.h \
	src/xkbcomp/keycodes.c \
	src/xkbcomp/keycodes.h \
	src/xkbcomp/keymap.c \
	src/xkbcomp/keytypes.c \
	src/xkbcomp/misc.c \
	src/xkbcomp/misc.h \
	src/xkbcomp/parseutils.c \
	src/xkbcomp/parseutils.h \
	src/xkbcomp/symbols.c \
	src/xkbcomp/vmod.c \
	src/xkbcomp/vmod.h \
	src/xkbcomp/xkbcomp.c \
	src/xkbcomp/xkbcomp.h \
	src/xkbcomp/xkbparse.y \
	src/xkbcomp/xkbpath.c \
	src/xkbcomp/xkbpath.h \
	src/xkbcomp/xkbscan.l \
	src/alloc.c \
	src/atom.c \
	src/context.c \
	src/keysym.c \
	src/malloc.c \
	src/map.c \
	src/maprules.c \
	src/misc.c \
	src/state.c \
	src/text.c \
	src/utils.c \
	src/utils.h \
	src/xkb.c \
	src/xkballoc.h \
	src/xkbmisc.h \
	src/xkbrules.h \
	src/XKBcommonint.h

BUILT_SOURCES = \
	src/xkbcomp/xkbparse.c \
	src/xkbcomp/xkbparse.h \
	src/xkbcomp/xkbscan.c \
	src/ks_tables.h
CLEANFILES = $(BUILT_SOURCES)

noinst_PROGRAMS = makekeys/makekeys
makekeys_makekeys_SOURCES = makekeys/makekeys.c
makekeys_makekeys_CC = $(CC_FOR_BUILD)
makekeys_makekeys_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD)
makekeys_makekeys_CFLAGS = $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
makekeys_makekeys_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD)

src/ks_tables.h: $(KEYSYMDEFS) $(top_builddir)/makekeys/makekeys$(EXEEXT)
	$(top_builddir)/makekeys/makekeys $(KEYSYMDEFS) > $@

# Tests

TESTS_ENVIRONMENT =

TESTS = \
	test/xkey \
	test/filecomp \
	test/namescomp \
	test/rulescomp \
	test/canonicalise \
	test/state \
	test/context
TESTS_LDADD = libxkbcommon.la

test_xkey_LDADD = $(TESTS_LDADD)
test_filecomp_LDADD = $(TESTS_LDADD)
test_namescomp_LDADD = $(TESTS_LDADD)
test_rulescomp_LDADD = $(TESTS_LDADD)
test_canonicalise_LDADD = $(TESTS_LDADD)
test_state_LDADD = $(TESTS_LDADD)
test_context_LDADD = $(TESTS_LDADD)

check_PROGRAMS = $(TESTS)

EXTRA_DIST = test/data