Tweak sources for --with-x/--without-x option.
[midnight-commander.git] / lib / tty / Makefile.am
blob5a5e739f53d814773ae945b4d4c1c5f3a0c15ab3
2 noinst_LTLIBRARIES = libmctty.la
4 if USE_SCREEN_SLANG
5     TTY_SCREEN_SRC = \
6         color-slang.c color-slang.h \
7         tty-slang.c tty-slang.h
8 else
9     TTY_SCREEN_SRC = \
10         color-ncurses.c \
11         tty-ncurses.c tty-ncurses.h
12 endif
14 TTY_SRC = \
15         color-internal.c color-internal.h \
16         color.c color.h \
17         key.c key.h keyxdef.c \
18         mouse.c mouse.h \
19         tty.c tty.h tty-internal.h \
20         win.c win.h
22 if HAVE_TEXTMODE_X11_SUPPORT
23 TTY_SRC += x11conn.c x11conn.h
24 endif
26 libmctty_la_SOURCES = $(TTY_SRC) $(TTY_SCREEN_SRC)
28 AM_CFLAGS = -I$(top_srcdir)
30 if HAVE_GMODULE
31 AM_CFLAGS += $(GMODULE_CFLAGS)
32 else
33 AM_CFLAGS += $(GLIB_CFLAGS)
34 endif