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 = $(prefix)
18 builddir = /cygdrive/c/user/src/local/mc-4.1.36-mingw
19 bindir = $(exec_prefix)/bin
20 libdir = $(exec_prefix)/lib/mc
21 suppbindir = $(libdir)/bin
22 tidir = $(libdir)/term
23 extfsdir = $(libdir)/extfs
24 icondir = $(prefix)/share/icons/mc
25 mandir = $(prefix)/man/man1
26 datadir = $(prefix)/share
27 localedir = $(datadir)/locale
29 man8dir = $(prefix)/man/man8
33 # Tools & program stuff
34 SEDCMD = sed 's/-man/-mandoc/'
35 SEDCMD2 = sed 's%@prefix@%$(prefix)%'
51 # No way, to make make happy (except GNU), we cannot use := to append
52 # something to these, so that's why there is a leading _
54 XCPPFLAGS = -I.. -I$(vfsdir) -I$(rootdir) -I$(slangdir) -I.. -DBINDIR=\""$(bindir)/"\" -DLIBDIR=\""$(libdir)/"\" -DICONDIR=\""$(icondir)/"\" $(XINC) -DLOCALEDIR=\""$(localedir)/"\"
56 XDEFS = -DHAVE_CONFIG_H
57 XLIBS = -lintl -lcrypt
59 # Where do we have the sources?
60 # You shouldn't have to edit this :)
61 mcsrcdir = $(rootdir)/src
62 docdir = $(rootdir)/doc
63 mclibdir = $(rootdir)/lib
64 slangdir = $(rootdir)/slang
65 vfsdir = $(rootdir)/vfs
68 gnomedir = $(rootdir)/gnome
69 icodir = $(rootdir)/icons
71 hpath = -I$(mcsrcdir) -I$(slangdir) -I$(vfsdir) -I$(xvdir) -I$(xvdir)/support/xview_private -I$(tkdir)
76 .PHONY: all check cross TAGS clean install uninstall distcopy depend dep
77 .PHONY: fastdep fastdepslang fastdepvfs fastdeploc slowdep
79 ../slang/%.o : ../slang/%.c
80 cd ../slang; $(MAKE) libmcslang.a
82 ../vfs/%.o : ../vfs/%.c
83 cd ../vfs; $(MAKE) libvfs.a
86 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
91 { { { 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
94 { { { 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
97 if test x"`echo $(srcdir)/*.[ch]`" != x'$(srcdir)/*.[ch]'; then \
98 $(CPP) -M $(CPPFLAGS) $(DEFS) $(CFLAGS) $(srcdir)/*.c > .depend; fi