1 AM_CFLAGS = $(GLIB_CFLAGS)
3 localedir = $(datadir)/locale
5 bin_PROGRAMS = mc mcmfmt
8 pkglib_PROGRAMS = cons.saver
9 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\" \
10 -DLIBDIR=\""$(pkglibdir)"\"
12 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\"
15 noinst_PROGRAMS = man2hlp
17 mcmfmt_SOURCES = mfmt.c
19 cons_saver_SOURCES = cons.saver.c
21 man2hlp_SOURCES = man2hlp.c
24 SLANGLIB = ../slang/libmcslang.a
28 EDITLIB = ../edit/libedit.a
33 VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
35 VFSLIB = ../vfs/libvfs-mc.a
39 mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
40 $(INTLLIBS) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV)
42 CHARSET_SRC = charsets.c charsets.h selcodepage.c selcodepage.h
44 SRCS = achown.c achown.h background.c background.h boxes.c boxes.h \
45 chmod.c chmod.h chown.c chown.h cmd.c cmd.h color.c color.h \
46 command.c command.h complete.c complete.h cons.handler.c \
47 cons.saver.h dialog.c dialog.h dir.c dir.h dlg.c dlg.h \
48 eregex.h ext.c ext.h file.c filegui.c filegui.h file.h \
49 filenot.c fileopctx.c fileopctx.h find.c find.h findme.c \
50 findme.h fs.h fsusage.c fsusage.h global.h help.c help.h \
51 hotlist.c hotlist.h i18n.h info.c info.h key.c key.h \
52 keyxdef.c layout.c layout.h learn.c learn.h listmode.c \
53 listmode.h main.c main.h menu.c menu.h \
54 mountlist.c mountlist.h mouse.c mouse.h myslang.h option.c \
55 option.h panel.h panelize.c panelize.h poptalloca.h popt.c \
56 poptconfig.c popt.h popthelp.c poptint.h poptparse.c profile.c \
57 profile.h regex.c rxvt.c screen.c setup.c setup.h slint.c \
58 subshell.c subshell.h terms.c text.c textconf.c textconf.h \
59 tree.c tree.h treestore.c treestore.h tty.h user.c user.h \
60 util.c util.h utilunix.c view.c view.h widget.c widget.h \
61 win.c win.h wtools.c wtools.h
64 mc_SOURCES = $(SRCS) $(CHARSET_SRC)
69 EXTRA_DIST = TODO ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
72 $(MAKE) install_mcview
74 $(MAKE) install_mcedit
78 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
81 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
84 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit