58 |
enigma_LDADD = px/libpx.a -llua -llualib libtolua/libtolua.a |
enigma_LDADD = px/libpx.a -llua -llualib libtolua/libtolua.a |
59 |
endif |
endif |
60 |
|
|
61 |
|
bundle_name = Enigma.app |
62 |
|
# Special target to copy all needed game files to Enigma.app/Contents/Resources. |
63 |
|
# For Mac OS X bundle. |
64 |
|
bundle: |
65 |
|
mkdir -p $(bundle_name)/Contents/MacOS |
66 |
|
mkdir -p $(bundle_name)/Contents/Resources |
67 |
|
echo "APPL????" > $(bundle_name)/Contents/PkgInfo |
68 |
|
cp Info.plist $(bundle_name)/Contents/ |
69 |
|
cp enigma.icns $(bundle_name)/Contents/Resources/ |
70 |
|
cp -R levels $(bundle_name)/Contents/Resources/ |
71 |
|
cp *.lua $(bundle_name)/Contents/Resources/ |
72 |
|
cp -R gfx $(bundle_name)/Contents/Resources/ |
73 |
|
cp -R sound $(bundle_name)/Contents/Resources/ |
74 |
|
mkdir -p $(bundle_name)/Contents/Resources/fonts |
75 |
|
cp -R fonts/*.png $(bundle_name)/Contents/Resources/fonts |
76 |
|
|
77 |
|
# Special target to copy the binary to Enigma.app/Contents/MacOS. |
78 |
|
bundle-static: enigma-static-mosx bundle |
79 |
|
cp enigma-static $(bundle_name)/Contents/MacOS/enigma |
80 |
|
strip $(bundle_name)/Contents/MacOS/enigma |
81 |
|
|
82 |
|
# Special target to copy the binary to Enigma.app/Contents/MacOS. |
83 |
|
bundle-fw: enigma-fw-mosx bundle |
84 |
|
cp enigma-fw $(bundle_name)/Contents/MacOS/enigma |
85 |
|
strip $(bundle_name)/Contents/MacOS/enigma |
86 |
|
|
87 |
|
# Special target to create a static linked binary for Mac OS X |
88 |
|
# FIXME: hardcoded library paths because of braindamaged linker |
89 |
|
enigma-static-mosx: $(enigma_OBJECTS) $(enigma_DEPENDENCIES) |
90 |
|
$(CXX) $(LDFLAGS) -o enigma-static $(enigma_OBJECTS) $(enigma_DEPENDENCIES) /usr/fink/lib/libSDLmain.a /usr/fink/lib/libSDL.a /usr/fink/lib/libSDL_image.a /usr/fink/lib/libSDL_mixer.a /usr/fink/lib/liblua.a /usr/fink/lib/liblualib.a /usr/fink/lib/libsmpeg.a /usr/fink/lib/libpng.a /usr/fink/lib/libjpeg.a /usr/fink/lib/libvorbisfile.a /usr/fink/lib/libvorbis.a /usr/fink/lib/libogg.a -lz -framework IOKit -framework Cocoa -framework OpenGL -framework Carbon -framework QuickTime |
91 |
|
|
92 |
|
# Special target to create a binary linked with Mac OS X frameworks |
93 |
|
enigma-fw-mosx: $(enigma_OBJECTS) $(enigma_DEPENDENCIES) |
94 |
|
$(CXX) $(LDFLAGS) -o enigma-fw $(enigma_OBJECTS) $(enigma_DEPENDENCIES) -lsdlmain -lz -framework SDL -framework SDL_image -framework SDL_mixer -framework IOKit -framework Cocoa -framework OpenGL -framework Carbon -framework QuickTime |
95 |
|
|
96 |
# Rule for creating Lua interfaces from package descriptions with 'tolua' |
# Rule for creating Lua interfaces from package descriptions with 'tolua' |
97 |
%-lua.cc %-lua.hh: %-lua.pkg |
%-lua.cc %-lua.hh: %-lua.pkg |
98 |
$(TOLUA) -H $*-lua.hh -n $* -o $@ $< |
$(TOLUA) -H $*-lua.hh -n $* -o $@ $< |