2001-09-04 10:09:05 +04:00
|
|
|
AM_CFLAGS = $(GLIB_CFLAGS)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
2001-09-09 05:50:00 +04:00
|
|
|
localedir = $(datadir)/locale
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
bin_PROGRAMS = mc mcmfmt
|
|
|
|
|
|
|
|
if CONS_SAVER
|
2002-09-22 04:13:32 +04:00
|
|
|
pkglib_PROGRAMS = cons.saver
|
|
|
|
AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\" \
|
|
|
|
-DLIBDIR=\""$(pkglibdir)"\"
|
|
|
|
else
|
|
|
|
AM_CPPFLAGS = -DDATADIR=\""$(pkgdatadir)/"\" -DLOCALEDIR=\""$(localedir)"\"
|
2001-09-03 11:03:46 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
noinst_PROGRAMS = man2hlp
|
2002-10-15 19:33:04 +04:00
|
|
|
man2hlp_LDADD = $(GLIB_LIBS)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
mcmfmt_SOURCES = mfmt.c
|
|
|
|
|
|
|
|
cons_saver_SOURCES = cons.saver.c
|
|
|
|
|
|
|
|
man2hlp_SOURCES = man2hlp.c
|
|
|
|
|
|
|
|
if INCLUDED_SLANG
|
|
|
|
SLANGLIB = ../slang/libmcslang.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_EDIT
|
|
|
|
EDITLIB = ../edit/libedit.a
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_VFS
|
2002-05-14 16:39:04 +04:00
|
|
|
if USE_SAMBA_FS
|
|
|
|
VFSLIB = ../vfs/libvfs-mc.a ../vfs/samba/libsamba.a
|
|
|
|
else
|
2001-09-03 11:03:46 +04:00
|
|
|
VFSLIB = ../vfs/libvfs-mc.a
|
|
|
|
endif
|
2002-05-14 16:39:04 +04:00
|
|
|
endif
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
mc_LDADD = $(EDITLIB) $(SLANGLIB) $(VFSLIB) \
|
2002-09-03 21:58:26 +04:00
|
|
|
$(INTLLIBS) $(GLIB_LIBS) $(MCLIBS) $(LIBICONV)
|
2001-09-04 10:09:05 +04:00
|
|
|
|
|
|
|
CHARSET_SRC = charsets.c charsets.h selcodepage.c selcodepage.h
|
|
|
|
|
|
|
|
SRCS = achown.c achown.h background.c background.h boxes.c boxes.h \
|
|
|
|
chmod.c chmod.h chown.c chown.h cmd.c cmd.h color.c color.h \
|
|
|
|
command.c command.h complete.c complete.h cons.handler.c \
|
2003-10-25 03:20:30 +04:00
|
|
|
cons.saver.h dialog.c dialog.h dir.c dir.h \
|
2003-06-22 13:17:46 +04:00
|
|
|
eregex.h execute.c execute.h ext.c ext.h file.c filegui.c \
|
|
|
|
filegui.h file.h filenot.c fileopctx.c fileopctx.h find.c \
|
2003-10-29 11:12:44 +03:00
|
|
|
find.h findme.c findme.h fs.h \
|
2003-09-23 00:21:48 +04:00
|
|
|
glibcompat.c glibcompat.h global.h help.c help.h hotlist.c \
|
2003-10-26 07:11:12 +03:00
|
|
|
hotlist.h info.c info.h key.c key.h keyxdef.c layout.c \
|
2003-09-23 00:21:48 +04:00
|
|
|
layout.h learn.c learn.h listmode.c listmode.h main.c main.h \
|
|
|
|
menu.c menu.h mountlist.c mountlist.h mouse.c mouse.h myslang.h \
|
|
|
|
option.c option.h panel.h panelize.c panelize.h poptalloca.h \
|
|
|
|
popt.c poptconfig.c popt.h popthelp.c poptint.h poptparse.c \
|
|
|
|
profile.c profile.h regex.c rxvt.c screen.c setup.c setup.h \
|
2003-10-26 10:02:13 +03:00
|
|
|
slint.c subshell.c subshell.h textconf.c textconf.h \
|
2001-09-04 10:09:05 +04:00
|
|
|
tree.c tree.h treestore.c treestore.h tty.h user.c user.h \
|
2003-10-11 12:54:31 +04:00
|
|
|
util.c util.h utilunix.c view.c view.h vfsdummy.h widget.c \
|
|
|
|
widget.h win.c win.h wtools.c wtools.h
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
if CHARSET
|
2001-09-04 10:09:05 +04:00
|
|
|
mc_SOURCES = $(SRCS) $(CHARSET_SRC)
|
2001-09-03 11:03:46 +04:00
|
|
|
else
|
2001-09-04 10:09:05 +04:00
|
|
|
mc_SOURCES = $(SRCS)
|
2001-09-03 11:03:46 +04:00
|
|
|
endif
|
|
|
|
|
2003-11-27 21:06:56 +03:00
|
|
|
EXTRA_DIST = ChangeLog OChangeLog man2hlp.c $(CHARSET_SRC)
|
2001-09-03 11:03:46 +04:00
|
|
|
|
|
|
|
install-exec-hook:
|
|
|
|
$(MAKE) install_mcview
|
|
|
|
if USE_EDIT
|
|
|
|
$(MAKE) install_mcedit
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Make relative symlinks, but do the right thing if LN_S is `ln' or `cp'.
|
|
|
|
#
|
|
|
|
install_mcview:
|
|
|
|
cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcview && $(LN_S) mc mcview
|
|
|
|
|
|
|
|
install_mcedit:
|
|
|
|
cd $(DESTDIR)$(bindir)/$(binprefix) && rm -f mcedit && $(LN_S) mc mcedit
|