Makefile now builds a Factor.app

release
slava 2006-03-15 02:08:15 +00:00
parent 5acab55176
commit 9dab9866d8
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>Factor</string>
<key>CFBundleIdentifier</key>
<string>org.factorcode.Factor</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Factor</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
</dict>
</plist>

View File

View File

@ -1,6 +1,9 @@
CC = gcc
CP = cp
BINARY = f
BUNDLE = Factor.app
BUNDLE_BINARY = $(BUNDLE)/Contents/MacOS/Factor
ifdef DEBUG
DEFAULT_CFLAGS = -g
@ -89,6 +92,7 @@ macosx:
CFLAGS="$(DEFAULT_CFLAGS)" \
LIBS="$(DEFAULT_LIBS) -framework Cocoa -framework OpenGL" \
MACOSX=y
$(CP) $(BINARY) $(BUNDLE_BINARY)
linux linux-x86 linux-amd64:
$(MAKE) $(BINARY) \