Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75ed167

Browse files
committed
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.
1 parent dff7770 commit 75ed167

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Mac/OSX/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
PYTHONBUILDDIR=../..
2+
3+
OPT=-g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic
4+
INCLUDES=-I$(PYTHONBUILDDIR) -I$(PYTHONBUILDDIR)/Include \
5+
-I$(PYTHONBUILDDIR)/Mac/Include
6+
DEFINES=-DHAVE_CONFIG_H
7+
8+
CFLAGS=$(OPT) $(DEFINES) $(INCLUDES)
9+
LDFLAGS=-framework System -framework Python -framework Carbon \
10+
-framework Foundation
11+
CC=cc
12+
LD=cc
13+
14+
OBJECTS=$(PYTHONBUILDDIR)/Mac/Python/macmain.o \
15+
$(PYTHONBUILDDIR)/Mac/Python/macgetargv.o
16+
17+
pythonforbundle: $(OBJECTS)
18+
$(LD) $(LDFLAGS) $(OBJECTS) -o pythonforbundle

0 commit comments

Comments
 (0)