Updated italian translation
[midnight-commander.git] / src / Makefile.am
blob77a8c01d109982bc1c2f7bf21986b2fd23e514a3
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
16 man2hlp_LDADD = $(GLIB_LIBS)
18 mcmfmt_SOURCES = mfmt.c
20 cons_saver_SOURCES = cons.saver.c
22 man2hlp_SOURCES = man2hlp.c
24 if INCLUDED_SLANG
25 SLANGLIB = ../slang/libmcslang.a
26 endif
28 if USE_EDIT
29 EDITLIB = ../edit/libedit.a
30 endif
32 if USE_VFS
33 if USE_SAMBA_FS
34 VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
35 else
36 VFSLIB = ../vfs/libvfs-mc.a
37 endif
38 endif
40 mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
41         $(INTLLIBS) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV)
43 CHARSET_SRC = charsets.c charsets.h selcodepage.c selcodepage.h
45 SRCS =  achown.c achown.h background.c background.h boxes.c boxes.h     \
46         chmod.c chmod.h chown.c chown.h cmd.c cmd.h color.c color.h     \
47         command.c command.h complete.c complete.h cons.handler.c        \
48         cons.saver.h dialog.c dialog.h dir.c dir.h                      \
49         eregex.h execute.c execute.h ext.c ext.h file.c filegui.c       \
50         filegui.h file.h filenot.c fileopctx.c fileopctx.h find.c       \
51         find.h findme.c findme.h fs.h                                   \
52         glibcompat.c glibcompat.h global.h help.c help.h hotlist.c      \
53         hotlist.h info.c info.h key.c key.h keyxdef.c layout.c          \
54         layout.h learn.c learn.h listmode.c listmode.h main.c main.h    \
55         menu.c menu.h mountlist.c mountlist.h mouse.c mouse.h myslang.h \
56         option.c option.h panel.h panelize.c panelize.h poptalloca.h    \
57         popt.c poptconfig.c popt.h popthelp.c poptint.h poptparse.c     \
58         profile.c profile.h regex.c rxvt.c screen.c setup.c setup.h     \
59         slint.c subshell.c subshell.h textconf.c textconf.h             \
60         tree.c tree.h treestore.c treestore.h tty.h user.c user.h       \
61         util.c util.h utilunix.c view.c view.h vfsdummy.h widget.c      \
62         widget.h win.c win.h wtools.c wtools.h
64 if CHARSET
65 mc_SOURCES = $(SRCS) $(CHARSET_SRC)
66 else
67 mc_SOURCES = $(SRCS)
68 endif
70 EXTRA_DIST = ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
72 install-exec-hook:
73         $(MAKE) install_mcview
74 if USE_EDIT
75         $(MAKE) install_mcedit
76 endif
79 # Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
81 install_mcview:
82         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
84 install_mcedit:
85         cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit