1 SUBDIRS = filemanager man2hlp viewer
11 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" \
12 -DLOCALEDIR=\""$(localedir)"\" \
13 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
18 AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
21 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
23 localedir = $(datadir)/locale
24 pkglibexecdir = $(libexecdir)/@PACKAGE@
29 EDITLIB = editor/libedit.la
33 DIFFLIB = diffviewer/libdiffviewer.la
37 viewer/libmcviewer.la \
38 filemanager/libmcfilemanager.la \
39 $(DIFFLIB) $(EDITLIB) \
43 # this is a hack for linking with own samba library in simple way
44 mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
47 mc_LDADD += $(MCLIBS) $(SLANGLIB)
50 mc_LDADD += $(GMODULE_LIBS)
52 mc_LDADD += $(GLIB_LIBS)
55 mc_LDADD += $(PCRE_LIBS) $(LIBICONV) $(INTLLIBS)
58 cons.handler.c consaver/cons.saver.h
63 background.c background.h \
64 clipboard.c clipboard.h \
68 keybind-defaults.c keybind-defaults.h \
72 subshell.c subshell.h \
76 mc_SOURCES += selcodepage.c selcodepage.h
79 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
81 # end of automated testing
84 $(MAKE) install_mcview
86 $(MAKE) install_mcedit
89 $(MAKE) install_mcdiff
93 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
96 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
99 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
102 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
105 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
107 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
110 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff