Fix bugs to allow multiple keymaps in one process
[profile/ivi/libxkbcommon.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 SUBDIRS = . test
4
5 pkgconfigdir = $(libdir)/pkgconfig
6 pkgconfig_DATA = xkbcommon.pc
7
8 MAINTAINERCLEANFILES = ChangeLog INSTALL
9
10 .PHONY: ChangeLog INSTALL
11
12 INSTALL:
13         $(INSTALL_CMD)
14
15 ChangeLog:
16         $(CHANGELOG_CMD)
17
18 dist-hook: ChangeLog INSTALL
19
20 AM_CPPFLAGS = \
21         -I$(top_srcdir)/include \
22         -I$(top_srcdir)/src \
23         -I$(top_srcdir)/src/xkbcomp \
24         -Isrc/xkbcomp
25 AM_CFLAGS = \
26         $(X11_CFLAGS) \
27         $(XORG_COMPILER_FLAGS) \
28         $(XMALLOC_ZERO_CFLAGS) \
29         -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"'
30 AM_YFLAGS = -d
31
32 xkbcommonincludedir = $(includedir)/xkbcommon
33 xkbcommoninclude_HEADERS = include/xkbcommon/xkbcommon.h
34
35 lib_LTLIBRARIES = libxkbcommon.la
36 libxkbcommon_la_LDFLAGS = -no-undefined
37 libxkbcommon_la_SOURCES = \
38         src/xkbcomp/action.c \
39         src/xkbcomp/action.h \
40         src/xkbcomp/alias.c \
41         src/xkbcomp/alias.h \
42         src/xkbcomp/compat.c \
43         src/xkbcomp/expr.c \
44         src/xkbcomp/expr.h \
45         src/xkbcomp/indicators.c \
46         src/xkbcomp/indicators.h \
47         src/xkbcomp/keycodes.c \
48         src/xkbcomp/keycodes.h \
49         src/xkbcomp/keymap.c \
50         src/xkbcomp/keytypes.c \
51         src/xkbcomp/misc.c \
52         src/xkbcomp/misc.h \
53         src/xkbcomp/parseutils.c \
54         src/xkbcomp/parseutils.h \
55         src/xkbcomp/symbols.c \
56         src/xkbcomp/vmod.c \
57         src/xkbcomp/vmod.h \
58         src/xkbcomp/xkbcomp.c \
59         src/xkbcomp/xkbcomp.h \
60         src/xkbcomp/xkbparse.y \
61         src/xkbcomp/xkbpath.c \
62         src/xkbcomp/xkbpath.h \
63         src/xkbcomp/xkbscan.l \
64         src/alloc.c \
65         src/atom.c \
66         src/context.c \
67         src/keysym.c \
68         src/malloc.c \
69         src/map.c \
70         src/maprules.c \
71         src/misc.c \
72         src/state.c \
73         src/text.c \
74         src/utils.c \
75         src/utils.h \
76         src/xkb.c \
77         src/xkballoc.h \
78         src/xkbmisc.h \
79         src/xkbrules.h \
80         src/XKBcommonint.h
81
82 BUILT_SOURCES = \
83         src/xkbcomp/xkbparse.c \
84         src/xkbcomp/xkbparse.h \
85         src/xkbcomp/xkbscan.c \
86         src/ks_tables.h
87 CLEANFILES = $(BUILT_SOURCES)
88
89 noinst_PROGRAMS = makekeys/makekeys
90 makekeys_makekeys_SOURCES = makekeys/makekeys.c
91 makekeys_makekeys_CC = $(CC_FOR_BUILD)
92 makekeys_makekeys_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD)
93 makekeys_makekeys_CFLAGS = $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
94 makekeys_makekeys_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD)
95
96 src/ks_tables.h: $(KEYSYMDEFS) $(top_builddir)/makekeys/makekeys$(EXEEXT)
97         $(top_builddir)/makekeys/makekeys $(KEYSYMDEFS) > $@