2011-02-15 15:44:17 +02:00
|
|
|
SUBDIRS = filemanager man2hlp vfs viewer
|
2009-04-25 11:09:47 +03:00
|
|
|
|
2010-01-07 00:20:56 +02:00
|
|
|
if USE_EDIT
|
|
|
|
SUBDIRS += editor
|
|
|
|
endif
|
|
|
|
|
2010-03-03 16:09:15 +03:00
|
|
|
if USE_DIFF
|
|
|
|
SUBDIRS += diffviewer
|
|
|
|
endif
|
2010-01-21 16:20:11 +02:00
|
|
|
|
2011-07-14 14:48:00 +04:00
|
|
|
AM_CPPFLAGS = \
|
2012-03-16 13:53:34 +03:00
|
|
|
-DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\" \
|
|
|
|
-DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\" \
|
|
|
|
-DDATADIR=\""$(pkgdatadir)/"\" \
|
2012-09-26 10:23:42 +04:00
|
|
|
-DLOCALEDIR=\""$(localedir)"\" \
|
|
|
|
-DEXTHELPERSDIR=\""@EXTHELPERSDIR@/"\"
|
2010-01-21 16:20:11 +02:00
|
|
|
|
|
|
|
if CONS_SAVER
|
|
|
|
SUBDIRS += consaver
|
|
|
|
AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
|
|
|
|
endif
|
|
|
|
|
2012-07-10 10:53:56 +04:00
|
|
|
AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
|
2001-09-03 07:03:46 +00:00
|
|
|
|
2001-09-09 01:50:00 +00:00
|
|
|
localedir = $(datadir)/locale
|
2010-11-30 22:13:16 +03:00
|
|
|
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
2001-09-03 07:03:46 +00:00
|
|
|
|
2010-11-17 12:27:42 +02:00
|
|
|
bin_PROGRAMS = mc
|
2001-09-03 07:03:46 +00:00
|
|
|
|
|
|
|
if USE_EDIT
|
2010-01-20 17:11:52 +02:00
|
|
|
EDITLIB = editor/libedit.la
|
2001-09-03 07:03:46 +00:00
|
|
|
endif
|
|
|
|
|
2010-03-03 16:09:15 +03:00
|
|
|
if USE_DIFF
|
|
|
|
DIFFLIB = diffviewer/libdiffviewer.la
|
|
|
|
endif
|
|
|
|
|
2009-10-30 00:49:58 +02:00
|
|
|
mc_LDADD = \
|
2011-02-15 15:44:17 +02:00
|
|
|
vfs/libmc-vfs.la \
|
2009-10-30 00:49:58 +02:00
|
|
|
viewer/libmcviewer.la \
|
2010-11-22 16:15:28 +02:00
|
|
|
filemanager/libmcfilemanager.la \
|
2010-06-09 16:24:30 +04:00
|
|
|
$(DIFFLIB) $(EDITLIB) \
|
2011-03-04 18:07:30 +02:00
|
|
|
$(top_builddir)/lib/libmc.la
|
2009-10-30 00:49:58 +02:00
|
|
|
|
2010-07-18 11:32:24 +04:00
|
|
|
if ENABLE_VFS_SMB
|
2010-01-08 16:47:19 +02:00
|
|
|
# this is a hack for linking with own samba library in simple way
|
2011-02-15 15:44:17 +02:00
|
|
|
mc_LDADD += vfs/smbfs/helpers/libsamba.a
|
2010-01-08 16:47:19 +02:00
|
|
|
endif
|
|
|
|
|
2009-10-30 00:49:58 +02:00
|
|
|
SRC_mc_conssaver = \
|
2010-01-21 16:20:11 +02:00
|
|
|
cons.handler.c consaver/cons.saver.h
|
2009-10-30 00:49:58 +02:00
|
|
|
|
|
|
|
mc_SOURCES = \
|
|
|
|
$(SRC_mc_conssaver) \
|
|
|
|
args.c args.h \
|
2010-06-08 19:23:00 +00:00
|
|
|
clipboard.c clipboard.h \
|
2011-01-17 11:44:25 +02:00
|
|
|
events_init.c events_init.h \
|
2009-10-30 00:49:58 +02:00
|
|
|
execute.c execute.h \
|
|
|
|
help.c help.h \
|
|
|
|
history.h \
|
2010-11-18 11:39:09 +02:00
|
|
|
keybind-defaults.c keybind-defaults.h \
|
2010-11-22 16:15:28 +02:00
|
|
|
learn.c learn.h \
|
2009-10-30 00:49:58 +02:00
|
|
|
main.c main.h \
|
2010-11-22 16:15:28 +02:00
|
|
|
setup.c setup.h \
|
2009-10-30 00:49:58 +02:00
|
|
|
subshell.c subshell.h \
|
2011-02-11 17:28:29 +02:00
|
|
|
textconf.c textconf.h \
|
|
|
|
util.c util.h
|
2009-10-30 00:49:58 +02:00
|
|
|
|
2010-11-22 16:15:28 +02:00
|
|
|
if CHARSET
|
|
|
|
mc_SOURCES += selcodepage.c selcodepage.h
|
|
|
|
endif
|
2010-04-07 11:54:16 +03:00
|
|
|
|
2012-01-09 14:48:39 +03:00
|
|
|
if ENABLE_BACKGROUND
|
|
|
|
mc_SOURCES += background.c background.h
|
|
|
|
endif
|
|
|
|
|
2010-04-07 11:54:16 +03:00
|
|
|
EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
|
2001-09-03 07:03:46 +00:00
|
|
|
|
2005-07-31 18:30:43 +00:00
|
|
|
# end of automated testing
|
|
|
|
|
2001-09-03 07:03:46 +00: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 07:03:46 +00: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-18 20:22:59 +00:00
|
|
|
|
2010-03-21 13:57:33 +03:00
|
|
|
install_mcdiff:
|
|
|
|
cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
|
|
|
|
|
2004-08-18 20:22:59 +00: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
|