Makefile now builds a Factor.app
parent
5acab55176
commit
9dab9866d8
|
@ -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>
|
4
Makefile
4
Makefile
|
@ -1,6 +1,9 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
CP = cp
|
||||||
|
|
||||||
BINARY = f
|
BINARY = f
|
||||||
|
BUNDLE = Factor.app
|
||||||
|
BUNDLE_BINARY = $(BUNDLE)/Contents/MacOS/Factor
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
DEFAULT_CFLAGS = -g
|
DEFAULT_CFLAGS = -g
|
||||||
|
@ -89,6 +92,7 @@ macosx:
|
||||||
CFLAGS="$(DEFAULT_CFLAGS)" \
|
CFLAGS="$(DEFAULT_CFLAGS)" \
|
||||||
LIBS="$(DEFAULT_LIBS) -framework Cocoa -framework OpenGL" \
|
LIBS="$(DEFAULT_LIBS) -framework Cocoa -framework OpenGL" \
|
||||||
MACOSX=y
|
MACOSX=y
|
||||||
|
$(CP) $(BINARY) $(BUNDLE_BINARY)
|
||||||
|
|
||||||
linux linux-x86 linux-amd64:
|
linux linux-x86 linux-amd64:
|
||||||
$(MAKE) $(BINARY) \
|
$(MAKE) $(BINARY) \
|
||||||
|
|
Loading…
Reference in New Issue