7 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
9 localedir = $(datadir)/locale
10 pkglibexecdir = $(libexecdir)/@PACKAGE@
12 bin_PROGRAMS = mc mcmfmt
16 pkglibexec_PROGRAMS = cons.saver
17 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\" \
18 -DSAVERDIR=\""$(pkglibexecdir)"\" \
19 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
21 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" \
22 -DLOCALEDIR=\""$(localedir)"\" \
23 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
26 noinst_PROGRAMS = man2hlp
27 man2hlp_LDADD = $(GLIB_LIBS)
29 mcmfmt_SOURCES = mfmt.c
31 cons_saver_SOURCES = cons.saver.c
33 man2hlp_SOURCES = man2hlp.c glibcompat.c
36 EDITLIB = editor/libedit.a
39 SRC_maintainer=logging.c logging.h
40 SRC_charset = charsets.c charsets.h selcodepage.c selcodepage.h
42 if USE_MAINTAINER_MODE
43 SRC_USE_maintainer=$(SRC_maintainer)
47 SRC_USE_charset=$(SRC_charset)
53 viewer/libmcviewer.la \
54 $(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) $(GLIB_LIBS)
65 strescape.c strescape.h \
72 cons.handler.c cons.saver.h
88 SRC_mc_extended_charset = \
92 $(SRC_USE_maintainer) \
100 $(SRC_mc_extended_charset) \
103 background.c background.h \
108 command.c command.h \
111 execute.c execute.h \
114 filegui.c filegui.h \
117 fileopctx.c fileopctx.h \
120 glibcompat.c glibcompat.h \
124 hotlist.c hotlist.h \
127 listmode.c listmode.h \
130 mountlist.c mountlist.h \
131 panelize.c panelize.h \
132 subshell.c subshell.h \
133 textconf.c textconf.h \
135 treestore.c treestore.h \
138 EXTRA_DIST = man2hlp.c $(SRC_maintainer) $(SRC_charset)
144 check_PROGRAMS = ecs-test
145 ecs_test_SOURCES = ecs-test.c ecs.h ecs.c
146 ecs_test_LDADD = $(GLIB_LIBS) $(INTLLIBS) $(MCLIBS)
148 # end of automated testing
151 $(MAKE) install_mcview
153 $(MAKE) install_mcedit
157 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
160 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
163 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
166 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
168 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit