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)/include \
|
|
|
|
-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 = \
|
|
|
|
include/xkbcommon/xkbcommon.h \
|
2012-05-11 07:28:54 -06:00
|
|
|
include/xkbcommon/xkbcommon-names.h \
|
|
|
|
include/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 \
|
|
|
|
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 \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/parser.y \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/xkbcomp/parseutils.c \
|
|
|
|
src/xkbcomp/parseutils.h \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/path.c \
|
2012-05-13 01:14:10 -06:00
|
|
|
src/xkbcomp/path.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 \
|
|
|
|
src/xkbcomp/vmod.c \
|
|
|
|
src/xkbcomp/vmod.h \
|
|
|
|
src/xkbcomp/xkbcomp.c \
|
|
|
|
src/xkbcomp/xkbcomp.h \
|
2012-05-08 04:57:07 -06:00
|
|
|
src/xkbcomp/xkbcomp-priv.h \
|
2012-03-23 20:48:31 -06:00
|
|
|
src/alloc.c \
|
2012-05-08 05:52:23 -06:00
|
|
|
src/alloc.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-03-23 20:48:31 -06:00
|
|
|
src/keysym.c \
|
|
|
|
src/map.c \
|
|
|
|
src/misc.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.c \
|
|
|
|
src/utils.h \
|
|
|
|
src/xkb.c \
|
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
|
|
|
|
|
|
|
src/ks_tables.h: $(KEYSYMDEFS) $(top_builddir)/makekeys/makekeys$(EXEEXT)
|
2012-05-11 09:14:27 -06:00
|
|
|
$(AM_V_GEN)$(top_builddir)/makekeys/makekeys $(top_srcdir)/include/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.
|
|
|
|
noinst_LTLIBRARIES = libxkbcommon-priv.la
|
|
|
|
libxkbcommon_priv_la_LDFLAGS = $(libxkbcommon_la_LDFLAGS)
|
|
|
|
libxkbcommon_priv_la_SOURCES = $(libxkbcommon_la_SOURCES)
|
|
|
|
|
2012-03-30 17:44:39 -06:00
|
|
|
TESTS_ENVIRONMENT =
|
|
|
|
|
|
|
|
TESTS = \
|
|
|
|
test/xkey \
|
|
|
|
test/filecomp \
|
|
|
|
test/namescomp \
|
|
|
|
test/rulescomp \
|
|
|
|
test/canonicalise \
|
|
|
|
test/state \
|
2012-05-18 17:35:15 -06:00
|
|
|
test/context \
|
|
|
|
test/rules-file
|
|
|
|
TESTS_LDADD = libxkbcommon-priv.la
|
2012-03-30 17:44:39 -06:00
|
|
|
|
|
|
|
test_xkey_LDADD = $(TESTS_LDADD)
|
|
|
|
test_filecomp_LDADD = $(TESTS_LDADD)
|
|
|
|
test_namescomp_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_canonicalise_LDADD = $(TESTS_LDADD)
|
|
|
|
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-03-30 17:44:39 -06:00
|
|
|
|
|
|
|
check_PROGRAMS = $(TESTS)
|
|
|
|
|
|
|
|
EXTRA_DIST = test/data
|
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.
|
|
|
|
|
|
|
|
update-keysyms:
|
|
|
|
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
|