2010-11-22 17:15:28 +03:00
|
|
|
SUBDIRS = filemanager 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
|
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
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-10-30 01:49:58 +03:00
|
|
|
mc_LDADD = \
|
|
|
|
viewer/libmcviewer.la \
|
2010-11-22 17:15:28 +03:00
|
|
|
filemanager/libmcfilemanager.la \
|
2010-06-09 16:24:30 +04:00
|
|
|
$(DIFFLIB) $(EDITLIB) \
|
2010-11-30 22:13:16 +03:00
|
|
|
../lib/libmc.la
|
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
|
|
|
|
|
2010-11-30 22:13:16 +03:00
|
|
|
mc_LDADD += $(MCLIBS) $(SLANGLIB)
|
|
|
|
|
|
|
|
if HAVE_GMODULE
|
|
|
|
mc_LDADD += $(GMODULE_LIBS)
|
|
|
|
else
|
|
|
|
mc_LDADD += $(GLIB_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
mc_LDADD += $(PCRE_LIBS) $(LIBICONV) $(INTLLIBS)
|
|
|
|
|
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 = \
|
|
|
|
$(SRC_mc_conssaver) \
|
|
|
|
args.c args.h \
|
|
|
|
background.c background.h \
|
2010-06-08 23:23:00 +04:00
|
|
|
clipboard.c clipboard.h \
|
2009-10-30 01:49:58 +03:00
|
|
|
execute.c execute.h \
|
|
|
|
help.c help.h \
|
|
|
|
history.h \
|
2010-11-18 12:39:09 +03:00
|
|
|
keybind-defaults.c keybind-defaults.h \
|
2010-11-22 17:15:28 +03:00
|
|
|
learn.c learn.h \
|
2009-10-30 01:49:58 +03:00
|
|
|
main.c main.h \
|
2010-11-22 17:15:28 +03:00
|
|
|
setup.c setup.h \
|
2009-10-30 01:49:58 +03:00
|
|
|
subshell.c subshell.h \
|
2010-11-22 17:15:28 +03:00
|
|
|
textconf.c textconf.h
|
2009-10-30 01:49:58 +03:00
|
|
|
|
2010-11-22 17:15:28 +03:00
|
|
|
if CHARSET
|
|
|
|
mc_SOURCES += selcodepage.c selcodepage.h
|
|
|
|
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
|
|
|
|
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
|