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)
45 viewer/libmcviewer.la \
46 $(DIFFLIB) $(EDITLIB) \
48 $(MCLIBS) $(SLANGLIB) $(GLIB_LIBS) \
49 $(PCRE_LIBS) $(LIBICONV) $(INTLLIBS)
52 # this is a hack for linking with own samba library in simple way
53 mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
58 dialog-switch.c dialog-switch.h \
66 cons.handler.c consaver/cons.saver.h
85 background.c background.h \
89 clipboard.c clipboard.h \
99 fileopctx.c fileopctx.h \
103 hotlist.c hotlist.h \
106 listmode.c listmode.h \
109 panelize.c panelize.h \
110 subshell.c subshell.h \
111 textconf.c textconf.h \
112 treestore.c treestore.h \
116 mc_SOURCES += mountlist.c mountlist.h
119 EXTRA_DIST = $(SRC_maintainer) $(SRC_charset)
121 # end of automated testing
124 $(MAKE) install_mcview
126 $(MAKE) install_mcedit
129 $(MAKE) install_mcdiff
133 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
136 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
139 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
142 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcdiff && $(LN_S) mc mcdiff
145 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
147 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit
150 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcdiff