* Makefile.am: Remove definition of CONFDIR, it's not used.
[midnight-commander.git] / src / Makefile.am
blob345d296cf245165747fa4952269495201f3174e4
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
10 if CONS_SAVER
11 suppbin_PROGRAMS = cons.saver
12 endif
14 noinst_PROGRAMS = man2hlp
16 mcmfmt_SOURCES = mfmt.c
18 cons_saver_SOURCES = cons.saver.c
20 man2hlp_SOURCES = man2hlp.c
22 if INCLUDED_SLANG
23 SLANGLIB = ../slang/libmcslang.a
24 endif
26 if USE_EDIT
27 EDITLIB = ../edit/libedit.a
28 endif
30 if USE_VFS
31 if USE_SAMBA_FS
32 VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
33 else
34 VFSLIB = ../vfs/libvfs-mc.a
35 endif
36 endif
38 mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
39         $(INTLLIBS) $(TERMNET) $(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
62 if CHARSET
63 mc_SOURCES = $(SRCS) $(CHARSET_SRC)
64 else
65 mc_SOURCES = $(SRCS)
66 endif
68 EXTRA_DIST = TODO ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
70 install-exec-hook:
71         $(MAKE) install_mcview
72 if USE_EDIT
73         $(MAKE) install_mcedit
74 endif
77 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
79 install_mcview:
80         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
82 install_mcedit:
83         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit