* POTFILES.in: add gnome/gcustom-layout.c file
[midnight-commander.git] / Make.common.in
blobeb12a9183d70bb3d0e51f1e5905fec6c2094498b
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/3.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 corbadir   = $(sysconfdir)/CORBA/servers
22 libdir     = $(exec_prefix)/lib/mc
23 idldir     = $(prefix)/share/idl
24 suppbindir = $(libdir)/bin
25 gnewdir    = $(prefix)/share/mc/templates
26 tidir      = $(libdir)/term
27 extfsdir   = $(libdir)/extfs
28 confdir    = $(prefix)/etc
29 datadir    = @datadir@
30 icondir    = $(datadir)/pixmaps/mc
31 gnomeicondir = @gnomeicondir@
32 localedir  = $(datadir)/locale
33 mandir     = @mandir@
34 man1dir    = $(mandir)/man1
35 manext     = 1
36 man8dir    = $(mandir)/man8
37 man8ext   = 8
38 xv_bindir = @xv_bindir@
39 top_srcdir = $(rootdir)
41 # Tools & program stuff
42 MKINSTALLDIRS = @MKINSTALLDIRS@
43 SEDCMD = @SEDCMD@
44 SEDCMD2 = @SEDCMD2@
45 STRIP = @STRIP@
46 @SET_MAKE@
47 CC = @CC@
48 CPP = @CPP@
49 AR = @AR@
50 RANLIB = @RANLIB@
51 RM = @RM@
52 RMF = @RM@ -f
53 MV = @MV@
54 CP = @CP@
55 LN_S = @LN_S@
56 AWK = @AWK@
57 AWK_VAR_OPTION = @AWK_VAR_OPTION@
59 # Flags & libs
60 # No way, to make make happy (except GNU), we cannot use := to append
61 # something to these, so that's why there is a leading _
62 XCFLAGS = @CFLAGS@
63 XCPPFLAGS = @CPPFLAGS@ @MCCPPFLAGS@ -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(libdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC) -DLOCALEDIR=\""$(localedir)/"\" -DCONFDIR=\""$(confdir)/"\"
64 XLDFLAGS = @LDFLAGS@
65 XDEFS = @DEFS@
66 XLIBS = @LIBS@
68 # Where do we have the sources?
69 # You shouldn't have to edit this :)
70 mcsrcdir = $(rootdir)/src
71 docdir   = $(rootdir)/doc
72 mclibdir = $(rootdir)/lib
73 slangdir = $(rootdir)/slang
74 vfsdir   = $(rootdir)/vfs
75 xvdir    = $(rootdir)/xv
76 tkdir    = $(rootdir)/tk
77 gnomedir = $(rootdir)/gnome
78 icodir   = $(rootdir)/icons
80 hpath = -I$(mcsrcdir) -I$(slangdir) -I$(vfsdir) -I$(xvdir) -I$(xvdir)/support/xview_private -I$(tkdir)
82 # Rules
83 first_rule: all
85 @PHONY@ all check cross TAGS clean install uninstall distcopy depend dep
86 @PHONY@ fastdep fastdepslang fastdepvfs fastdeploc slowdep
88 @PCENTRULE@../slang/%.o : ../slang/%.c
89 @PCENTRULE@     cd ../slang; $(MAKE) libmcslang.a
91 @PCENTRULE@../vfs/%.o : ../vfs/%.c
92 @PCENTRULE@     cd ../vfs; $(MAKE) libvfs.a
94 fastdep: dummy
95         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
96         -$(MAKE) fastdeploc
97         @WRITEDEP@
99 fastdepslang:
100 @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
102 fastdepvfs:
103 @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
105 slowdep: dummy
106         if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
107         $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi
108         @WRITEDEP@
110 mcdep: @dep@
112 dummy:
114 # End of Make.common