87 # share/games/openttd. (Will be prefixed with $PREFIX) |
87 # share/games/openttd. (Will be prefixed with $PREFIX) |
88 # PERSONAL_DIR: The directory where openttd.cfg and the save folder will be |
88 # PERSONAL_DIR: The directory where openttd.cfg and the save folder will be |
89 # stored. You cannot use ~ here, define USE_HOMEDIR for that. |
89 # stored. You cannot use ~ here, define USE_HOMEDIR for that. |
90 # USE_HOMEDIR: If this variable is set, PERSONAL_DIR will be prefixed with |
90 # USE_HOMEDIR: If this variable is set, PERSONAL_DIR will be prefixed with |
91 # ~/ at runtime (the user's homedir) |
91 # ~/ at runtime (the user's homedir) |
|
92 # SECOND_DATA_PATH Use this data dir if a file is not found in the data dir in the data path |
|
93 # CUSTOM_LANG_PATH If this is set, it will use the path given to search for lng files |
|
94 # instead of the lang dir in the data path |
|
95 # NOTE: both SECOND_DATA_PATH and CUSTOM_LANG_PATH uses paths relative to where OTTD is opened |
92 # |
96 # |
93 # DEST_DIR: make install will use this directory instead of the filesystem |
97 # DEST_DIR: make install will use this directory instead of the filesystem |
94 # root to install its files. This should normally not be used by |
98 # root to install its files. This should normally not be used by |
95 # ordinary users, currently it is only used for the debian |
99 # ordinary users, currently it is only used for the debian |
96 # packaging. This value should only be set when calling `make |
100 # packaging. This value should only be set when calling `make |
465 # now we test if disabling it as a general breaks it for anybody |
475 # now we test if disabling it as a general breaks it for anybody |
466 #LIBS += -lresolv |
476 #LIBS += -lresolv |
467 endif |
477 endif |
468 endif |
478 endif |
469 endif |
479 endif |
|
480 endif |
|
481 |
|
482 |
|
483 ifdef SECOND_DATA_PATH |
|
484 CDEFS += -DSECOND_DATA_DIR=\"$(SECOND_DATA_PATH)/\" |
|
485 endif |
|
486 |
|
487 ifdef CUSTOM_LANG_DIR |
|
488 CDEFS += -DCUSTOM_LANG_DIR=\"$(CUSTOM_LANG_DIR)/\" |
470 endif |
489 endif |
471 |
490 |
472 ifdef WITH_DIRECTMUSIC |
491 ifdef WITH_DIRECTMUSIC |
473 CDEFS += -DWIN32_ENABLE_DIRECTMUSIC_SUPPORT |
492 CDEFS += -DWIN32_ENABLE_DIRECTMUSIC_SUPPORT |
474 endif |
493 endif |
602 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
621 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
603 $(if $(VERBOSE),@echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)';,@echo 'Compiling and Linking $@';) \ |
622 $(if $(VERBOSE),@echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)';,@echo 'Compiling and Linking $@';) \ |
604 $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) |
623 $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) |
605 |
624 |
606 $(OSX): |
625 $(OSX): |
|
626 @rm -fr $(OSXAPP) |
607 @mkdir -p $(OSXAPP)/Contents/MacOS |
627 @mkdir -p $(OSXAPP)/Contents/MacOS |
608 @mkdir -p $(OSXAPP)/Contents/Resources |
628 @mkdir -p $(OSXAPP)/Contents/Resources |
|
629 @mkdir -p $(OSXAPP)/Contents/Data |
|
630 @mkdir -p $(OSXAPP)/Contents/Lang |
609 @echo "APPL????" > $(OSXAPP)/Contents/PkgInfo |
631 @echo "APPL????" > $(OSXAPP)/Contents/PkgInfo |
610 @cp os/macos/ttd.icns $(OSXAPP)/Contents/Resources/openttd.icns |
632 @cp os/macos/ttd.icns $(OSXAPP)/Contents/Resources/openttd.icns |
611 @os/macos/plistgen.sh $(OSXAPP) $(REV) |
633 @os/macos/plistgen.sh $(OSXAPP) $(REV) |
612 @cp os/macos/track_starter $(OSXAPP)/contents/macos |
634 @cp os/macos/track_starter $(OSXAPP)/contents/macos |
613 @ls os/macos | grep -q "\.class" || \ |
635 @ls os/macos | grep -q "\.class" || \ |
614 javac os/macos/OpenTTDMidi.java |
636 javac os/macos/OpenTTDMidi.java |
615 @cp os/macos/OpenTTDMidi.class $(OSXAPP)/contents/macos |
637 @cp os/macos/OpenTTDMidi.class $(OSXAPP)/contents/macos |
|
638 @cp data/* $(OSXAPP)/Contents/data/ |
|
639 @cp lang/*.lng $(OSXAPP)/Contents/lang/ |
616 @cp $(TTD) $(OSXAPP)/Contents/MacOS/$(TTD) |
640 @cp $(TTD) $(OSXAPP)/Contents/MacOS/$(TTD) |
|
641 |
|
642 |
617 |
643 |
618 $(endwarnings): $(64_bit_warnings) |
644 $(endwarnings): $(64_bit_warnings) |
619 |
645 |
620 $(64_bit_warnings): |
646 $(64_bit_warnings): |
621 $(warning 64 bit CPUs will get some 64 bit specific bugs!) |
647 $(warning 64 bit CPUs will get some 64 bit specific bugs!) |