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@
26 bin_PROGRAMS = mc mcmfmt
28 mcmfmt_SOURCES = mfmt.c
31 EDITLIB = editor/libedit.la
35 DIFFLIB = diffviewer/libdiffviewer.la
38 SRC_charset = charsets.c charsets.h selcodepage.c selcodepage.h
41 SRC_USE_charset=$(SRC_charset)
47 viewer/libmcviewer.la \
48 $(MCLIBS) $(DIFFLIB) $(EDITLIB) $(SLANGLIB) \
49 $(GLIB_LIBS) $(PCRE_LIBS) \
50 $(LIBICONV) $(INTLLIBS)
53 # this is a hack for linking with own samba library in simple way
54 mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
60 dialog-switch.c dialog-switch.h \
68 cons.handler.c consaver/cons.saver.h
87 background.c background.h \
91 clipboard.c clipboard.h \
101 fileopctx.c fileopctx.h \
105 hotlist.c hotlist.h \
108 listmode.c listmode.h \
111 panelize.c panelize.h \
112 subshell.c subshell.h \
113 textconf.c textconf.h \
114 treestore.c treestore.h \
118 mc_SOURCES += mountlist.c mountlist.h
121 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
123 # end of automated testing
126 $(MAKE) install_mcview
128 $(MAKE) install_mcedit
131 $(MAKE) install_mcdiff
135 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
138 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
141 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
144 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
147 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
149 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
152 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff