2011-02-15 16:44:17 +03:00
|
|
|
SUBDIRS = filemanager man2hlp vfs viewer
|
2009-04-25 12:09:47 +04:00
|
|
|
|
2013-06-15 12:55:16 +04:00
|
|
|
if USE_INTERNAL_EDIT
|
2010-01-07 01:20:56 +03:00
|
|
|
SUBDIRS += editor
|
|
|
|
endif
|
|
|
|
|
2010-03-03 16:09:15 +03:00
|
|
|
if USE_DIFF
|
|
|
|
SUBDIRS += diffviewer
|
|
|
|
endif
|
2010-01-21 17:20:11 +03:00
|
|
|
|
2015-11-10 15:54:40 +03:00
|
|
|
if ENABLE_SUBSHELL
|
|
|
|
SUBDIRS += subshell
|
|
|
|
endif
|
|
|
|
|
2012-10-19 13:56:02 +04:00
|
|
|
noinst_LTLIBRARIES = libinternal.la
|
|
|
|
|
2011-07-14 14:48:00 +04:00
|
|
|
AM_CPPFLAGS = \
|
2012-03-16 14:53:34 +04:00
|
|
|
-DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\" \
|
|
|
|
-DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\" \
|
|
|
|
-DDATADIR=\""$(pkgdatadir)/"\" \
|
2012-09-26 10:23:42 +04:00
|
|
|
-DLOCALEDIR=\""$(localedir)"\" \
|
|
|
|
-DEXTHELPERSDIR=\""@EXTHELPERSDIR@/"\"
|
2010-01-21 17:20:11 +03:00
|
|
|
|
|
|
|
if CONS_SAVER
|
|
|
|
SUBDIRS += consaver
|
|
|
|
AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
|
|
|
|
endif
|
|
|
|
|
2024-05-30 17:57:35 +03:00
|
|
|
# required for textconf.c
|
|
|
|
if ENABLE_VFS
|
|
|
|
if ENABLE_VFS_SFTP
|
|
|
|
AM_CPPFLAGS += $(LIBSSH_CFLAGS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-01-08 17:05:40 +03:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir) $(GLIB_CFLAGS)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
2001-09-09 05:50:00 +04:00
|
|
|
localedir = $(datadir)/locale
|
2010-11-30 22:13:16 +03:00
|
|
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
2001-09-03 11:03:46 +04:00
|
|
|
|
2010-11-17 13:27:42 +03:00
|
|
|
bin_PROGRAMS = mc
|
2001-09-03 11:03:46 +04:00
|
|
|
|
2013-06-15 12:55:16 +04:00
|
|
|
if USE_INTERNAL_EDIT
|
2010-01-20 18:11:52 +03:00
|
|
|
EDITLIB = editor/libedit.la
|
2001-09-03 11:03:46 +04:00
|
|
|
endif
|
|
|
|
|
2010-03-03 16:09:15 +03:00
|
|
|
if USE_DIFF
|
|
|
|
DIFFLIB = diffviewer/libdiffviewer.la
|
|
|
|
endif
|
|
|
|
|
2015-11-10 15:54:40 +03:00
|
|
|
if ENABLE_SUBSHELL
|
|
|
|
SUBSHELLLIB = subshell/libsubshell.la
|
|
|
|
endif
|
|
|
|
|
2012-10-19 13:56:02 +04:00
|
|
|
libinternal_la_LIBADD = \
|
|
|
|
filemanager/libmcfilemanager.la \
|
2011-02-15 16:44:17 +03:00
|
|
|
vfs/libmc-vfs.la \
|
2009-10-30 01:49:58 +03:00
|
|
|
viewer/libmcviewer.la \
|
2015-11-10 15:54:40 +03:00
|
|
|
$(DIFFLIB) $(EDITLIB) $(SUBSHELLLIB)
|
2012-10-19 13:56:02 +04:00
|
|
|
|
|
|
|
mc_LDADD = \
|
2021-01-31 10:17:49 +03:00
|
|
|
libinternal.la
|
|
|
|
|
|
|
|
if ENABLE_MCLIB
|
|
|
|
libinternal_la_LIBADD += \
|
|
|
|
$(top_builddir)/lib/libmc.la
|
|
|
|
else
|
|
|
|
mc_LDADD += \
|
2011-03-04 19:07:30 +03:00
|
|
|
$(top_builddir)/lib/libmc.la
|
2021-01-31 10:17:49 +03:00
|
|
|
endif
|
2009-10-30 01:49:58 +03:00
|
|
|
|
|
|
|
SRC_mc_conssaver = \
|
2010-01-21 17:20:11 +03:00
|
|
|
cons.handler.c consaver/cons.saver.h
|
2009-10-30 01:49:58 +03:00
|
|
|
|
|
|
|
mc_SOURCES = \
|
2012-10-19 13:56:02 +04:00
|
|
|
main.c
|
|
|
|
|
|
|
|
libinternal_la_SOURCES = \
|
2009-10-30 01:49:58 +03:00
|
|
|
$(SRC_mc_conssaver) \
|
|
|
|
args.c args.h \
|
2010-06-08 23:23:00 +04:00
|
|
|
clipboard.c clipboard.h \
|
2011-01-17 12:44:25 +03:00
|
|
|
events_init.c events_init.h \
|
2009-10-30 01:49:58 +03:00
|
|
|
execute.c execute.h \
|
2019-07-14 18:21:53 +03:00
|
|
|
file_history.c file_history.h \
|
2009-10-30 01:49:58 +03:00
|
|
|
help.c help.h \
|
|
|
|
history.h \
|
2021-02-14 21:37:23 +03:00
|
|
|
keymap.c keymap.h \
|
2010-11-22 17:15:28 +03:00
|
|
|
learn.c learn.h \
|
|
|
|
setup.c setup.h \
|
2011-02-11 18:28:29 +03:00
|
|
|
textconf.c textconf.h \
|
2017-10-15 19:43:31 +03:00
|
|
|
usermenu.c usermenu.h \
|
2011-02-11 18:28:29 +03:00
|
|
|
util.c util.h
|
2009-10-30 01:49:58 +03:00
|
|
|
|
2010-11-22 17:15:28 +03:00
|
|
|
if CHARSET
|
2012-10-19 13:56:02 +04:00
|
|
|
libinternal_la_SOURCES += selcodepage.c selcodepage.h
|
2010-11-22 17:15:28 +03:00
|
|
|
endif
|
2010-04-07 12:54:16 +04:00
|
|
|
|
2012-10-19 19:24:57 +04:00
|
|
|
|
2012-01-09 15:48:39 +04:00
|
|
|
if ENABLE_BACKGROUND
|
2012-10-19 13:56:02 +04:00
|
|
|
libinternal_la_SOURCES += background.c background.h
|
2012-01-09 15:48:39 +04:00
|
|
|
endif
|
|
|
|
|
2010-04-07 12:54:16 +04:00
|
|
|
EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
2005-07-31 22:30:43 +04:00
|
|
|
# end of automated testing
|
|
|
|
|
2001-09-03 11:03:46 +04:00
|
|
|
install-exec-hook:
|
|
|
|
$(MAKE) install_mcview
|
2013-06-15 12:55:16 +04:00
|
|
|
if USE_INTERNAL_EDIT
|
2001-09-03 11:03:46 +04:00
|
|
|
$(MAKE) install_mcedit
|
|
|
|
endif
|
2010-03-21 13:57:33 +03:00
|
|
|
if USE_DIFF
|
|
|
|
$(MAKE) install_mcdiff
|
|
|
|
endif
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
|
|
|
|
#
|
|
|
|
install_mcview:
|
|
|
|
cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
|
|
|
|
|
|
|
|
install_mcedit:
|
|
|
|
cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
|
2004-08-19 00:22:59 +04:00
|
|
|
|
2010-03-21 13:57:33 +03:00
|
|
|
install_mcdiff:
|
|
|
|
cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
|
|
|
|
|
2004-08-19 00:22:59 +04:00
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
|
2013-06-15 12:55:16 +04:00
|
|
|
if USE_INTERNAL_EDIT
|
2004-08-19 00:22:59 +04:00
|
|
|
rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
|
|
|
|
endif
|
2010-03-21 13:57:33 +03:00
|
|
|
if USE_DIFF
|
|
|
|
rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff
|
|
|
|
endif
|