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
28 mcmfmt_SOURCES = mfmt.c
30 cons_saver_SOURCES = cons.saver.c
32 man2hlp_SOURCES = man2hlp.c
33 man2hlp_LDADD = $(GLIB_LIBS) ../lib/libmc.la
36 EDITLIB = editor/libedit.la
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)
57 # this is a hack for linking with own samba library in simple way
58 mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
71 strescape.c strescape.h \
78 cons.handler.c cons.saver.h
94 SRC_mc_extended_charset = \
98 $(SRC_USE_maintainer) \
102 $(SRC_mc_conssaver) \
106 $(SRC_mc_extended_charset) \
109 background.c background.h \
114 command.c command.h \
117 execute.c execute.h \
120 filegui.c filegui.h \
122 fileopctx.c fileopctx.h \
126 hotlist.c hotlist.h \
129 listmode.c listmode.h \
132 mountlist.c mountlist.h \
133 panelize.c panelize.h \
134 subshell.c subshell.h \
135 textconf.c textconf.h \
136 treestore.c treestore.h \
139 EXTRA_DIST = man2hlp.c $(SRC_maintainer) $(SRC_charset)
145 check_PROGRAMS = ecs-test
146 ecs_test_SOURCES = ecs-test.c ecs.h ecs.c
147 ecs_test_LDADD = $(GLIB_LIBS) $(INTLLIBS) $(MCLIBS)
149 # end of automated testing
152 $(MAKE) install_mcview
154 $(MAKE) install_mcedit
158 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
161 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
164 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
167 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
169 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit