Corrected some authors email addresses.
[midnight-commander.git] / Make.common.in
blob537ff26bf8b884255eca6eb441b0c99caf416851
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 bindir     = @bindir@
19 sysconfdir = @sysconfdir@
20 datadir    = @datadir@
21 libdir     = @libdir@
22 mandir     = @mandir@
23 gnomeicondir = @gnomeicondir@
24 corbadir   = $(sysconfdir)/CORBA/servers
25 mclibdir   = $(libdir)/mc
26 desktopdir = $(mclibdir)/desktop-scripts
27 idldir     = $(prefix)/share/idl
28 suppbindir = $(mclibdir)/bin
29 gnewdir    = $(prefix)/share/mc/templates
30 tidir      = $(mclibdir)/term
31 extfsdir   = $(mclibdir)/extfs
32 confdir    = $(sysconfdir)
33 icondir    = $(datadir)/pixmaps/mc
34 syntaxdir  = $(mclibdir)/syntax
35 localedir  = $(datadir)/locale
36 man1dir    = $(mandir)/man1
37 manext     = 1
38 man8dir    = $(mandir)/man8
39 man8ext    = 8
41 # Tools & program stuff
42 SEDCMD = @SEDCMD@
43 SEDCMD2 = @SEDCMD2@
44 @SET_MAKE@
45 CC = @CC@
46 CPP = @CPP@
47 AR = @AR@
48 RANLIB = @RANLIB@
49 RMF = rm -f
50 MV = mv
51 CP = cp
52 LN_S = @LN_S@
53 AWK = @AWK@
54 AWK_VAR_OPTION = @AWK_VAR_OPTION@
56 # Flags & libs
57 # No way, to make make happy (except GNU), we cannot use := to append
58 # something to these, so that's why there is a leading _
59 XCFLAGS = @CFLAGS@
60 XCPPFLAGS = @CPPFLAGS@ @MCCPPFLAGS@ -I.. \
61         -DBINDIR=\""$(bindir)/"\" \
62         -DLIBDIR=\""$(mclibdir)/"\" \
63         -DICONDIR=\""$(icondir)/"\" \
64         -DLOCALEDIR=\""$(localedir)/"\" \
65         -DCONFDIR=\""$(confdir)/"\" \
66         -DDESKTOP_INIT_DIR=\""$(desktopdir)/"\" \
67         @GLIB_CFLAGS@
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    = $(top_srcdir)/src
75 docdir      = $(top_srcdir)/doc
76 mcsrclibdir = $(top_srcdir)/lib
77 slangdir    = $(top_srcdir)/slang
78 vfsdir      = $(top_srcdir)/vfs
79 gnomedir    = $(top_srcdir)/gnome
81 hpath = -I$(mcsrcdir) -I$(slangdir) -I$(vfsdir)
83 # Rules
84 first_rule: all
86 @PHONY@ all check cross TAGS clean install uninstall distcopy depend dep
87 @PHONY@ fastdep fastdepslang fastdepvfs fastdeploc slowdep
89 @PCENTRULE@../slang/%.o : ../slang/%.c
90 @PCENTRULE@     cd ../slang; $(MAKE) libmcslang.a
92 @PCENTRULE@../vfs/%.o : ../vfs/%.c
93 @PCENTRULE@     cd ../vfs; $(MAKE) libvfs.a
95 fastdep: dummy
96         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
97         -$(MAKE) fastdeploc
98         @WRITEDEP@
100 fastdepslang:
101 @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
103 fastdepvfs:
104 @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
106 slowdep: dummy
107         if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
108         $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi
109         @WRITEDEP@
111 mcdep: @dep@
113 dummy:
115 # Added for compatability with Automake
116 dvi:
118 installcheck:
120 # End of Make.common