summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-04-14 13:46:40 +0000
committerbjarni <bjarni@openttd.org>2005-04-14 13:46:40 +0000
commitdadec920a0b1b5071065c46302a4e49396e217e9 (patch)
tree3a23e8d93ff629fb78ecf531e4c6349220a376d0 /Makefile
parent6ff14a99cb2b17da1d2453bbfbdd6ba8ce21f98d (diff)
downloadopenttd-dadec920a0b1b5071065c46302a4e49396e217e9.tar.xz
(svn r2197) -fix [Makefile]: SDL_CONFIG from makefile.config is now not always overwritten
-fix [OSX]: fixed issue where OSX could not compile the java MIDI app if SHOW_WARNINGS was on (introduced in r1917) -fix [OSX]: the midi class file is now also deleted with make clear
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index d29dbd8be..1beb39b96 100644
--- a/Makefile
+++ b/Makefile
@@ -160,13 +160,11 @@ ifneq ($(MAKEFILE_VERSION),$(CONFIG_VERSION))
SDL-CONFIG:=sdl-config
endif
endif
-else
- # this should define SDL-CONFIG for manual configuration
- ifeq ($(shell uname),FreeBSD)
- SDL-CONFIG:=sdl11-config
- else
- SDL-CONFIG:=sdl-config
- endif
+endif
+
+ifndef SDL-CONFIG
+ UPDATECONFIG:=upgradeconf
+ CONFIG_INCLUDED:=
endif
# this is used if there aren't any Makefile.config
@@ -776,6 +774,7 @@ quiet_cmd_cxx_compile = '===> Compiling $<'
ifdef OSX
OSX:=OSX
+OSX_MIDI_PLAYER_FILE:=os/macos/OpenTTDMidi.class
endif
@@ -803,7 +802,7 @@ $(OSX): $(TTD)
$(Q)os/macos/plistgen.sh "$(OSXAPP)" "$(REV)"
$(Q)cp os/macos/track_starter "$(OSXAPP)"/contents/macos
$(Q)ls os/macos | grep -q "\.class" || \
- $(Q) javac os/macos/OpenTTDMidi.java
+ javac os/macos/OpenTTDMidi.java
$(Q)cp os/macos/OpenTTDMidi.class "$(OSXAPP)"/contents/macos
$(Q)cp data/* "$(OSXAPP)"/Contents/data/
$(Q)cp lang/*.lng "$(OSXAPP)"/Contents/lang/
@@ -920,7 +919,7 @@ FORCE:
clean:
@echo '===> Cleaning up'
- $(Q)rm -rf .deps *~ $(TTD) $(STRGEN) core table/strings.h $(LANGS) $(OBJS) endian.h $(ENDIAN_CHECK)
+ $(Q)rm -rf .deps *~ $(TTD) $(STRGEN) core table/strings.h $(LANGS) $(OBJS) $(OSX_MIDI_PLAYER_FILE) endian.h $(ENDIAN_CHECK)
mrproper: clean
$(Q)rm -rf $(MAKE_CONFIG)