1 SUBDIRS = filemanager man2hlp vfs viewer
12 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\" \
13 -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\" \
14 -DDATADIR=\""$(pkgdatadir)/"\" \
15 -DLOCALEDIR=\""$(localedir)"\" \
16 -DEXTHELPERSDIR=\""@EXTHELPERSDIR@/"\"
20 AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
23 AM_CFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CFLAGS)
25 localedir = $(datadir)/locale
26 pkglibexecdir = $(libexecdir)/@PACKAGE@
31 EDITLIB = editor/libedit.la
35 DIFFLIB = diffviewer/libdiffviewer.la
40 viewer/libmcviewer.la \
41 filemanager/libmcfilemanager.la \
42 $(DIFFLIB) $(EDITLIB) \
43 $(top_builddir)/lib/libmc.la
46 # this is a hack for linking with own samba library in simple way
47 mc_LDADD += vfs/smbfs/helpers/libsamba.a
51 cons.handler.c consaver/cons.saver.h
56 clipboard.c clipboard.h \
57 events_init.c events_init.h \
61 keybind-defaults.c keybind-defaults.h \
65 subshell.c subshell.h \
66 textconf.c textconf.h \
70 mc_SOURCES += selcodepage.c selcodepage.h
74 mc_SOURCES += background.c background.h
77 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
79 # end of automated testing
82 $(MAKE) install_mcview
84 $(MAKE) install_mcedit
87 $(MAKE) install_mcdiff
91 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
94 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
97 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
100 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
103 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
105 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
108 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff