21 lines
1.3 KiB
Makefile
21 lines
1.3 KiB
Makefile
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
|
|
|
|
all: rc edit
|
|
|
|
rc: rc.c shared.c rc.h shared.h globals.h defs.h
|
|
gcc -Wall -DOPENGL -DREV=\"`git rev-parse HEAD`\" -o rc -g rc.c shared.c `sdl-config --cflags --libs` -lsqlite3 -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lSDL_Mixer -framework OpenGL
|
|
|
|
edit: edit.c shared.c edit.h shared.h globals.h defs.h
|
|
gcc -DOPENGL -DREV=\"`git rev-parse HEAD`\" -D__EDITOR -Wall -o edit -g edit.c shared.c `sdl-config --cflags --libs` -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -framework OpenGL
|
|
|
|
app: rc
|
|
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
|
|
# create staging area without svn files
|
|
rsync -rC data/ staging/data
|
|
platypus -a rc -o None -R -u "Rob Pearce" -f staging/data -f rc scripts/run.sh RatCatcher.app
|
|
#seticon -d icon.icns RatCatcher.app
|
|
dylibbundler -od -b -x ./RatCatcher.app/Contents/Resources/rc -d ./RatCatcher.app/Contents/libs/ -p @executable_path/../libs/
|
|
zip -r RatCatcher.zip RatCatcher.app
|
|
|