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
29 icondir = $(datadir)/pixmaps/mc
30 localedir = $(datadir)/locale
32 man1dir = $(mandir)/man1
34 man8dir = $(mandir)/man8
36 xv_bindir = @xv_bindir@
37 top_srcdir = $(rootdir)
39 # Tools & program stuff
40 MKINSTALLDIRS = @MKINSTALLDIRS@
55 AWK_VAR_OPTION = @AWK_VAR_OPTION@
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 _
61 XCPPFLAGS = @CPPFLAGS@ @MCCPPFLAGS@ -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(libdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC) -DLOCALEDIR=\""$(localedir)/"\"
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
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)
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
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
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
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
104 if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
105 $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi