ru.po: Heavily updated translation
[midnight-commander.git] / Make.common.in
blob4b9395dce5dc491a9c0f9d61d8617c4f1502bb16
1 VERSION = @VERSION@
3 SHELL = @SHELL@
5 # This variable makes it possible to move the installation root to another
6 # directory. This is useful when you're creating a binary distribution of mc.
7 # If empty, normal root will be used.
8 # You can run e.g. 'make install DESTDIR=/packages/mc/5.0' to accomplish
9 # that.
10 # DESTDIR = /opt/apps/mc/$(VERSION)
12 # Installation target directories & other installation stuff
13 prefix = @prefix@
14 exec_prefix = @exec_prefix@
15 binprefix =
16 manprefix =
18 builddir   = @builddir@
19 bindir     = @bindir@
20 sysconfdir = @sysconfdir@
21 datadir    = @datadir@
22 libdir     = @libdir@
23 mandir     = @mandir@
24 gnomeicondir = @gnomeicondir@
25 xv_bindir  = @xv_bindir@
26 corbadir   = $(sysconfdir)/CORBA/servers
27 mclibdir   = $(libdir)/mc
28 desktopdir = $(mclibdir)/desktop-scripts
29 idldir     = $(prefix)/share/idl
30 suppbindir = $(mclibdir)/bin
31 gnewdir    = $(prefix)/share/mc/templates
32 tidir      = $(mclibdir)/term
33 extfsdir   = $(mclibdir)/extfs
34 confdir    = $(sysconfdir)
35 icondir    = $(datadir)/pixmaps/mc
36 syntaxdir  = $(mclibdir)/syntax
37 localedir  = $(datadir)/locale
38 man1dir    = $(mandir)/man1
39 manext     = 1
40 man8dir    = $(mandir)/man8
41 man8ext    = 8
43 top_srcdir = $(rootdir)
45 # Tools & program stuff
46 MKINSTALLDIRS = @MKINSTALLDIRS@
47 SEDCMD = @SEDCMD@
48 SEDCMD2 = @SEDCMD2@
49 STRIP = @STRIP@
50 @SET_MAKE@
51 CC = @CC@
52 CPP = @CPP@
53 AR = @AR@
54 RANLIB = @RANLIB@
55 RM = @RM@
56 RMF = @RM@ -f
57 MV = @MV@
58 CP = @CP@
59 LN_S = @LN_S@
60 AWK = @AWK@
61 AWK_VAR_OPTION = @AWK_VAR_OPTION@
63 # Flags & libs
64 # No way, to make make happy (except GNU), we cannot use := to append
65 # something to these, so that's why there is a leading _
66 XCFLAGS = @CFLAGS@
67 XCPPFLAGS = @CPPFLAGS@ @MCCPPFLAGS@ -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(mclibdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC) -DLOCALEDIR=\""$(localedir)/"\" -DCONFDIR=\""$(confdir)/"\" -DDESKTOP_INIT_DIR=\""$(desktopdir)/"\"
68 XLDFLAGS = @LDFLAGS@
69 XDEFS = @DEFS@
70 XLIBS = @LIBS@
72 # Where do we have the sources?
73 # You shouldn't have to edit this :)
74 mcsrcdir    = $(rootdir)/src
75 docdir      = $(rootdir)/doc
76 mcsrclibdir = $(rootdir)/lib
77 slangdir    = $(rootdir)/slang
78 vfsdir      = $(rootdir)/vfs
79 xvdir       = $(rootdir)/xv
80 tkdir       = $(rootdir)/tk
81 gnomedir    = $(rootdir)/gnome
83 hpath = -I$(mcsrcdir) -I$(slangdir) -I$(vfsdir) -I$(xvdir) -I$(xvdir)/support/xview_private -I$(tkdir)
85 # Rules
86 first_rule: all
88 @PHONY@ all check cross TAGS clean install uninstall distcopy depend dep
89 @PHONY@ fastdep fastdepslang fastdepvfs fastdeploc slowdep
91 @PCENTRULE@../slang/%.o : ../slang/%.c
92 @PCENTRULE@     cd ../slang; $(MAKE) libmcslang.a
94 @PCENTRULE@../vfs/%.o : ../vfs/%.c
95 @PCENTRULE@     cd ../vfs; $(MAKE) libvfs.a
97 fastdep: dummy
98         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
99         -$(MAKE) fastdeploc
100         @WRITEDEP@
102 fastdepslang:
103 @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
105 fastdepvfs:
106 @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
108 slowdep: dummy
109         if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
110         $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi
111         @WRITEDEP@
113 mcdep: @dep@
115 dummy:
117 # End of Make.common