blob: 3d49dcef08bc57388c6ece8a43453d663f116bff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = README TODO COPYING
CLEANFILES =
bin_PROGRAMS = kmscon
check_PROGRAMS = \
test_output \
test_vt \
test_input
noinst_PROGRAMS = genshader
noinst_LTLIBRARIES = libkmscon-core.la
AM_CFLAGS = \
-Wall
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-I $(srcdir)/src \
-I $(srcdir)/external
AM_LDFLAGS = \
-Wl,--as-needed
if DEBUG
AM_CFLAGS += -O0 -g
else
AM_CFLAGS += -O2
endif
EXTRA_DIST += src/output_shader_def.vert src/output_shader_def.frag \
src/output_shader_tex.vert src/output_shader_tex.frag
CLEANFILES += src/output_shaders.c
nodist_genshader_SOURCES = \
src/genshader.c
src/output_shaders.c: src/output_shader_def.vert src/output_shader_def.frag \
src/output_shader_tex.vert src/output_shader_tex.frag genshader$(EXEEXT)
./genshader$(EXEEXT)
nodist_libkmscon_core_la_SOURCES = \
src/output_shaders.c
libkmscon_core_la_SOURCES = \
src/conf.c src/conf.h \
src/misc.c src/misc.h \
src/ui.c src/ui.h \
src/console.c src/console.h \
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/vte.c src/vte.h \
src/vte_charsets.c \
src/terminal.c src/terminal.h \
src/pty.c src/pty.h \
src/uterm.h src/uterm_internal.h \
src/uterm_video.c \
src/uterm_video_drm.c \
src/uterm_video_fbdev.c \
src/uterm_monitor.c \
src/uterm_input.c \
src/uterm_vt.c \
src/gl.h \
src/gl_math.c \
src/gl_shader.c \
src/font_pango.c
if USE_XKBCOMMON
libkmscon_core_la_SOURCES += \
external/imKStoUCS.c external/imKStoUCS.h \
src/uterm_input_xkb.c
else
libkmscon_core_la_SOURCES += \
external/imKStoUCS.c external/imKStoUCS.h \
src/uterm_input_dumb.c
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) \
$(SYSTEMD_CFLAGS) \
$(DRM_CFLAGS) \
$(EGL_CFLAGS) \
$(GBM_CFLAGS) \
$(OPENGL_CFLAGS) \
$(PANGO_CFLAGS) \
$(UDEV_CFLAGS) \
$(FREETYPE2_CFLAGS) \
$(XPROTO_CFLAGS) \
$(XKBCOMMON_CFLAGS) \
$(GLIB_CFLAGS)
libkmscon_core_la_LIBADD = \
$(SYSTEMD_LIBS) \
$(DRM_LIBS) \
$(EGL_LIBS) \
$(GBM_LIBS) \
$(OPENGL_LIBS) \
$(PANGO_LIBS) \
$(UDEV_LIBS) \
$(FREETYPE2_LIBS) \
$(XPROTO_LIBS) \
$(XKBCOMMON_LIBS) \
$(GLIB_LIBS) \
-lpthread
kmscon_SOURCES = src/main.c
kmscon_LDADD = libkmscon-core.la
test_output_SOURCES = tests/test_output.c tests/test_include.h
test_output_LDADD = libkmscon-core.la
test_vt_SOURCES = tests/test_vt.c
test_vt_LDADD = libkmscon-core.la
test_input_SOURCES = tests/test_input.c
test_input_LDADD = libkmscon-core.la
|