1 SUBDIRS = mcconfig search tty viewer filehighlight skin
3 AM_CFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
5 localedir = $(datadir)/locale
6 pkglibexecdir = $(libexecdir)/@PACKAGE@
8 bin_PROGRAMS = mc mcmfmt
12 pkglibexec_PROGRAMS = cons.saver
13 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\" \
14 -DSAVERDIR=\""$(pkglibexecdir)"\" \
15 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
17 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" \
18 -DLOCALEDIR=\""$(localedir)"\" \
19 -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\"
22 noinst_PROGRAMS = man2hlp
23 man2hlp_LDADD = $(GLIB_LIBS)
25 mcmfmt_SOURCES = mfmt.c
27 cons_saver_SOURCES = cons.saver.c
29 man2hlp_SOURCES = man2hlp.c glibcompat.c
32 EDITLIB = ../edit/libedit.a
37 VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
39 VFSLIB = ../vfs/libvfs-mc.a
43 SRC_maintainer=logging.c logging.h
44 SRC_charset = charsets.c charsets.h selcodepage.c selcodepage.h
46 if USE_MAINTAINER_MODE
47 SRC_USE_maintainer=$(SRC_maintainer)
51 SRC_USE_charset=$(SRC_charset)
55 $(EDITLIB) $(VFSLIB) \
56 filehighlight/libmcfilehighlight.la \
57 mcconfig/libmcconfig.la \
61 viewer/libmcviewer.la \
62 $(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) $(GLIB_LIBS)
73 strescape.c strescape.h \
80 cons.handler.c cons.saver.h
97 SRC_mc_extended_charset = \
101 $(SRC_USE_maintainer) \
105 $(SRC_mc_conssaver) \
109 $(SRC_mc_extended_charset) \
112 background.c background.h \
117 command.c command.h \
120 execute.c execute.h \
123 filegui.c filegui.h \
126 fileopctx.c fileopctx.h \
129 glibcompat.c glibcompat.h \
133 hotlist.c hotlist.h \
136 listmode.c listmode.h \
139 mountlist.c mountlist.h \
140 panelize.c panelize.h \
141 subshell.c subshell.h \
142 textconf.c textconf.h \
144 treestore.c treestore.h \
147 EXTRA_DIST = man2hlp.c $(SRC_maintainer) $(SRC_charset)
153 check_PROGRAMS = ecs-test
154 ecs_test_SOURCES = ecs-test.c ecs.h ecs.c
155 ecs_test_LDADD = $(GLIB_LIBS) $(INTLLIBS) $(MCLIBS)
157 # end of automated testing
160 $(MAKE) install_mcview
162 $(MAKE) install_mcedit
166 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
169 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
172 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
175 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
177 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit