summaryrefslogtreecommitdiffstats
path: root/Mac/OSX/Makefile
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-09-05 22:09:50 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-09-05 22:09:50 (GMT)
commit75ed167527e688ab6160af3b387532ea3e1c6a74 (patch)
tree13e1b243a15143938b930312fa554b0582f118f1 /Mac/OSX/Makefile
parentdff7770b7f19b3cfdcbcbc4dc205f53ef6170c2d (diff)
downloadcpython-75ed167527e688ab6160af3b387532ea3e1c6a74.zip
cpython-75ed167527e688ab6160af3b387532ea3e1c6a74.tar.gz
cpython-75ed167527e688ab6160af3b387532ea3e1c6a74.tar.bz2
Rudimentary makefile for building the executable to go into a
fullblown OSX application. It is starting to work, but building the application bundle is still handwork, and we need a minimal readme file too.
Diffstat (limited to 'Mac/OSX/Makefile')
-rw-r--r--Mac/OSX/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile
new file mode 100644
index 0000000..6e3ca14
--- /dev/null
+++ b/Mac/OSX/Makefile
@@ -0,0 +1,18 @@
+PYTHONBUILDDIR=../..
+
+OPT=-g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic
+INCLUDES=-I$(PYTHONBUILDDIR) -I$(PYTHONBUILDDIR)/Include \
+ -I$(PYTHONBUILDDIR)/Mac/Include
+DEFINES=-DHAVE_CONFIG_H
+
+CFLAGS=$(OPT) $(DEFINES) $(INCLUDES)
+LDFLAGS=-framework System -framework Python -framework Carbon \
+ -framework Foundation
+CC=cc
+LD=cc
+
+OBJECTS=$(PYTHONBUILDDIR)/Mac/Python/macmain.o \
+ $(PYTHONBUILDDIR)/Mac/Python/macgetargv.o
+
+pythonforbundle: $(OBJECTS)
+ $(LD) $(LDFLAGS) $(OBJECTS) -o pythonforbundle \ No newline at end of file