mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
62c05d62f3
Don't mix GLib and GModule compiler and linker options. Use gmodule-no-export if present to avoid use -Wl,--export-dynamic option with some linkers. If gmodule-no-export is not available, use generic gmodule. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
35 lines
676 B
Makefile
35 lines
676 B
Makefile
|
|
noinst_LTLIBRARIES = libmctty.la
|
|
|
|
if USE_SCREEN_SLANG
|
|
TTY_SCREEN_SRC = \
|
|
color-slang.c color-slang.h \
|
|
tty-slang.c tty-slang.h
|
|
else
|
|
TTY_SCREEN_SRC = \
|
|
color-ncurses.c \
|
|
tty-ncurses.c tty-ncurses.h
|
|
endif
|
|
|
|
TTY_SRC = \
|
|
color-internal.c color-internal.h \
|
|
color.c color.h \
|
|
key.c key.h keyxdef.c \
|
|
mouse.c mouse.h \
|
|
tty.c tty.h tty-internal.h \
|
|
win.c win.h \
|
|
x11conn.c x11conn.h
|
|
|
|
libmctty_la_SOURCES = $(TTY_SRC) $(TTY_SCREEN_SRC)
|
|
|
|
libmctty_la_CFLAGS = -I$(top_srcdir)
|
|
|
|
if HAVE_GMODULE
|
|
libmctty_la_CFLAGS += $(GMODULE_CFLAGS)
|
|
else
|
|
libmctty_la_CFLAGS += $(GLIB_CFLAGS)
|
|
|
|
endif
|
|
libmctty_la_CFLAGS += -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\"
|
|
|