Thread: Help a newbie
View Single Post
Old December 31, 2009, 21:18   #4
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,698
Donated: $40
Pete Mack is on a distinguished road
Compile with
$ make -f Makefile.osx OPT=-g
$ cd ..
$ gdb Hellband.app
OR
$gdb Hellband.app/Contents/MacOS/hellband
(This is approximate--actual path should be obvious.)

You don't want the executable to be named Hellband, you want the package to be named Hellband.app

Set the NAME macro in Makefile.osx to
NAME = Hellband
rather than
NAME = Angband
Note that the variable definitions in Makefile.osx are all important -- they are used to replace the appropriate values in the plist file.

EDIT:
If you don't like command-line arguments to make, or editing Makefile.osx, you can create override values in
src/config

I don't recommend this for debug flags and the like, because it's easy to forget when you want to make a distribution.

Last edited by Pete Mack; December 31, 2009 at 21:31.
Pete Mack is online now   Reply With Quote