2009-05-19 11:22:24 +04:00
|
|
|
SUBDIRS = search
|
2009-04-25 12:09:47 +04:00
|
|
|
|
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
|
|
|
|
|
|
|
|
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)"\" \
|
2006-01-30 23:08:28 +03:00
|
|
|
-DSAVERDIR=\""$(pkglibexecdir)"\"
|
2002-09-22 04:13:32 +04:00
|
|
|
else
|
|
|
|
AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\"
|
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
|
|
|
|
EDITLIB = ../edit/libedit.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_VFS
|
2002-05-14 16:39:04 +04:00
|
|
|
if USE_SAMBA_FS
|
|
|
|
VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
|
|
|
|
else
|
2001-09-03 11:03:46 +04:00
|
|
|
VFSLIB = ../vfs/libvfs-mc.a
|
|
|
|
endif
|
2002-05-14 16:39:04 +04:00
|
|
|
endif
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
|
2009-05-19 11:22:24 +04:00
|
|
|
$(INTLLIBS) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV) search/libsearch.la
|
2001-09-04 10:09:05 +04:00
|
|
|
|
|
|
|
CHARSET_SRC = charsets.c charsets.h selcodepage.c selcodepage.h
|
|
|
|
|
|
|
|
SRCS = achown.c achown.h background.c background.h boxes.c boxes.h \
|
|
|
|
chmod.c chmod.h chown.c chown.h cmd.c cmd.h color.c color.h \
|
2009-01-29 21:17:43 +03:00
|
|
|
command.c command.h complete.c cons.handler.c \
|
2003-10-25 03:20:30 +04:00
|
|
|
cons.saver.h dialog.c dialog.h dir.c dir.h \
|
2009-05-06 20:12:32 +04:00
|
|
|
execute.c execute.h ext.c ext.h file.c filegui.c \
|
2003-06-22 13:17:46 +04:00
|
|
|
filegui.h file.h filenot.c fileopctx.c fileopctx.h find.c \
|
2003-10-29 11:12:44 +03:00
|
|
|
find.h findme.c findme.h fs.h \
|
2003-09-23 00:21:48 +04:00
|
|
|
glibcompat.c glibcompat.h global.h help.c help.h hotlist.c \
|
2003-10-26 07:11:12 +03:00
|
|
|
hotlist.h info.c info.h key.c key.h keyxdef.c layout.c \
|
2009-05-04 12:23:40 +04:00
|
|
|
layout.h learn.c learn.h listmode.c listmode.h history.h \
|
2006-01-28 02:48:49 +03:00
|
|
|
logging.h logging.c \
|
2009-05-04 12:23:40 +04:00
|
|
|
main.c main.h main-widgets.h \
|
2003-09-23 00:21:48 +04:00
|
|
|
menu.c menu.h mountlist.c mountlist.h mouse.c mouse.h myslang.h \
|
|
|
|
option.c option.h panel.h panelize.c panelize.h poptalloca.h \
|
|
|
|
popt.c poptconfig.c popt.h popthelp.c poptint.h poptparse.c \
|
2009-05-19 11:22:24 +04:00
|
|
|
profile.c profile.h rxvt.c screen.c setup.c setup.h \
|
2003-10-26 10:02:13 +03:00
|
|
|
slint.c subshell.c subshell.h textconf.c textconf.h \
|
2009-01-10 13:53:20 +03:00
|
|
|
tree.c tree.h treestore.c treestore.h timefmt.h tty.c tty.h user.c \
|
|
|
|
user.h util.c util.h utilunix.c view.c view.h vfsdummy.h widget.c \
|
2005-03-10 12:44:36 +03:00
|
|
|
widget.h win.c win.h wtools.c wtools.h unixcompat.h \
|
patches by Rostislav Beneš: mc-01-api
add functions for working with strings
some functions are implemented directlu in strutil.c, others have ascii, 8bit
or utf-8 variant. (8bit means singlebyte encodings, where all characters have
width one). Mc autodetects terminal encoding at start and chooses right
variant. If does not know terminal encoding, chooses ascii variant.
contains functions:
1. for translation strings and growing strings
2. for working with characters (next char, prev char, length in
characters, isspace, isalnum, ...)
3. prepeare for display, replace invalid characters with questionmark,
unprintable with dot, left / right / center align
4. comparing strings
in future all string function from util should be moved into strutil, some
function from util have new variant in strutil.
2008-12-29 01:46:37 +03:00
|
|
|
x11conn.h x11conn.c ecs.h ecs.c \
|
2009-04-22 19:52:49 +04:00
|
|
|
strutil.h strutil.c strutilascii.c strutil8bit.c strutilutf8.c \
|
2009-04-25 12:09:47 +04:00
|
|
|
search/search.h
|
2004-09-26 01:21:09 +04:00
|
|
|
|
2001-09-03 11:03:46 +04:00
|
|
|
if CHARSET
|
2001-09-04 10:09:05 +04:00
|
|
|
mc_SOURCES = $(SRCS) $(CHARSET_SRC)
|
2001-09-03 11:03:46 +04:00
|
|
|
else
|
2001-09-04 10:09:05 +04:00
|
|
|
mc_SOURCES = $(SRCS)
|
2001-09-03 11:03:46 +04:00
|
|
|
endif
|
|
|
|
|
2004-11-24 02:04:18 +03:00
|
|
|
EXTRA_DIST = ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
|
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
|