]> granicus.if.org Git - python/commitdiff
Rudimentary makefile for building the executable to go into a
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 5 Sep 2001 22:09:50 +0000 (22:09 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 5 Sep 2001 22:09:50 +0000 (22:09 +0000)
fullblown OSX application. It is starting to work, but building
the application bundle is still handwork, and we need a minimal
readme file too.

Mac/OSX/Makefile [new file with mode: 0644]

diff --git a/Mac/OSX/Makefile b/Mac/OSX/Makefile
new file mode 100644 (file)
index 0000000..6e3ca14
--- /dev/null
@@ -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