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 noinst_PROGRAMS = man2hlp
30 mcmfmt_SOURCES = mfmt.c
32 man2hlp_SOURCES = man2hlp.c
36 $(GLIB_LIBS) $(PCRE_LIBS)
39 EDITLIB = editor/libedit.la
43 DIFFLIB = diffviewer/libdiffviewer.la
46 SRC_charset = charsets.c charsets.h selcodepage.c selcodepage.h
49 SRC_USE_charset=$(SRC_charset)
55 viewer/libmcviewer.la \
58 $(INTLLIBS) $(MCLIBS) $(SLANGLIB) $(LIBICONV) \
59 $(GLIB_LIBS) $(PCRE_LIBS)
62 # this is a hack for linking with own samba library in simple way
63 mc_LDADD += ../lib/vfs/mc-vfs/samba/libsamba.a
76 cons.handler.c consaver/cons.saver.h
87 SRC_mc_extended_charset = \
96 $(SRC_mc_extended_charset) \
99 background.c background.h \
104 command.c command.h \
107 execute.c execute.h \
110 filegui.c filegui.h \
112 fileopctx.c fileopctx.h \
116 hotlist.c hotlist.h \
119 listmode.c listmode.h \
122 mountlist.c mountlist.h \
123 panelize.c panelize.h \
124 subshell.c subshell.h \
125 textconf.c textconf.h \
126 treestore.c treestore.h \
129 EXTRA_DIST = man2hlp.c $(SRC_maintainer) $(SRC_charset)
135 check_PROGRAMS = ecs-test
136 ecs_test_SOURCES = ecs-test.c ecs.h ecs.c
137 ecs_test_LDADD = $(GLIB_LIBS) $(INTLLIBS) $(MCLIBS)
139 # end of automated testing
142 $(MAKE) install_mcview
144 $(MAKE) install_mcedit
148 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
151 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
154 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
157 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcview
159 rm -f $(DESTDIR)$(bindir)/$(binprefix)/mcedit