Skip to main content
Topic: Makefile and Mac (Read 4710 times) previous topic - next topic

Makefile and Mac

Hello,

I try to make nightly for MAC (look at http://forum.simutrans.com/index.php?topic=2084.0)

But for nightlys I must patch every day the Makefile because .. the MACSound in the nightly use quicktime, but I only can use SDL
so I must patche the Lines:
Code: [Select]
  ifeq ($(OSTYPE),mac)
    # Core Audio (Quicktime) base sound system routines
    SOURCES += sound/core-audio_sound.mm
    SOURCES += music/core-audio_midi.mm
  else

to
Code: [Select]
  ifeq ($(OSTYPE),mac)
    # Core Audio (Quicktime) base sound system routines
    SOURCES += sound/sdl_sound.cc
    SOURCES += music/no_midi.cc
  else

so .. can we us a parameter like "quicktime" ore .. to change the lines?

Werner
I hope you understand my English

Re: Makefile and Mac

Reply #1
Sorry for the pushing, but I got no answer ..

Do you need a patchfile?
I hope you understand my English

Re: Makefile and Mac

Reply #2
Maybe rather an SDL_OnLY switch to cater also for Windows and other applications?

Re: Makefile and Mac

Reply #3
this bit may well be my fault, I think I added that bit, well at least I added the two audio files. should be possible though for someone to sort that bit out with a command parameter, when I compile here (on a mac) I use a seperate batchfile to call the make script (since the single file has 'issues' building for both PPC & Intel, i.e. building two binaries)

suggested solution, split the BACKEND=cocoa option in the config file to two seperate sections

BACKEND=cocoaqt
BACKEND=cocoasdl

or just add an option thus
MACAUDIO=quicktime
MACAUDIO=sdl

?

and the relevent options in the makefile to use these parameters?

 

Re: Makefile and Mac

Reply #4
@prissi:
But I don“t know what you want to change in the Windows-Part of the Makefile

I hope you understand my English