Rename XKBcommonint.h to xkb-priv.h and use it
[platform/upstream/libxkbcommon.git] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 pkgconfigdir = $(libdir)/pkgconfig
4 pkgconfig_DATA = xkbcommon.pc
5
6 MAINTAINERCLEANFILES = ChangeLog INSTALL
7
8 .PHONY: ChangeLog INSTALL
9
10 INSTALL:
11         $(INSTALL_CMD)
12
13 ChangeLog:
14         $(CHANGELOG_CMD)
15
16 dist-hook: ChangeLog INSTALL
17
18 AM_CPPFLAGS = \
19         -DDFLT_XKB_CONFIG_ROOT='"$(XKBCONFIGROOT)"' \
20         -I$(top_srcdir)/include \
21         -I$(top_srcdir)/src \
22         -I$(top_srcdir)/src/xkbcomp \
23         -include $(top_srcdir)/src/config.h
24
25 AM_CFLAGS = \
26         $(BASE_CFLAGS) \
27         $(XMALLOC_ZERO_CFLAGS)
28
29 AM_YFLAGS = -d
30
31 xkbcommonincludedir = $(includedir)/xkbcommon
32 xkbcommoninclude_HEADERS = include/xkbcommon/xkbcommon.h
33
34 lib_LTLIBRARIES = libxkbcommon.la
35 libxkbcommon_la_LDFLAGS = -no-undefined
36 libxkbcommon_la_SOURCES = \
37         src/xkbcomp/action.c \
38         src/xkbcomp/action.h \
39         src/xkbcomp/alias.c \
40         src/xkbcomp/alias.h \
41         src/xkbcomp/compat.c \
42         src/xkbcomp/expr.c \
43         src/xkbcomp/expr.h \
44         src/xkbcomp/indicators.c \
45         src/xkbcomp/indicators.h \
46         src/xkbcomp/keycodes.c \
47         src/xkbcomp/keycodes.h \
48         src/xkbcomp/keymap.c \
49         src/xkbcomp/keytypes.c \
50         src/xkbcomp/misc.c \
51         src/xkbcomp/parser.y \
52         src/xkbcomp/parseutils.c \
53         src/xkbcomp/parseutils.h \
54         src/xkbcomp/path.c \
55         src/xkbcomp/scanner.l \
56         src/xkbcomp/symbols.c \
57         src/xkbcomp/vmod.c \
58         src/xkbcomp/vmod.h \
59         src/xkbcomp/xkbcomp.c \
60         src/xkbcomp/xkbcomp.h \
61         src/xkbcomp/xkbcomp-priv.h \
62         src/alloc.c \
63         src/alloc.h \
64         src/atom.c \
65         src/atom.h \
66         src/context.c \
67         src/keysym.c \
68         src/map.c \
69         src/misc.c \
70         src/rules.c \
71         src/rules.h \
72         src/state.c \
73         src/text.c \
74         src/text.h \
75         src/utils.c \
76         src/utils.h \
77         src/xkb.c \
78         src/xkb-priv.h
79
80 BUILT_SOURCES = \
81         src/xkbcomp/parser.c \
82         src/xkbcomp/parser.h \
83         src/xkbcomp/scanner.c \
84         src/ks_tables.h
85 CLEANFILES = $(BUILT_SOURCES)
86
87 noinst_PROGRAMS = makekeys/makekeys
88 makekeys_makekeys_SOURCES = makekeys/makekeys.c
89 makekeys_makekeys_CC = $(CC_FOR_BUILD)
90 makekeys_makekeys_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_FOR_BUILD)
91 makekeys_makekeys_CFLAGS = $(AM_CFLAGS) $(CFLAGS_FOR_BUILD)
92 makekeys_makekeys_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS_FOR_BUILD)
93
94 src/ks_tables.h: $(KEYSYMDEFS) $(top_builddir)/makekeys/makekeys$(EXEEXT)
95         $(top_builddir)/makekeys/makekeys $(KEYSYMDEFS) > $@
96
97 # Tests
98
99 TESTS_ENVIRONMENT =
100
101 TESTS = \
102         test/xkey \
103         test/filecomp \
104         test/namescomp \
105         test/rulescomp \
106         test/canonicalise \
107         test/state \
108         test/context
109 TESTS_LDADD = libxkbcommon.la
110
111 test_xkey_LDADD = $(TESTS_LDADD)
112 test_filecomp_LDADD = $(TESTS_LDADD)
113 test_namescomp_LDADD = $(TESTS_LDADD)
114 test_rulescomp_LDADD = $(TESTS_LDADD)
115 test_canonicalise_LDADD = $(TESTS_LDADD)
116 test_state_LDADD = $(TESTS_LDADD)
117 test_context_LDADD = $(TESTS_LDADD)
118
119 check_PROGRAMS = $(TESTS)
120
121 EXTRA_DIST = test/data