Currently it's required by xkbcommon. However, we will need it for other backends as well, even with xkbcommon support disabled. xproto consisted only of static header files. We use the XK_ keysym definitions. It is therefore only required during compilation and we shouldn't needlessly duplicate it ourselves. Signed-off-by: Ran Benita <ran234@gmail.com>
111 lines
2.2 KiB
Makefile
111 lines
2.2 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
bin_PROGRAMS = kmscon
|
|
check_PROGRAMS = test_console test_output test_vt test_buffer test_terminal \
|
|
test_input
|
|
noinst_LTLIBRARIES = libkmscon-core.la
|
|
|
|
AM_CFLAGS = \
|
|
-Wall
|
|
AM_CPPFLAGS = \
|
|
-I $(srcdir)/src \
|
|
-I $(srcdir)/external
|
|
AM_LDFLAGS = \
|
|
-Wl,--as-needed
|
|
|
|
if DEBUG
|
|
AM_CFLAGS += -O0 -g
|
|
else
|
|
AM_CFLAGS += -O2
|
|
endif
|
|
|
|
libkmscon_core_la_SOURCES = \
|
|
src/console.c src/console.h \
|
|
src/output.c src/output.h \
|
|
src/console_cell.c \
|
|
src/unicode.c src/unicode.h \
|
|
src/log.c src/log.h \
|
|
src/eloop.c src/eloop.h \
|
|
src/vt.c src/vt.h \
|
|
src/input.c src/input.h \
|
|
src/vte.c src/vte.h \
|
|
src/terminal.c src/terminal.h
|
|
|
|
if USE_XKBCOMMON
|
|
libkmscon_core_la_SOURCES += \
|
|
src/kbd_xkb.c src/kbd.h \
|
|
external/imKStoUCS.c external\imKStoUCS.h
|
|
else
|
|
# This is temporary
|
|
endif
|
|
|
|
if USE_PANGO
|
|
libkmscon_core_la_SOURCES += \
|
|
src/font_pango.c src/font.h
|
|
else
|
|
libkmscon_core_la_SOURCES += \
|
|
src/font_freetype.c src/font.h
|
|
endif
|
|
|
|
libkmscon_core_la_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(DRM_CFLAGS) \
|
|
$(EGL_CFLAGS) \
|
|
$(GBM_CFLAGS) \
|
|
$(OPENGL_CFLAGS) \
|
|
$(PANGO_CFLAGS) \
|
|
$(UDEV_CFLAGS) \
|
|
$(FREETYPE2_CFLAGS) \
|
|
$(XPROTO_CFLAGS) \
|
|
$(XKBCOMMON_CFLAGS) \
|
|
$(GLIB_CFLAGS)
|
|
libkmscon_core_la_LIBADD = \
|
|
$(DRM_LIBS) \
|
|
$(EGL_LIBS) \
|
|
$(GBM_LIBS) \
|
|
$(OPENGL_LIBS) \
|
|
$(PANGO_LIBS) \
|
|
$(UDEV_LIBS) \
|
|
$(FREETYPE2_LIBS) \
|
|
$(XPROTO_LIBS) \
|
|
$(XKBCOMMON_LIBS) \
|
|
$(GLIB_LIBS)
|
|
|
|
kmscon_SOURCES = src/main.c
|
|
kmscon_LDADD = libkmscon-core.la
|
|
|
|
test_console_SOURCES = tests/test_console.c
|
|
test_console_LDADD = \
|
|
libkmscon-core.la \
|
|
$(OPENGL_LIBS)
|
|
test_console_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENGL_CFLAGS)
|
|
|
|
test_output_SOURCES = tests/test_output.c
|
|
test_output_LDADD = \
|
|
libkmscon-core.la \
|
|
$(OPENGL_LIBS)
|
|
test_output_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(OPENGL_CFLAGS)
|
|
|
|
test_vt_SOURCES = tests/test_vt.c
|
|
test_vt_LDADD = libkmscon-core.la
|
|
|
|
test_buffer_SOURCES = tests/test_buffer.c
|
|
test_buffer_LDADD = libkmscon-core.la
|
|
|
|
test_terminal_SOURCES = tests/test_terminal.c
|
|
test_terminal_LDADD = libkmscon-core.la
|
|
|
|
test_input_SOURCES = tests/test_input.c
|
|
test_input_LDADD = \
|
|
libkmscon-core.la \
|
|
$(XKBCOMMON_LIBS)
|
|
test_input_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(XKBCOMMON_CFLAGS)
|
|
|
|
EXTRA_DIST = README TODO COPYING
|