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