8 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" \
9 -DLOCALEDIR=\""$(localedir)"\" \
10 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
15 AM_CPPFLAGS += -DSAVERDIR=\""$(pkglibexecdir)"\"
18 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
20 localedir = $(datadir)/locale
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
23 bin_PROGRAMS = mc mcmfmt
25 noinst_PROGRAMS = man2hlp
27 mcmfmt_SOURCES = mfmt.c
29 man2hlp_SOURCES = man2hlp.c
33 $(GLIB_LIBS) $(PCRE_LIBS)
36 EDITLIB = editor/libedit.la
39 SRC_charset = charsets.c charsets.h selcodepage.c selcodepage.h
42 SRC_USE_charset=$(SRC_charset)
48 viewer/libmcviewer.la \
49 $(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) \
50 $(GLIB_LIBS) $(PCRE_LIBS)
53 # this is a hack for linking with own samba library in simple way
54 mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
67 cons.handler.c consaver/cons.saver.h
78 SRC_mc_extended_charset = \
87 $(SRC_mc_extended_charset) \
90 background.c background.h \
101 filegui.c filegui.h \
103 fileopctx.c fileopctx.h \
107 hotlist.c hotlist.h \
110 listmode.c listmode.h \
113 mountlist.c mountlist.h \
114 panelize.c panelize.h \
115 subshell.c subshell.h \
116 textconf.c textconf.h \
117 treestore.c treestore.h \
120 EXTRA_DIST = man2hlp.c $(SRC_maintainer) $(SRC_charset)
126 check_PROGRAMS = ecs-test
127 ecs_test_SOURCES = ecs-test.c ecs.h ecs.c
128 ecs_test_LDADD = $(GLIB_LIBS) $(INTLLIBS) $(MCLIBS)
130 # end of automated testing
133 $(MAKE) install_mcview
135 $(MAKE) install_mcedit
139 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
142 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
145 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
148 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
150 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit