Added cs to the list of languages
[midnight-commander.git] / Make.common.in
blob66dde6120c7e1251a71a915039bae78d24e9b098
1 VERSION = @VERSION@
3 SHELL = /bin/sh
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 datadir    = @datadir@
29 icondir    = $(datadir)/pixmaps/mc
30 localedir  = $(datadir)/locale
31 mandir     = @mandir@
32 man1dir    = $(mandir)/man1
33 manext     = 1
34 man8dir    = $(mandir)/man8
35 man8ext   = 8
36 xv_bindir = @xv_bindir@
37 top_srcdir = $(rootdir)
39 # Tools & program stuff
40 MKINSTALLDIRS = @MKINSTALLDIRS@
41 SEDCMD = @SEDCMD@
42 SEDCMD2 = @SEDCMD2@
43 STRIP = @STRIP@
44 @SET_MAKE@
45 CC = @CC@
46 CPP = @CPP@
47 AR = @AR@
48 RANLIB = @RANLIB@
49 RM = @RM@
50 RMF = @RM@ -f
51 MV = @MV@
52 CP = @CP@
53 LN_S = @LN_S@
54 AWK = @AWK@
55 AWK_VAR_OPTION = @AWK_VAR_OPTION@
57 # Flags & libs
58 # No way, to make make happy (except GNU), we cannot use := to append
59 # something to these, so that's why there is a leading _
60 XCFLAGS = @CFLAGS@
61 XCPPFLAGS = @CPPFLAGS@ @MCCPPFLAGS@ -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(libdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC) -DLOCALEDIR=\""$(localedir)/"\" 
62 XLDFLAGS = @LDFLAGS@
63 XDEFS = @DEFS@
64 XLIBS = @LIBS@
66 # Where do we have the sources?
67 # You shouldn't have to edit this :)
68 mcsrcdir = $(rootdir)/src
69 docdir   = $(rootdir)/doc
70 mclibdir = $(rootdir)/lib
71 slangdir = $(rootdir)/slang
72 vfsdir   = $(rootdir)/vfs
73 xvdir    = $(rootdir)/xv
74 tkdir    = $(rootdir)/tk
75 gnomedir = $(rootdir)/gnome
76 icodir   = $(rootdir)/icons
78 hpath = -I$(mcsrcdir) -I$(slangdir) -I$(vfsdir) -I$(xvdir) -I$(xvdir)/support/xview_private -I$(tkdir)
80 # Rules
81 first_rule: all
83 @PHONY@ all check cross TAGS clean install uninstall distcopy depend dep
84 @PHONY@ fastdep fastdepslang fastdepvfs fastdeploc slowdep
86 @PCENTRULE@../slang/%.o : ../slang/%.c
87 @PCENTRULE@     cd ../slang; $(MAKE) libmcslang.a
89 @PCENTRULE@../vfs/%.o : ../vfs/%.c
90 @PCENTRULE@     cd ../vfs; $(MAKE) libvfs.a
92 fastdep: dummy
93         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
94         -$(MAKE) fastdeploc
95         @WRITEDEP@
97 fastdepslang:
98 @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
100 fastdepvfs:
101 @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
103 slowdep: dummy
104         if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
105         $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi
106         @WRITEDEP@
108 mcdep: @dep@
110 dummy:
112 # End of Make.common