1 SUBDIRS = 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
36 SRC_charset = selcodepage.c selcodepage.h
39 SRC_USE_charset=$(SRC_charset)
43 viewer/libmcviewer.la \
44 $(DIFFLIB) $(EDITLIB) \
46 $(MCLIBS) $(SLANGLIB) $(GLIB_LIBS) \
47 $(PCRE_LIBS) $(LIBICONV) $(INTLLIBS)
50 # this is a hack for linking with own samba library in simple way
51 mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
59 cons.handler.c consaver/cons.saver.h
73 background.c background.h \
77 clipboard.c clipboard.h \
87 fileopctx.c fileopctx.h \
93 keybind-defaults.c keybind-defaults.h \
95 listmode.c listmode.h \
98 panelize.c panelize.h \
99 subshell.c subshell.h \
100 textconf.c textconf.h \
101 treestore.c treestore.h \
105 mc_SOURCES += mountlist.c mountlist.h
108 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
110 # end of automated testing
113 $(MAKE) install_mcview
115 $(MAKE) install_mcedit
118 $(MAKE) install_mcdiff
122 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
125 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
128 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
131 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
134 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
136 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
139 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff