Clarify usage of AM_CPPFLAGS.
[midnight-commander.git] / lib / tty / Makefile.am
blob30ba3051e5ffcc4b3525f2b684605409d616ee41
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_CPPFLAGS = -I$(top_srcdir)
30 if HAVE_GMODULE
31 AM_CPPFLAGS += $(GMODULE_CFLAGS)
32 else
33 AM_CPPFLAGS += $(GLIB_CFLAGS)
34 endif