|
|
1.1 root 1: # Top directory Makefile for Hatari.
1.1.1.4 root 2: #
3: # You can set DESTDIR as temporary installation prefix
4: # e.g. when creating RPM packages.
1.1 root 5:
6: # Include settings
1.1.1.4 root 7: -include Makefile.cnf
1.1 root 8:
9:
1.1.1.4 root 10: all: Makefile.cnf config.h
1.1 root 11: $(MAKE) -C src/
1.1.1.5 root 12: $(MAKE) -C tools/hmsa/
1.1 root 13:
1.1.1.4 root 14: # Makefile.cnf doesn't exist or is older than Makefile.default.cnf?
15: Makefile.cnf: Makefile-default.cnf
16: @echo "Trying to use the default Makefile configuration..."
17: @if [ -f Makefile.cnf ]; then \
1.1.1.7 root 18: echo "ERROR: Makefile.cnf exists already, but is older than the default"; \
19: echo "(just remove it if you haven't changed it)."; \
1.1.1.4 root 20: exit 1; \
1.1.1.8 ! root 21: elif [ x$(findstring indows,$(OS)) = x"indows" ]; then \
! 22: cp -v Makefile-MinGW.cnf Makefile.cnf; \
1.1.1.4 root 23: else \
24: cp -v Makefile-default.cnf Makefile.cnf; \
25: fi
26:
27: # config.h doesn't exist or is older than config-default.h?
28: config.h: config-default.h
29: @echo "Trying to use the default config.h configuration..."
30: @if [ -f config.h ]; then \
1.1.1.7 root 31: echo "ERROR: config.h exists already and is older than the default"; \
32: echo "(just remove it if you haven't changed it, or re-run configure)."; \
1.1.1.4 root 33: exit 1; \
34: else \
35: cp -v config-default.h config.h; \
36: fi
37:
38: hatari.1.gz: doc/hatari.1
39: gzip -9 -c doc/hatari.1 > $@
40:
1.1.1.3 root 41:
1.1 root 42: clean:
43: $(MAKE) -C src/ clean
1.1.1.5 root 44: $(MAKE) -C tools/hmsa/ clean
1.1 root 45:
1.1.1.3 root 46: distclean:
47: $(MAKE) -C src/ distclean
1.1.1.5 root 48: $(MAKE) -C tools/hmsa/ distclean
1.1.1.4 root 49: $(RM) config.cache config.log Makefile.cnf config.h
50: $(RM) hatari.1.gz
1.1.1.3 root 51:
52:
1.1 root 53: # Use "make depend" to generate file dependencies:
54: depend:
55: $(MAKE) -C src/ depend
56:
1.1.1.4 root 57: install: all hatari.1.gz
58: @if [ "x$(INSTALL)" = "x" ]; then \
59: echo; \
1.1.1.7 root 60: echo "ERROR: Hatari isn't yet configured for installation."; \
1.1.1.4 root 61: exit 1; \
62: fi
1.1.1.2 root 63: $(INSTALL) -d $(DESTDIR)$(BINDIR)
64: $(INSTALL) -d $(DESTDIR)$(DATADIR)
1.1.1.4 root 65: $(INSTALL) -d $(DESTDIR)$(MANDIR)
66: $(INSTALL) -d $(DESTDIR)$(DOCDIR)
67: $(INSTALL) -d $(DESTDIR)$(DOCDIR)/images
1.1.1.2 root 68: $(INSTALL_PROGRAM) src/hatari $(DESTDIR)$(BINDIR)/hatari
1.1.1.5 root 69: $(INSTALL_PROGRAM) tools/hmsa/hmsa $(DESTDIR)$(BINDIR)/hmsa
1.1.1.6 root 70: $(INSTALL_SCRIPT) tools/zip2st.sh $(DESTDIR)$(BINDIR)/zip2st
1.1.1.4 root 71: $(INSTALL_DATA) src/hatari-icon.bmp $(DESTDIR)$(DATADIR)/hatari-icon.bmp
1.1.1.2 root 72: if test -f src/tos.img -a \! -f $(DESTDIR)$(DATADIR)/tos.img ; then \
73: $(INSTALL_DATA) src/tos.img $(DESTDIR)$(DATADIR)/tos.img ; \
1.1 root 74: fi
1.1.1.4 root 75: $(INSTALL_DATA) hatari.1.gz $(DESTDIR)$(MANDIR)/
76: $(INSTALL_DATA) doc/*.txt doc/*.html $(DESTDIR)$(DOCDIR)/
77: $(INSTALL_DATA) doc/images/*.png $(DESTDIR)$(DOCDIR)/images/
1.1.1.7 root 78: $(MAKE) -C python-ui/ install
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.