1 SUBDIRS = filemanager man2hlp vfs viewer
12 -DLOCALEDIR=\""$(localedir)"\" \
13 -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\"
17 AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
20 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
22 localedir = $(datadir)/locale
23 pkglibexecdir = $(libexecdir)/@PACKAGE@
28 EDITLIB = editor/libedit.la
32 DIFFLIB = diffviewer/libdiffviewer.la
37 viewer/libmcviewer.la \
38 filemanager/libmcfilemanager.la \
39 $(DIFFLIB) $(EDITLIB) \
40 $(top_builddir)/lib/libmc.la
43 # this is a hack for linking with own samba library in simple way
44 mc_LDADD += vfs/smbfs/helpers/libsamba.a
48 cons.handler.c consaver/cons.saver.h
53 background.c background.h \
54 clipboard.c clipboard.h \
55 events_init.c events_init.h \
59 keybind-defaults.c keybind-defaults.h \
63 subshell.c subshell.h \
64 textconf.c textconf.h \
68 mc_SOURCES += selcodepage.c selcodepage.h
71 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
73 # end of automated testing
76 $(MAKE) install_mcview
78 $(MAKE) install_mcedit
81 $(MAKE) install_mcdiff
85 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
88 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
91 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
94 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
97 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
99 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
102 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff