1 ACLOCAL_AMFLAGS = -I m4
5 pkgconfigdir = $(libdir)/pkgconfig
6 pkgconfig_DATA = xkbcommon.pc
8 MAINTAINERCLEANFILES = ChangeLog INSTALL
10 .PHONY: ChangeLog INSTALL
18 dist-hook: ChangeLog INSTALL
21 -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
22 -I$(top_srcdir)/include \
24 -I$(top_srcdir)/src/xkbcomp \
25 -I$(top_builddir)/src/xkbcomp \
26 -include $(top_builddir)/src/config.h
30 $(XMALLOC_ZERO_CFLAGS)
34 xkbcommonincludedir = $(includedir)/xkbcommon
35 xkbcommoninclude_HEADERS = \
36 include/xkbcommon/xkbcommon.h \
37 include/xkbcommon/xkbcommon-names.h \
38 include/xkbcommon/xkbcommon-keysyms.h
40 lib_LTLIBRARIES = libxkbcommon.la
41 libxkbcommon_la_LDFLAGS = -no-undefined
42 libxkbcommon_la_SOURCES = \
43 src/xkbcomp/action.c \
44 src/xkbcomp/action.h \
47 src/xkbcomp/compat.c \
50 src/xkbcomp/indicators.c \
51 src/xkbcomp/indicators.h \
52 src/xkbcomp/keycodes.c \
53 src/xkbcomp/keycodes.h \
54 src/xkbcomp/keymap.c \
55 src/xkbcomp/keytypes.c \
57 src/xkbcomp/parser.y \
58 src/xkbcomp/parseutils.c \
59 src/xkbcomp/parseutils.h \
64 src/xkbcomp/scanner.l \
65 src/xkbcomp/symbols.c \
68 src/xkbcomp/xkbcomp.c \
69 src/xkbcomp/xkbcomp.h \
70 src/xkbcomp/xkbcomp-priv.h \
88 src/xkbcomp/parser.c \
89 src/xkbcomp/parser.h \
90 src/xkbcomp/scanner.c \
92 CLEANFILES = $(BUILT_SOURCES)
94 src/ks_tables.h: $(KEYSYMDEFS) $(top_builddir)/makekeys/makekeys$(EXEEXT)
95 $(AM_V_GEN)$(top_builddir)/makekeys/makekeys $(top_srcdir)/include/xkbcommon/xkbcommon-keysyms.h > $@
97 $(top_builddir)/makekeys/makekeys$(EXEEXT): $(top_srcdir)/makekeys/makekeys.c
102 # Some tests need to use unexported symbols, so we link them against
103 # a private copy of libxkbcommon with all symbols exposed.
104 noinst_LTLIBRARIES = libxkbcommon-priv.la
105 libxkbcommon_priv_la_LDFLAGS = $(libxkbcommon_la_LDFLAGS)
106 libxkbcommon_priv_la_SOURCES = $(libxkbcommon_la_SOURCES)
119 TESTS_LDADD = libxkbcommon-priv.la
121 test_xkey_LDADD = $(TESTS_LDADD)
122 test_filecomp_LDADD = $(TESTS_LDADD)
123 test_namescomp_LDADD = $(TESTS_LDADD)
124 test_rulescomp_LDADD = $(TESTS_LDADD) -lrt
125 test_canonicalise_LDADD = $(TESTS_LDADD)
126 test_state_LDADD = $(TESTS_LDADD)
127 test_context_LDADD = $(TESTS_LDADD)
128 test_rules_file_CFLAGS = $(AM_CFLAGS) -Wno-declaration-after-statement
129 test_rules_file_LDADD = $(TESTS_LDADD)
131 check_PROGRAMS = $(TESTS)
133 EXTRA_DIST = test/data
135 # This sed script strips out lines that start with '#define _' which
136 # removes #define _OSF_Keysyms and such. The XK_Ydiaeresis case is to
137 # handle a duplicate definition in HPkeysyms.h which kicks in if it's
138 # not already defined.
141 sed -e '/XK_Ydiaeresis\s*0x100000ee/d; /#define _/d; s/#define\s*\(\w*\)XK_/#define XKB_KEY_\1/; /\(#ifdef\|#ifndef\|#endif\)/d' $(KEYSYMDEFS) > include/xkbcommon/xkbcommon-keysyms.h