2008-10-10 07:51:09 +11:00
|
|
|
LIBS = libs/libSDL-1.2.0.dylib libs/libSDL_image-1.2.0.dylib libs/libSDL_mixer-1.2.0.dylib libs/libSDL_ttf-2.0.0.dylib libs/libjpeg.62.dylib libs/libpng.3.dylib libs/libvorbisfile.3.dylib libs/libogg.0.dylib libs/libsmpeg-0.4.0.dylib libs/libmikmod.2.dylib libs/libvorbis.0.dylib libs/libSDL_gfx.dylib
|
|
|
|
|
2008-09-17 12:34:39 +10:00
|
|
|
all: rc edit
|
2008-09-16 12:39:33 +10:00
|
|
|
|
2008-09-17 12:34:39 +10:00
|
|
|
rc: rc.c shared.c rc.h shared.h globals.h defs.h
|
2008-10-15 06:36:51 +11:00
|
|
|
gcc -Wall -o rc -g rc.c shared.c -L/Users/rob/c/rc/libs `sdl-config --cflags --libs` -I/usr/local/include -L/usr/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lSDL_Mixer
|
2008-09-17 12:34:39 +10:00
|
|
|
|
|
|
|
edit: edit.c shared.c edit.h shared.h globals.h defs.h
|
2008-09-26 19:51:17 +10:00
|
|
|
gcc -D__EDITOR -Wall -o edit -g edit.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/usr/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf
|
2008-09-16 12:39:33 +10:00
|
|
|
|
2008-10-10 10:12:51 +11:00
|
|
|
app: rc
|
2008-10-10 07:51:09 +11:00
|
|
|
if [ `uname -s` != "Darwin" ]; then echo "Mac .app bundle generation is only available under OSX."; exit 1; fi;
|
|
|
|
if [ -d RatCatcher.app ]; then rm -fr RatCatcher.app ; fi
|
2008-10-10 20:20:09 +11:00
|
|
|
# create staging area without svn files
|
|
|
|
rsync -rC data/ staging/data
|
2008-10-13 11:43:01 +11:00
|
|
|
platypus -a rc -t shell -o TextWindow -R -u "Rob Pearce" -f staging/data -f rc scripts/run.sh RatCatcher.app
|
2008-10-10 10:12:51 +11:00
|
|
|
seticon -d icon.icns RatCatcher.app
|
|
|
|
dylibbundler -od -b -x ./RatCatcher.app/Contents/Resources/rc -d ./RatCatcher.app/Contents/libs/ -p @executable_path/../libs/
|
2008-10-10 20:20:09 +11:00
|
|
|
zip -r RatCatcher.zip RatCatcher.app
|
2008-10-10 10:12:51 +11:00
|
|
|
|