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)"' \
23 -I$(top_srcdir)/src/xkbcomp \
24 -I$(top_builddir)/src/xkbcomp \
25 -include $(top_builddir)/src/config.h
29 $(XMALLOC_ZERO_CFLAGS)
33 xkbcommonincludedir = $(includedir)/xkbcommon
34 xkbcommoninclude_HEADERS = \
35 xkbcommon/xkbcommon.h \
36 xkbcommon/xkbcommon-names.h \
37 xkbcommon/xkbcommon-keysyms.h
39 lib_LTLIBRARIES = libxkbcommon.la
40 libxkbcommon_la_LDFLAGS = -no-undefined
41 libxkbcommon_la_SOURCES = \
42 src/xkbcomp/action.c \
43 src/xkbcomp/action.h \
44 src/xkbcomp/compat.c \
47 src/xkbcomp/keycodes.c \
48 src/xkbcomp/keytypes.c \
50 src/xkbcomp/parser.y \
51 src/xkbcomp/parseutils.c \
52 src/xkbcomp/parseutils.h \
57 src/xkbcomp/scanner.l \
58 src/xkbcomp/symbols.c \
61 src/xkbcomp/xkbcomp.c \
62 src/xkbcomp/xkbcomp.h \
63 src/xkbcomp/xkbcomp-priv.h \
80 src/xkbcomp/parser.c \
81 src/xkbcomp/parser.h \
82 src/xkbcomp/scanner.c \
84 CLEANFILES = $(BUILT_SOURCES)
86 src/xkbcomp/parser.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
87 src/xkbcomp/parser.h: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
88 src/xkbcomp/scanner.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
90 src/ks_tables.h: $(top_builddir)/makekeys/makekeys$(EXEEXT)
91 $(AM_V_GEN)$(top_builddir)/makekeys/makekeys $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h > $@
93 $(top_builddir)/makekeys/makekeys$(EXEEXT): $(top_srcdir)/makekeys/makekeys.c
98 # Some tests need to use unexported symbols, so we link them against
99 # a private copy of libxkbcommon with all symbols exposed.
100 noinst_LTLIBRARIES = libtest.la
101 libtest_la_LDFLAGS = $(libxkbcommon_la_LDFLAGS)
102 libtest_la_SOURCES = \
103 $(libxkbcommon_la_SOURCES) \
120 TESTS_LDADD = libtest.la
122 test_xkey_LDADD = $(TESTS_LDADD)
123 test_filecomp_LDADD = $(TESTS_LDADD)
124 test_namescomp_LDADD = $(TESTS_LDADD)
125 test_rulescomp_LDADD = $(TESTS_LDADD) -lrt
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)
130 test_dump_LDADD = $(TESTS_LDADD)
131 test_stringcomp_LDADD = $(TESTS_LDADD)
132 test_keyseq_LDADD = $(TESTS_LDADD)
133 test_log_LDADD = $(TESTS_LDADD)
134 test_interactive_LDADD = $(TESTS_LDADD)
144 # This sed script strips out lines that start with '#define _' which
145 # removes #define _OSF_Keysyms and such. The XK_Ydiaeresis case is to
146 # handle a duplicate definition in HPkeysyms.h which kicks in if it's
147 # not already defined.
149 X11_INCLUDEDIR = /usr/include/X11
151 $(X11_INCLUDEDIR)/keysymdef.h \
152 $(X11_INCLUDEDIR)/XF86keysym.h \
153 $(X11_INCLUDEDIR)/Sunkeysym.h \
154 $(X11_INCLUDEDIR)/DECkeysym.h \
155 $(X11_INCLUDEDIR)/HPkeysym.h
157 sed -e '/XK_Ydiaeresis\s*0x100000ee/d; /#define _/d; s/#define\s*\(\w*\)XK_/#define XKB_KEY_\1/; /\(#ifdef\|#ifndef\|#endif\)/d' $(KEYSYMDEFS) > xkbcommon/xkbcommon-keysyms.h