s/paramter/parameter/
[midnight-commander.git] / src / Makefile.am
blobf18a8214cafaa70bd9cfe8bf23b0d377a80f98d7
1 AM_CFLAGS = $(GLIB_CFLAGS)
3 localedir = $(datadir)/locale
5 bin_PROGRAMS = mc mcmfmt
7 if CONS_SAVER
8 pkglib_PROGRAMS = cons.saver
9 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\" \
10         -DLIBDIR=\""$(pkglibdir)"\"
11 else
12 AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\"
13 endif
15 noinst_PROGRAMS = man2hlp
17 mcmfmt_SOURCES = mfmt.c
19 cons_saver_SOURCES = cons.saver.c
21 man2hlp_SOURCES = man2hlp.c
23 if INCLUDED_SLANG
24 SLANGLIB = ../slang/libmcslang.a
25 endif
27 if USE_EDIT
28 EDITLIB = ../edit/libedit.a
29 endif
31 if USE_VFS
32 if USE_SAMBA_FS
33 VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
34 else
35 VFSLIB = ../vfs/libvfs-mc.a
36 endif
37 endif
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
63 if CHARSET
64 mc_SOURCES = $(SRCS) $(CHARSET_SRC)
65 else
66 mc_SOURCES = $(SRCS)
67 endif
69 EXTRA_DIST = TODO ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
71 install-exec-hook:
72         $(MAKE) install_mcview
73 if USE_EDIT
74         $(MAKE) install_mcedit
75 endif
78 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
80 install_mcview:
81         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
83 install_mcedit:
84         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit