2010-01-07 02:31:17 +03:00
|
|
|
SUBDIRS = viewer
|
2009-04-25 12:09:47 +04:00
|
|
|
|
2010-01-07 01:20:56 +03:00
|
|
|
if USE_EDIT
|
|
|
|
SUBDIRS += editor
|
|
|
|
endif
|
|
|
|
|
2009-05-05 17:19:32 +04:00
|
|
|
AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
2001-09-09 05:50:00 +04:00
|
|
|
localedir = $(datadir)/locale
|
2006-01-28 00:53:50 +03:00
|
|
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
bin_PROGRAMS = mc mcmfmt
|
|
|
|
|
2009-10-30 01:49:58 +03:00
|
|
|
|
2001-09-03 11:03:46 +04:00
|
|
|
if CONS_SAVER
|
2006-01-28 00:53:50 +03:00
|
|
|
pkglibexec_PROGRAMS = cons.saver
|
2002-09-22 04:13:32 +04:00
|
|
|
AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\" \
|
2009-05-21 02:01:10 +04:00
|
|
|
-DSAVERDIR=\""$(pkglibexecdir)"\" \
|
|
|
|
-DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
|
2002-09-22 04:13:32 +04:00
|
|
|
else
|
2009-05-21 02:01:10 +04:00
|
|
|
AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" \
|
|
|
|
-DLOCALEDIR=\""$(localedir)"\" \
|
2009-10-01 13:27:17 +04:00
|
|
|
-DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
|
2001-09-03 11:03:46 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_PROGRAMS = man2hlp
|
2002-10-15 19:33:04 +04:00
|
|
|
man2hlp_LDADD = $(GLIB_LIBS)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
mcmfmt_SOURCES = mfmt.c
|
|
|
|
|
|
|
|
cons_saver_SOURCES = cons.saver.c
|
|
|
|
|
2004-09-02 19:03:48 +04:00
|
|
|
man2hlp_SOURCES = man2hlp.c glibcompat.c
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
if USE_EDIT
|
2010-01-07 01:20:56 +03:00
|
|
|
EDITLIB = editor/libedit.a
|
2001-09-03 11:03:46 +04:00
|
|
|
endif
|
|
|
|
|
2009-10-30 01:49:58 +03:00
|
|
|
SRC_maintainer=logging.c logging.h
|
|
|
|
SRC_charset = charsets.c charsets.h selcodepage.c selcodepage.h
|
|
|
|
|
2009-10-30 00:57:40 +03:00
|
|
|
if USE_MAINTAINER_MODE
|
2009-11-04 17:55:24 +03:00
|
|
|
SRC_USE_maintainer=$(SRC_maintainer)
|
2009-10-30 00:57:40 +03:00
|
|
|
endif
|
|
|
|
|
2001-09-03 11:03:46 +04:00
|
|
|
if CHARSET
|
2009-10-30 01:49:58 +03:00
|
|
|
SRC_USE_charset=$(SRC_charset)
|
2001-09-03 11:03:46 +04:00
|
|
|
endif
|
|
|
|
|
2009-10-30 01:49:58 +03:00
|
|
|
mc_LDADD = \
|
2010-01-07 01:45:27 +03:00
|
|
|
../lib/libmc.la \
|
|
|
|
$(EDITLIB) \
|
2009-10-30 01:49:58 +03:00
|
|
|
viewer/libmcviewer.la \
|
|
|
|
$(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) $(GLIB_LIBS)
|
|
|
|
|
|
|
|
SRC_mc_widgets = \
|
|
|
|
dialog.c dialog.h \
|
|
|
|
menu.c menu.h \
|
|
|
|
screen.c panel.h \
|
|
|
|
tree.c tree.h \
|
|
|
|
widget.c widget.h \
|
|
|
|
wtools.c wtools.h
|
|
|
|
|
|
|
|
SRC_mc_strutils = \
|
|
|
|
strescape.c strescape.h \
|
|
|
|
strutil8bit.c \
|
|
|
|
strutilascii.c \
|
|
|
|
strutil.c strutil.h \
|
|
|
|
strutilutf8.c
|
|
|
|
|
|
|
|
SRC_mc_conssaver = \
|
|
|
|
cons.handler.c cons.saver.h
|
|
|
|
|
|
|
|
SRC_mc_options = \
|
|
|
|
learn.c learn.h \
|
|
|
|
option.c option.h \
|
|
|
|
setup.c setup.h
|
|
|
|
|
|
|
|
SRC_mc_keybind = \
|
|
|
|
keybind.c keybind.h \
|
|
|
|
cmddef.h
|
|
|
|
|
|
|
|
SRC_mc_utils = \
|
|
|
|
util.c util.h \
|
|
|
|
utilunix.c \
|
|
|
|
unixcompat.h
|
|
|
|
|
|
|
|
SRC_mc_extended_charset = \
|
|
|
|
ecs.c ecs.h
|
|
|
|
|
|
|
|
mc_SOURCES = \
|
|
|
|
$(SRC_USE_maintainer) \
|
|
|
|
$(SRC_USE_charset) \
|
|
|
|
$(SRC_mc_widgets) \
|
|
|
|
$(SRC_mc_strutils) \
|
|
|
|
$(SRC_mc_conssaver) \
|
|
|
|
$(SRC_mc_options) \
|
|
|
|
$(SRC_mc_keybind) \
|
|
|
|
$(SRC_mc_utils) \
|
|
|
|
$(SRC_mc_extended_charset) \
|
|
|
|
achown.c achown.h \
|
|
|
|
args.c args.h \
|
|
|
|
background.c background.h \
|
|
|
|
boxes.c boxes.h \
|
|
|
|
chmod.c chmod.h \
|
|
|
|
chown.c chown.h \
|
|
|
|
cmd.c cmd.h \
|
|
|
|
command.c command.h \
|
|
|
|
complete.c \
|
|
|
|
dir.c dir.h \
|
|
|
|
execute.c execute.h \
|
|
|
|
ext.c ext.h \
|
|
|
|
file.c file.h \
|
|
|
|
filegui.c filegui.h \
|
|
|
|
fileloc.h \
|
|
|
|
filenot.c \
|
|
|
|
fileopctx.c fileopctx.h \
|
|
|
|
find.c find.h \
|
|
|
|
fs.h \
|
|
|
|
glibcompat.c glibcompat.h \
|
|
|
|
global.h \
|
|
|
|
help.c help.h \
|
|
|
|
history.h \
|
|
|
|
hotlist.c hotlist.h \
|
|
|
|
info.c info.h \
|
|
|
|
layout.c layout.h \
|
|
|
|
listmode.c listmode.h \
|
|
|
|
main.c main.h \
|
|
|
|
main-widgets.h \
|
|
|
|
mountlist.c mountlist.h \
|
|
|
|
panelize.c panelize.h \
|
|
|
|
subshell.c subshell.h \
|
|
|
|
textconf.c textconf.h \
|
|
|
|
timefmt.h \
|
|
|
|
treestore.c treestore.h \
|
|
|
|
user.c user.h
|
|
|
|
|
|
|
|
EXTRA_DIST = man2hlp.c $(SRC_maintainer) $(SRC_charset)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
2005-07-31 22:30:43 +04:00
|
|
|
# automated testing
|
|
|
|
|
|
|
|
TESTS = ecs-test
|
|
|
|
|
|
|
|
check_PROGRAMS = ecs-test
|
|
|
|
ecs_test_SOURCES = ecs-test.c ecs.h ecs.c
|
2006-02-04 14:13:30 +03:00
|
|
|
ecs_test_LDADD = $(GLIB_LIBS) $(INTLLIBS) $(MCLIBS)
|
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
|
|
|
|
if USE_EDIT
|
|
|
|
$(MAKE) install_mcedit
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
|
|
|
|
if USE_EDIT
|
|
|
|
rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
|
|
|
|
endif
|