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
10 # DESTDIR = /opt/apps/mc/$(VERSION)
12 # Installation target directories & other installation stuff
14 exec_prefix = @exec_prefix@
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
30 icondir = $(datadir)/pixmaps/mc
31 gnomeicondir = @gnomeicondir@
32 localedir = $(datadir)/locale
34 man1dir = $(mandir)/man1
36 man8dir = $(mandir)/man8
38 xv_bindir = @xv_bindir@
39 top_srcdir = $(rootdir)
41 # Tools & program stuff
42 MKINSTALLDIRS = @MKINSTALLDIRS@
57 AWK_VAR_OPTION = @AWK_VAR_OPTION@
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 _
63 XCPPFLAGS = @CPPFLAGS@ @MCCPPFLAGS@ -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(libdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC) -DLOCALEDIR=\""$(localedir)/"\" -DCONFDIR=\""$(confdir)/"\"
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
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)
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
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
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
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
106 if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
107 $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi