1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
3 pkgconfigdir = $(libdir)/pkgconfig
4 pkgconfig_DATA = xkbcommon.pc
7 -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
9 -I$(top_srcdir)/src/xkbcomp \
10 -I$(top_builddir)/src/xkbcomp \
11 -include $(top_builddir)/src/config.h
13 AM_CFLAGS = $(BASE_CFLAGS)
15 AM_LFLAGS = -o lex.yy.c
18 xkbcommonincludedir = $(includedir)/xkbcommon
19 xkbcommoninclude_HEADERS = \
20 xkbcommon/xkbcommon.h \
21 xkbcommon/xkbcommon-compat.h \
22 xkbcommon/xkbcommon-keysyms.h \
23 xkbcommon/xkbcommon-names.h
25 lib_LTLIBRARIES = libxkbcommon.la
26 libxkbcommon_la_LDFLAGS = -no-undefined
27 libxkbcommon_la_SOURCES = \
28 src/xkbcomp/action.c \
29 src/xkbcomp/action.h \
31 src/xkbcomp/ast-build.c \
32 src/xkbcomp/ast-build.h \
33 src/xkbcomp/compat.c \
36 src/xkbcomp/include.c \
37 src/xkbcomp/include.h \
38 src/xkbcomp/keycodes.c \
39 src/xkbcomp/keymap.c \
40 src/xkbcomp/keymap-dump.c \
41 src/xkbcomp/parser.y \
42 src/xkbcomp/parser-priv.h \
45 src/xkbcomp/scanner.l \
46 src/xkbcomp/scanner-utils.h \
47 src/xkbcomp/symbols.c \
51 src/xkbcomp/xkbcomp.c \
52 src/xkbcomp/xkbcomp-priv.h \
72 src/xkbcomp/parser.c \
73 src/xkbcomp/parser.h \
75 CLEANFILES = $(BUILT_SOURCES)
77 src/xkbcomp/parser.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
78 src/xkbcomp/parser.h: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
79 src/xkbcomp/scanner.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
85 doc: doc/stamp-doxygen
86 clean-doc: clean-doxygen
88 clean-local:: clean-doc
90 doc/stamp-doxygen: $(top_srcdir)/xkbcommon/*.h
91 $(AM_V_GEN)$(DOXYGEN) doc/Doxyfile
95 rm -rf doc/html doc/stamp-doxygen
97 install-data-local:: doc
98 $(MKDIR_P) $(DESTDIR)$(htmldir)
99 $(INSTALL_DATA) doc/html/* $(DESTDIR)$(htmldir)
102 rm -rf $(DESTDIR)$(htmldir)
109 # Some tests need to use unexported symbols, so we link them against
110 # a private copy of libxkbcommon with all symbols exposed.
111 noinst_LTLIBRARIES = libtest.la
112 libtest_la_LDFLAGS = $(libxkbcommon_la_LDFLAGS)
113 libtest_la_SOURCES = \
114 $(libxkbcommon_la_SOURCES) \
118 AM_TESTS_ENVIRONMENT = \
119 XKB_LOG_LEVEL=debug; export XKB_LOG_LEVEL; \
120 XKB_LOG_VERBOSITY=10; export XKB_LOG_VERBOSITY; \
121 $(XORG_MALLOC_DEBUG_ENV)
131 TESTS_LDADD = libtest.la
133 test_keysym_LDADD = $(TESTS_LDADD)
134 test_filecomp_LDADD = $(TESTS_LDADD)
135 test_rulescomp_LDADD = $(TESTS_LDADD) -lrt
136 test_context_LDADD = $(TESTS_LDADD)
137 test_rules_file_CFLAGS = $(AM_CFLAGS) -Wno-declaration-after-statement
138 test_rules_file_LDADD = $(TESTS_LDADD) -lrt
139 test_stringcomp_LDADD = $(TESTS_LDADD)
140 test_buffercomp_LDADD = $(TESTS_LDADD)
141 test_log_LDADD = $(TESTS_LDADD)
142 test_rmlvo_to_kccgst_LDADD = $(TESTS_LDADD)
143 test_print_compiled_keymap_LDADD = $(TESTS_LDADD)
144 test_bench_key_proc_LDADD = $(TESTS_LDADD) -lrt
148 test/rmlvo-to-kccgst \
149 test/print-compiled-keymap \
158 test_keyseq_LDADD = $(TESTS_LDADD)
159 test_state_LDADD = $(TESTS_LDADD)
160 test_interactive_LDADD = $(TESTS_LDADD)
165 endif BUILD_LINUX_TESTS
170 # This sed script strips out lines that start with '#define _' which
171 # removes #define _OSF_Keysyms and such. The XK_Ydiaeresis case is to
172 # handle a duplicate definition in HPkeysyms.h which kicks in if it's
173 # not already defined.
175 X11_INCLUDEDIR = /usr/include/X11
177 $(X11_INCLUDEDIR)/keysymdef.h \
178 $(X11_INCLUDEDIR)/XF86keysym.h \
179 $(X11_INCLUDEDIR)/Sunkeysym.h \
180 $(X11_INCLUDEDIR)/DECkeysym.h \
181 $(X11_INCLUDEDIR)/HPkeysym.h
183 echo -en '#ifndef _XKBCOMMON_KEYSYMS_H\n#define _XKBCOMMON_KEYSYMS_H\n\n' > $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h
184 echo -en '/* This file is autogenerated from Makefile.am; please do not commit directly. */\n\n' >> $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h
185 echo -en '#define XKB_KEY_NoSymbol 0x000000 /* Special KeySym */\n\n' >> $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h
186 sed -e '/XK_Ydiaeresis\s*0x100000ee/d' \
188 -e 's/#define\s*\(\w*\)XK_/#define XKB_KEY_\1/' \
189 -e '/\(#ifdef\|#ifndef\|#endif\)/d' $(KEYSYMDEFS) >> $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h
190 echo -en '\n\n#endif\n' >> $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h
191 echo -en '/* This file is autogenerated from Makefile.am; please do not commit directly. */\n\n' > $(top_srcdir)/src/ks_tables.h
192 LC_CTYPE=C python $(top_srcdir)/makekeys.py $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h >> $(top_srcdir)/src/ks_tables.h
196 Android_build.mk: Makefile $(BUILT_SOURCES)
198 -:PROJECT libxkbcommon \
199 -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
201 -:STATIC libxkbcommon \
203 -:SOURCES $(filter-out %.l %.y,$(libxkbcommon_la_SOURCES)) $(BUILT_SOURCES) \
204 -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS) \
205 -:LDFLAGS $(libxkbcommon_la_LDFLAGS) \
207 -:PASSTHROUGH 'libxkbcommon-clean: clean-libxkbcommon' \