1998-08-27 22:28:22 +04:00
VERSION = @VERSION@
1998-02-27 07:54:42 +03:00
1999-02-10 01:06:56 +03:00
SHELL = @SHELL@
1998-02-27 07:54:42 +03:00
# This variable makes it possible to move the installation root to another
# directory. This is useful when you're creating a binary distribution of mc.
# If empty, normal root will be used.
1999-03-26 19:18:41 +03:00
# You can run e.g. 'make install DESTDIR=/packages/mc/5.0' to accomplish
1998-02-27 07:54:42 +03:00
# that.
# DESTDIR = /opt/apps/mc/$(VERSION)
# Installation target directories & other installation stuff
prefix = @prefix@
1998-08-21 01:58:01 +04:00
exec_prefix = @exec_prefix@
1998-02-27 07:54:42 +03:00
binprefix =
manprefix =
1998-03-25 08:16:00 +03:00
1998-04-02 23:57:59 +04:00
builddir = @builddir@
1998-08-21 01:58:01 +04:00
bindir = @bindir@
1998-12-31 04:18:31 +03:00
sysconfdir = @sysconfdir@
1999-03-22 03:01:53 +03:00
datadir = @datadir@
libdir = @libdir@
mandir = @mandir@
gnomeicondir = @gnomeicondir@
1998-12-31 04:18:31 +03:00
corbadir = $(sysconfdir)/CORBA/servers
1999-03-22 03:01:53 +03:00
mclibdir = $(libdir)/mc
desktopdir = $(mclibdir)/desktop-scripts
1998-12-03 02:44:06 +03:00
idldir = $(prefix)/share/idl
1999-03-22 03:01:53 +03:00
suppbindir = $(mclibdir)/bin
1999-01-19 00:25:55 +03:00
gnewdir = $(prefix)/share/mc/templates
1999-03-22 03:01:53 +03:00
tidir = $(mclibdir)/term
extfsdir = $(mclibdir)/extfs
1999-06-22 23:56:36 +04:00
confdir = $(sysconfdir)
1998-12-07 05:12:24 +03:00
icondir = $(datadir)/pixmaps/mc
1999-03-22 03:01:53 +03:00
syntaxdir = $(mclibdir)/syntax
1998-03-25 08:16:00 +03:00
localedir = $(datadir)/locale
1999-02-04 22:16:01 +03:00
man1dir = $(mandir)/man1
1998-03-25 08:16:00 +03:00
manext = 1
1999-02-04 22:16:01 +03:00
man8dir = $(mandir)/man8
1999-03-22 03:01:53 +03:00
man8ext = 8
1998-02-27 07:54:42 +03:00
# Tools & program stuff
1999-02-04 22:16:01 +03:00
MKINSTALLDIRS = @MKINSTALLDIRS@
1998-02-27 07:54:42 +03:00
SEDCMD = @SEDCMD@
SEDCMD2 = @SEDCMD2@
@SET_MAKE@
CC = @CC@
CPP = @CPP@
AR = @AR@
RANLIB = @RANLIB@
2000-09-15 00:10:45 +04:00
RMF = rm -f
MV = mv
2000-09-15 00:29:02 +04:00
CP = cp
1998-02-27 07:54:42 +03:00
LN_S = @LN_S@
AWK = @AWK@
AWK_VAR_OPTION = @AWK_VAR_OPTION@
# Flags & libs
# No way, to make make happy (except GNU), we cannot use := to append
# something to these, so that's why there is a leading _
XCFLAGS = @CFLAGS@
1999-03-26 19:18:41 +03:00
XCPPFLAGS = @CPPFLAGS@ @MCCPPFLAGS@ -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(mclibdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC) -DLOCALEDIR=\""$(localedir)/"\" -DCONFDIR=\""$(confdir)/"\" -DDESKTOP_INIT_DIR=\""$(desktopdir)/"\"
1998-02-27 07:54:42 +03:00
XLDFLAGS = @LDFLAGS@
XDEFS = @DEFS@
XLIBS = @LIBS@
# Where do we have the sources?
# You shouldn't have to edit this :)
2000-09-14 19:12:00 +04:00
mcsrcdir = $(top_srcdir)/src
docdir = $(top_srcdir)/doc
mcsrclibdir = $(top_srcdir)/lib
slangdir = $(top_srcdir)/slang
vfsdir = $(top_srcdir)/vfs
gnomedir = $(top_srcdir)/gnome
1998-02-27 07:54:42 +03:00
2000-08-22 06:17:58 +04:00
hpath = -I$(mcsrcdir) -I$(slangdir) -I$(vfsdir)
1998-02-27 07:54:42 +03:00
# Rules
first_rule: all
@PHONY@ all check cross TAGS clean install uninstall distcopy depend dep
@PHONY@ fastdep fastdepslang fastdepvfs fastdeploc slowdep
@PCENTRULE@../slang/%.o : ../slang/%.c
@PCENTRULE@ cd ../slang; $(MAKE) libmcslang.a
@PCENTRULE@../vfs/%.o : ../vfs/%.c
@PCENTRULE@ cd ../vfs; $(MAKE) libvfs.a
fastdep: dummy
if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then { cd $(srcdir); $(AWK) -f $(mcsrcdir)/depend.awk $(AWK_VAR_OPTION) hpath="$(hpath)" $(AWK_VAR_OPTION) srcdir="$(srcdir)" *.[ch];} > .depend; fi
-$(MAKE) fastdeploc
@WRITEDEP@
fastdepslang:
@PCENTRULE@ { { { cd ../slang; $(MAKE) showlibdep;} | grep OBJS; cat .depend;} | { cd $(slangdir); $(AWK) -f $(mcsrcdir)/depend.awk $(AWK_VAR_OPTION) dolib="../slang libmcslang.a" $(AWK_VAR_OPTION) hpath="$(hpath)" $(AWK_VAR_OPTION) srcdir="$(slangdir)";};} >> .depend
fastdepvfs:
@PCENTRULE@ { { { cd ../vfs; $(MAKE) showlibdep;} | grep OBJS; cat .depend;} | { cd $(vfsdir); $(AWK) -f $(mcsrcdir)/depend.awk $(AWK_VAR_OPTION) dolib="../vfs libvfs.a" $(AWK_VAR_OPTION) hpath="$(hpath)" $(AWK_VAR_OPTION) srcdir="$(vfsdir)";};} >> .depend
slowdep: dummy
if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
$(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi
@WRITEDEP@
mcdep: @dep@
dummy:
2000-09-17 20:29:01 +04:00
# Added for compatability with Automake
dvi:
1998-02-27 07:54:42 +03:00
# End of Make.common