1 SUBDIRS = filemanager man2hlp vfs viewer
11 noinst_LTLIBRARIES = libinternal.la
14 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\" \
15 -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\" \
16 -DDATADIR=\""$(pkgdatadir)/"\" \
17 -DLOCALEDIR=\""$(localedir)"\" \
18 -DEXTHELPERSDIR=\""@EXTHELPERSDIR@/"\"
22 AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
25 AM_CPPFLAGS += -I$(top_srcdir) $(GLIB_CFLAGS) $(PCRE_CPPFLAGS)
27 localedir = $(datadir)/locale
28 pkglibexecdir = $(libexecdir)/@PACKAGE@
33 EDITLIB = editor/libedit.la
37 DIFFLIB = diffviewer/libdiffviewer.la
40 libinternal_la_LIBADD = \
41 filemanager/libmcfilemanager.la \
43 viewer/libmcviewer.la \
48 $(top_builddir)/lib/libmc.la
51 # this is a hack for linking with own samba library in simple way
52 mc_LDADD += vfs/smbfs/helpers/libsamba.a
56 cons.handler.c consaver/cons.saver.h
61 libinternal_la_SOURCES = \
64 clipboard.c clipboard.h \
65 events_init.c events_init.h \
69 keybind-defaults.c keybind-defaults.h \
72 textconf.c textconf.h \
76 libinternal_la_SOURCES += selcodepage.c selcodepage.h
80 libinternal_la_SOURCES += subshell.c subshell.h
84 libinternal_la_SOURCES += background.c background.h
87 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
89 # end of automated testing
92 $(MAKE) install_mcview
94 $(MAKE) install_mcedit
97 $(MAKE) install_mcdiff
101 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
104 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
107 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
110 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
113 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
115 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
118 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff