1 AM_CFLAGS = $(GLIB_CFLAGS)
2 AM_CPPFLAGS = -DLIBDIR=\""$(mclibdir)/"\" -DLOCALEDIR=\""$(localedir)"\"
4 mclibdir = $(libdir)/mc
5 suppbindir = $(mclibdir)/bin
6 localedir = $(datadir)/locale
8 bin_PROGRAMS = mc mcmfmt
11 suppbin_PROGRAMS = cons.saver
14 noinst_PROGRAMS = man2hlp
16 mcmfmt_SOURCES = mfmt.c
18 cons_saver_SOURCES = cons.saver.c
20 man2hlp_SOURCES = man2hlp.c
23 SLANGLIB = ../slang/libmcslang.a
27 EDITLIB = ../edit/libedit.a
32 VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
34 VFSLIB = ../vfs/libvfs-mc.a
38 mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
39 $(INTLLIBS) $(TERMNET) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV)
41 CHARSET_SRC = charsets.c charsets.h selcodepage.c selcodepage.h
43 SRCS = achown.c achown.h background.c background.h boxes.c boxes.h \
44 chmod.c chmod.h chown.c chown.h cmd.c cmd.h color.c color.h \
45 command.c command.h complete.c complete.h cons.handler.c \
46 cons.saver.h dialog.c dialog.h dir.c dir.h dlg.c dlg.h \
47 eregex.h ext.c ext.h file.c filegui.c filegui.h file.h \
48 filenot.c fileopctx.c fileopctx.h find.c find.h findme.c \
49 findme.h fs.h fsusage.c fsusage.h global.h help.c help.h \
50 hotlist.c hotlist.h i18n.h info.c info.h key.c key.h \
51 keyxdef.c layout.c layout.h learn.c learn.h listmode.c \
52 listmode.h main.c main.h menu.c menu.h \
53 mountlist.c mountlist.h mouse.c mouse.h myslang.h option.c \
54 option.h panel.h panelize.c panelize.h poptalloca.h popt.c \
55 poptconfig.c popt.h popthelp.c poptint.h poptparse.c profile.c \
56 profile.h regex.c rxvt.c screen.c setup.c setup.h slint.c \
57 subshell.c subshell.h terms.c text.c textconf.c textconf.h \
58 tree.c tree.h treestore.c treestore.h tty.h user.c user.h \
59 util.c util.h utilunix.c view.c view.h widget.c widget.h \
60 win.c win.h wtools.c wtools.h
63 mc_SOURCES = $(SRCS) $(CHARSET_SRC)
68 EXTRA_DIST = TODO ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
71 $(MAKE) install_mcview
73 $(MAKE) install_mcedit
77 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
80 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
83 cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit