We will be adding more applications to this repository, so to keep better
overview, we prefix kmscon sources with kmscon_*.
The only sources that have no prefix are either shared between
applications (i.e., statically linked) or they were not cleaned up, yet.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
$(SHL_TIMER) \
$(SHL_HOOK) \
$(SHL_MISC) \
- src/main.h \
src/conf.c src/conf.h \
- src/ui.c src/ui.h \
src/log.c src/log.h \
- src/terminal.c src/terminal.h \
src/pty.c src/pty.h \
src/text.h \
src/text.c
kmscon_SOURCES = \
$(SHL_DLIST) \
$(SHL_MISC) \
- src/main.c
+ src/kmscon_terminal.h \
+ src/kmscon_terminal.c \
+ src/kmscon_ui.h \
+ src/kmscon_ui.c \
+ src/kmscon_main.h \
+ src/kmscon_main.c
kmscon_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(XKBCOMMON_CFLAGS)
AC_INIT([kmscon], [5])
AC_SUBST(PACKAGE_URL, [https://github.com/dvdhrm/kmscon])
-AC_CONFIG_SRCDIR([src/main.c])
+AC_CONFIG_SRCDIR([src/kmscon_main.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADER(config.h)
#include <sys/signalfd.h>
#include "conf.h"
#include "eloop.h"
+#include "kmscon_main.h"
+#include "kmscon_ui.h"
#include "log.h"
-#include "main.h"
#include "shl_dlist.h"
#include "shl_misc.h"
#include "text.h"
-#include "ui.h"
#include "uterm.h"
struct kmscon_app {
#include <stdlib.h>
#include <string.h>
#include "eloop.h"
+#include "kmscon_main.h"
+#include "kmscon_terminal.h"
#include "log.h"
-#include "main.h"
#include "pty.h"
#include "shl_dlist.h"
-#include "terminal.h"
#include "text.h"
#include "tsm_screen.h"
#include "tsm_vte.h"
#include <stdlib.h>
#include <string.h>
#include "eloop.h"
+#include "kmscon_terminal.h"
+#include "kmscon_ui.h"
#include "log.h"
#include "shl_dlist.h"
-#include "terminal.h"
-#include "ui.h"
#include "uterm.h"
#define LOG_SUBSYSTEM "ui"