2010-04-07 12:54:16 +04:00
|
|
|
SUBDIRS = man2hlp viewer
|
2009-04-25 12:09:47 +04:00
|
|
|
|
2010-01-07 01:20:56 +03:00
|
|
|
if USE_EDIT
|
|
|
|
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
|
|
|
|
|
|
|
AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" \
|
|
|
|
-DLOCALEDIR=\""$(localedir)"\" \
|
|
|
|
-DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
|
|
|
|
|
|
|
|
|
|
|
|
if CONS_SAVER
|
|
|
|
SUBDIRS += consaver
|
|
|
|
AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
|
|
|
|
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
|
|
|
|
2010-11-17 13:27:42 +03:00
|
|
|
bin_PROGRAMS = mc
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
if USE_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
|
|
|
|
|
2010-11-18 11:31:09 +03:00
|
|
|
SRC_charset = selcodepage.c selcodepage.h
|
2009-10-30 01:49:58 +03:00
|
|
|
|
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 = \
|
|
|
|
viewer/libmcviewer.la \
|
2010-06-09 16:24:30 +04:00
|
|
|
$(DIFFLIB) $(EDITLIB) \
|
|
|
|
../lib/libmc.la \
|
|
|
|
$(MCLIBS) $(SLANGLIB) $(GLIB_LIBS) \
|
|
|
|
$(PCRE_LIBS) $(LIBICONV) $(INTLLIBS)
|
2009-10-30 01:49:58 +03:00
|
|
|
|
2010-07-18 11:32:24 +04:00
|
|
|
if ENABLE_VFS_SMB
|
2010-01-08 17:47:19 +03:00
|
|
|
# this is a hack for linking with own samba library in simple way
|
|
|
|
mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
|
|
|
|
endif
|
|
|
|
|
2009-10-30 01:49:58 +03:00
|
|
|
SRC_mc_widgets = \
|
|
|
|
tree.c tree.h \
|
2010-11-10 22:45:56 +03:00
|
|
|
screen.c panel.h
|
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
|
|
|
|
|
|
|
SRC_mc_options = \
|
|
|
|
learn.c learn.h \
|
|
|
|
option.c option.h \
|
|
|
|
setup.c setup.h
|
|
|
|
|
|
|
|
SRC_mc_keybind = \
|
|
|
|
keybind.c keybind.h \
|
|
|
|
cmddef.h
|
|
|
|
|
|
|
|
mc_SOURCES = \
|
|
|
|
$(SRC_USE_charset) \
|
|
|
|
$(SRC_mc_widgets) \
|
|
|
|
$(SRC_mc_conssaver) \
|
|
|
|
$(SRC_mc_options) \
|
|
|
|
$(SRC_mc_keybind) \
|
|
|
|
achown.c achown.h \
|
|
|
|
args.c args.h \
|
|
|
|
background.c background.h \
|
|
|
|
boxes.c boxes.h \
|
|
|
|
chmod.c chmod.h \
|
|
|
|
chown.c chown.h \
|
2010-06-08 23:23:00 +04:00
|
|
|
clipboard.c clipboard.h \
|
2009-10-30 01:49:58 +03:00
|
|
|
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 \
|
|
|
|
filenot.c \
|
|
|
|
fileopctx.c fileopctx.h \
|
|
|
|
find.c find.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 \
|
|
|
|
panelize.c panelize.h \
|
|
|
|
subshell.c subshell.h \
|
|
|
|
textconf.c textconf.h \
|
|
|
|
treestore.c treestore.h \
|
|
|
|
user.c user.h
|
|
|
|
|
2010-04-07 12:54:16 +04:00
|
|
|
#if USE_MOUNTLIST
|
|
|
|
mc_SOURCES += mountlist.c mountlist.h
|
|
|
|
#endif
|
|
|
|
|
|
|
|
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
|
|
|
|
if USE_EDIT
|
|
|
|
$(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
|
|
|
|
if USE_EDIT
|
|
|
|
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
|