634 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
634 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
635 $(if $(VERBOSE),@echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)';,@echo 'Compiling and Linking $@';) \ |
635 $(if $(VERBOSE),@echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)';,@echo 'Compiling and Linking $@';) \ |
636 $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) |
636 $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) |
637 |
637 |
638 $(OSX): |
638 $(OSX): |
639 @rm -fr $(OSXAPP) |
639 @rm -fr "$(OSXAPP)" |
640 @mkdir -p $(OSXAPP)/Contents/MacOS |
640 @mkdir -p "$(OSXAPP)"/Contents/MacOS |
641 @mkdir -p $(OSXAPP)/Contents/Resources |
641 @mkdir -p "$(OSXAPP)"/Contents/Resources |
642 @mkdir -p $(OSXAPP)/Contents/Data |
642 @mkdir -p "$(OSXAPP)"/Contents/Data |
643 @mkdir -p $(OSXAPP)/Contents/Lang |
643 @mkdir -p "$(OSXAPP)"/Contents/Lang |
644 @echo "APPL????" > $(OSXAPP)/Contents/PkgInfo |
644 @echo "APPL????" > "$(OSXAPP)"/Contents/PkgInfo |
645 @cp os/macos/ttd.icns $(OSXAPP)/Contents/Resources/openttd.icns |
645 @cp os/macos/ttd.icns "$(OSXAPP)"/Contents/Resources/openttd.icns |
646 @os/macos/plistgen.sh $(OSXAPP) $(REV) |
646 @os/macos/plistgen.sh "$(OSXAPP)" "$(REV)" |
647 @cp os/macos/track_starter $(OSXAPP)/contents/macos |
647 @cp os/macos/track_starter "$(OSXAPP)"/contents/macos |
648 @ls os/macos | grep -q "\.class" || \ |
648 @ls os/macos | grep -q "\.class" || \ |
649 javac os/macos/OpenTTDMidi.java |
649 javac os/macos/OpenTTDMidi.java |
650 @cp os/macos/OpenTTDMidi.class $(OSXAPP)/contents/macos |
650 @cp os/macos/OpenTTDMidi.class "$(OSXAPP)"/contents/macos |
651 @cp data/* $(OSXAPP)/Contents/data/ |
651 @cp data/* "$(OSXAPP)"/Contents/data/ |
652 @cp lang/*.lng $(OSXAPP)/Contents/lang/ |
652 @cp lang/*.lng "$(OSXAPP)"/Contents/lang/ |
653 @cp $(TTD) $(OSXAPP)/Contents/MacOS/$(TTD) |
653 @cp $(TTD) "$(OSXAPP)"/Contents/MacOS/$(TTD) |
654 |
654 |
655 $(endwarnings): $(64_bit_warnings) |
655 $(endwarnings): $(64_bit_warnings) |
656 |
656 |
657 $(64_bit_warnings): |
657 $(64_bit_warnings): |
658 $(warning 64 bit CPUs will get some 64 bit specific bugs!) |
658 $(warning 64 bit CPUs will get some 64 bit specific bugs!) |
711 @# setting the revision number in a place, there the binary can read it |
711 @# setting the revision number in a place, there the binary can read it |
712 @echo 'const char _openttd_revision[] = "'$(REV)'";' >>rev.c.new |
712 @echo 'const char _openttd_revision[] = "'$(REV)'";' >>rev.c.new |
713 @echo 'const int _revision_number = $(REV_NUMBER);' >>rev.c.new |
713 @echo 'const int _revision_number = $(REV_NUMBER);' >>rev.c.new |
714 @# some additions for MorphOS versions tag |
714 @# some additions for MorphOS versions tag |
715 @echo '#ifdef __MORPHOS__' >>rev.c.new |
715 @echo '#ifdef __MORPHOS__' >>rev.c.new |
716 @echo 'const char morphos_versions_tag[] = "\\0$$VER: OpenTTD '$(REV)' ('${BUILDDATE}') © OpenTTD Team [MorphOS, PowerPC]";' >>rev.c.new |
716 @echo 'const char morphos_versions_tag[] = "\\0$$VER: OpenTTD "'$(REV)'" ('${BUILDDATE}') © OpenTTD Team [MorphOS, PowerPC]";' >>rev.c.new |
717 @echo '#endif' >>rev.c.new |
717 @echo '#endif' >>rev.c.new |
718 @# Only update the real rev.c if it actually changed, to prevent |
718 @# Only update the real rev.c if it actually changed, to prevent |
719 @# useless rebuilds. |
719 @# useless rebuilds. |
720 @cmp -s rev.c rev.c.new 2>/dev/null || mv rev.c.new rev.c |
720 @cmp -s rev.c rev.c.new 2>/dev/null || mv rev.c.new rev.c |
721 @rm -f rev.c.new |
721 @rm -f rev.c.new |