2012-03-23 20:48:31 -06:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2012-05-08 02:46:58 -06:00
|
|
|
SUBDIRS = makekeys
|
|
|
|
|
2009-04-01 07:22:06 -06:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = xkbcommon.pc
|
|
|
|
|
2010-12-07 08:39:16 -07:00
|
|
|
MAINTAINERCLEANFILES = ChangeLog INSTALL
|
2009-01-13 19:25:35 -07:00
|
|
|
|
2010-12-07 08:39:16 -07:00
|
|
|
.PHONY: ChangeLog INSTALL
|
2009-01-13 19:25:35 -07:00
|
|
|
|
2010-12-07 08:39:16 -07:00
|
|
|
INSTALL:
|
|
|
|
$(INSTALL_CMD)
|
2009-01-13 19:25:35 -07:00
|
|
|
|
|
|
|
ChangeLog:
|
|
|
|
$(CHANGELOG_CMD)
|
|
|
|
|
2010-12-07 08:39:16 -07:00
|
|
|
dist-hook: ChangeLog INSTALL
|
2012-03-23 20:48:31 -06:00
|
|
|
|
2012-03-27 08:51:28 -06:00
|
|
|
AM_CPPFLAGS = \
|
2012-04-08 06:38:04 -06:00
|
|
|
-DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
|
2012-03-27 08:51:28 -06:00
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-I$(top_srcdir)/src/xkbcomp \
|
2012-05-09 08:23:44 -06:00
|
|
|
-I$(top_builddir)/src/xkbcomp \
|
2012-05-15 06:23:40 -06:00
|
|
|
-include $(top_builddir)/src/config.h
|
2012-04-08 06:38:04 -06:00
|
|
|
|
2012-03-23 20:48:31 -06:00
|
|
|
AM_CFLAGS = \
|
2012-04-08 06:38:04 -06:00
|
|
|
$(BASE_CFLAGS) \
|
|
|
|
$(XMALLOC_ZERO_CFLAGS)
|
|
|
|
|
2012-03-23 20:48:31 -06:00
|
|
|
AM_YFLAGS = -d
|
|
|
|
|
|
|
|
xkbcommonincludedir = $(includedir)/xkbcommon
|
2012-05-08 10:59:35 -06:00
|
|
|
xkbcommoninclude_HEADERS = \
|
2012-07-22 15:41:27 -06:00
|
|
|
xkbcommon/xkbcommon.h \
|
|
|
|
xkbcommon/xkbcommon-names.h \
|
|
|
|
xkbcommon/xkbcommon-keysyms.h
|
2012-03-23 20:48:31 -06:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libxkbcommon.la
|
|
|
|
libxkbcommon_la_LDFLAGS = -no-undefined
|
|
|
|
libxkbcommon_la_SOURCES = \
|
|
|
|
src/xkbcomp/action.c \
|
|
|
|
src/xkbcomp/action.h \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/ast.h \
|
|
|
|
src/xkbcomp/ast-build.c \
|
|
|
|
src/xkbcomp/ast-build.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/compat.c \
|
|
|
|
src/xkbcomp/expr.c \
|
|
|
|
src/xkbcomp/expr.h \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/include.c \
|
|
|
|
src/xkbcomp/include.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/keycodes.c \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/keycodes.h \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/parser.y \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/parser-priv.h \
|
2012-05-13 00:49:08 -06:00
|
|
|
src/xkbcomp/rules.c \
|
|
|
|
src/xkbcomp/rules.h \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/scanner.l \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/symbols.c \
|
2012-08-13 02:00:43 -06:00
|
|
|
src/xkbcomp/types.c \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/vmod.c \
|
|
|
|
src/xkbcomp/vmod.h \
|
|
|
|
src/xkbcomp/xkbcomp.c \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/xkbcomp-priv.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/atom.c \
|
2012-05-08 05:52:23 -06:00
|
|
|
src/atom.h \
|
2012-03-27 09:59:01 -06:00
|
|
|
src/context.c \
|
2012-05-21 14:33:56 -06:00
|
|
|
src/darray.h \
|
2012-05-25 10:05:39 -06:00
|
|
|
src/keymap-dump.c \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/keysym.c \
|
2012-06-08 06:10:28 -06:00
|
|
|
src/keysym-utf.c \
|
2012-07-16 02:06:33 -06:00
|
|
|
src/list.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/map.c \
|
|
|
|
src/state.c \
|
|
|
|
src/text.c \
|
2012-05-08 05:52:23 -06:00
|
|
|
src/text.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/utils.h \
|
2012-05-08 05:52:23 -06:00
|
|
|
src/xkb-priv.h
|
2012-03-23 20:48:31 -06:00
|
|
|
|
2012-03-27 08:51:28 -06:00
|
|
|
BUILT_SOURCES = \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/parser.c \
|
|
|
|
src/xkbcomp/parser.h \
|
|
|
|
src/xkbcomp/scanner.c \
|
2012-03-27 08:51:28 -06:00
|
|
|
src/ks_tables.h
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2012-03-23 20:48:31 -06:00
|
|
|
|
2012-06-04 09:14:42 -06:00
|
|
|
src/xkbcomp/parser.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
|
|
|
|
src/xkbcomp/parser.h: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
|
|
|
|
src/xkbcomp/scanner.c: $(top_builddir)/src/$(am__dirstamp) $(top_builddir)/src/xkbcomp/$(am__dirstamp)
|
2012-06-04 07:06:01 -06:00
|
|
|
|
2012-05-20 11:51:50 -06:00
|
|
|
src/ks_tables.h: $(top_builddir)/makekeys/makekeys$(EXEEXT)
|
2012-07-22 15:41:27 -06:00
|
|
|
$(AM_V_GEN)$(top_builddir)/makekeys/makekeys $(top_srcdir)/xkbcommon/xkbcommon-keysyms.h > $@
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2012-05-08 02:46:58 -06:00
|
|
|
$(top_builddir)/makekeys/makekeys$(EXEEXT): $(top_srcdir)/makekeys/makekeys.c
|
|
|
|
$(MAKE) -C makekeys
|
|
|
|
|
2012-03-30 17:44:39 -06:00
|
|
|
# Tests
|
|
|
|
|
2012-05-18 17:35:15 -06:00
|
|
|
# Some tests need to use unexported symbols, so we link them against
|
|
|
|
# a private copy of libxkbcommon with all symbols exposed.
|
2012-07-12 07:15:08 -06:00
|
|
|
noinst_LTLIBRARIES = libtest.la
|
|
|
|
libtest_la_LDFLAGS = $(libxkbcommon_la_LDFLAGS)
|
|
|
|
libtest_la_SOURCES = \
|
|
|
|
$(libxkbcommon_la_SOURCES) \
|
|
|
|
test/common.c
|
2012-05-18 17:35:15 -06:00
|
|
|
|
2012-03-30 17:44:39 -06:00
|
|
|
TESTS_ENVIRONMENT =
|
|
|
|
|
|
|
|
TESTS = \
|
2012-08-02 19:32:30 -06:00
|
|
|
test/keysym \
|
2012-03-30 17:44:39 -06:00
|
|
|
test/filecomp \
|
|
|
|
test/rulescomp \
|
|
|
|
test/state \
|
2012-05-18 17:35:15 -06:00
|
|
|
test/context \
|
2012-05-25 10:05:39 -06:00
|
|
|
test/rules-file \
|
2012-04-10 12:20:27 -06:00
|
|
|
test/stringcomp \
|
2012-07-22 10:38:14 -06:00
|
|
|
test/keyseq \
|
|
|
|
test/log
|
2012-07-12 07:15:08 -06:00
|
|
|
TESTS_LDADD = libtest.la
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2012-08-02 19:32:30 -06:00
|
|
|
test_keysym_LDADD = $(TESTS_LDADD)
|
2012-03-30 17:44:39 -06:00
|
|
|
test_filecomp_LDADD = $(TESTS_LDADD)
|
2012-05-17 17:56:36 -06:00
|
|
|
test_rulescomp_LDADD = $(TESTS_LDADD) -lrt
|
2012-03-30 17:44:39 -06:00
|
|
|
test_state_LDADD = $(TESTS_LDADD)
|
|
|
|
test_context_LDADD = $(TESTS_LDADD)
|
2012-05-18 17:35:15 -06:00
|
|
|
test_rules_file_CFLAGS = $(AM_CFLAGS) -Wno-declaration-after-statement
|
|
|
|
test_rules_file_LDADD = $(TESTS_LDADD)
|
2012-05-29 08:08:35 -06:00
|
|
|
test_stringcomp_LDADD = $(TESTS_LDADD)
|
2012-04-10 12:20:27 -06:00
|
|
|
test_keyseq_LDADD = $(TESTS_LDADD)
|
2012-07-22 10:38:14 -06:00
|
|
|
test_log_LDADD = $(TESTS_LDADD)
|
2012-04-07 17:20:39 -06:00
|
|
|
test_interactive_LDADD = $(TESTS_LDADD)
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2012-04-07 17:20:39 -06:00
|
|
|
check_PROGRAMS = \
|
|
|
|
$(TESTS) \
|
|
|
|
test/interactive
|
2012-03-30 17:44:39 -06:00
|
|
|
|
2012-07-12 07:15:08 -06:00
|
|
|
EXTRA_DIST = \
|
|
|
|
test/data \
|
|
|
|
test/test.h
|
2012-05-09 06:33:04 -06:00
|
|
|
|
|
|
|
# This sed script strips out lines that start with '#define _' which
|
|
|
|
# removes #define _OSF_Keysyms and such. The XK_Ydiaeresis case is to
|
|
|
|
# handle a duplicate definition in HPkeysyms.h which kicks in if it's
|
|
|
|
# not already defined.
|
|
|
|
|
2012-05-20 11:51:50 -06:00
|
|
|
X11_INCLUDEDIR = /usr/include/X11
|
|
|
|
KEYSYMDEFS = \
|
|
|
|
$(X11_INCLUDEDIR)/keysymdef.h \
|
|
|
|
$(X11_INCLUDEDIR)/XF86keysym.h \
|
|
|
|
$(X11_INCLUDEDIR)/Sunkeysym.h \
|
|
|
|
$(X11_INCLUDEDIR)/DECkeysym.h \
|
|
|
|
$(X11_INCLUDEDIR)/HPkeysym.h
|
2012-05-09 06:33:04 -06:00
|
|
|
update-keysyms:
|
2012-07-22 15:41:27 -06:00
|
|
|
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
|
2012-05-14 05:33:29 -06:00
|
|
|
|
|
|
|
# Android stuff
|
|
|
|
|
|
|
|
Android_build.mk: Makefile $(BUILT_SOURCES)
|
|
|
|
androgenizer \
|
|
|
|
-:PROJECT libxkbcommon \
|
|
|
|
-:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
|
|
|
|
\
|
|
|
|
-:STATIC libxkbcommon \
|
|
|
|
-:TAGS eng debug \
|
|
|
|
-:SOURCES $(filter-out %.l %.y,$(libxkbcommon_la_SOURCES)) $(BUILT_SOURCES) \
|
|
|
|
-:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) $(AM_CFLAGS) \
|
|
|
|
-:LDFLAGS $(libxkbcommon_la_LDFLAGS) \
|
|
|
|
\
|
|
|
|
-:PASSTHROUGH 'libxkbcommon-clean: clean-libxkbcommon' \
|
|
|
|
> $@
|