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