3 BASECFLAGS
=@BASECFLAGS@
5 CFLAGS
=$(BASECFLAGS
) $(OPT
)
9 UNIVERSALSDK
=@UNIVERSALSDK@
12 RUNSHARED
= @RUNSHARED@
13 BUILDEXE
= @BUILDEXEEXT@
14 BUILDPYTHON
= $(builddir
)/python
$(BUILDEXE
)
16 # Deployment target selected during configure, to be checked
18 MACOSX_DEPLOYMENT_TARGET
=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
19 @EXPORT_MACOSX_DEPLOYMENT_TARGET@
export MACOSX_DEPLOYMENT_TARGET
21 BUNDLEBULDER
=$(srcdir)/..
/..
/Lib
/plat-mac
/bundlebuilder.py
23 PYTHONAPPSDIR
=/Applications
/MacPython
$(VERSION
)
24 OBJECTS
=FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o doscript.o main.o
26 all: Python\ Launcher.app
28 install: Python\ Launcher.app
29 test -d
"$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir
-p
"$(DESTDIR)$(PYTHONAPPSDIR)"
30 -test -d
"$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r
"$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
31 cp
-r
"Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
32 touch
"$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
35 rm -f
*.o
"Python Launcher"
36 rm -rf
"Python Launcher.app"
38 Python\ Launcher.app
: Info.plist \
39 Python\ Launcher
$(srcdir)/..
/Icons
/PythonLauncher.icns \
40 $(srcdir)/..
/Icons
/PythonSource.icns \
41 $(srcdir)/..
/Icons
/PythonCompiled.icns \
42 $(srcdir)/factorySettings.plist
43 rm -fr
"Python Launcher.app"
44 $(RUNSHARED
) $(BUILDPYTHON
) $(BUNDLEBULDER
) \
46 --name
="Python Launcher" \
47 --executable
="Python Launcher" \
48 --iconfile
=$(srcdir)/..
/Icons
/PythonLauncher.icns \
49 --bundle-id
=org.python.PythonLauncher \
50 --resource
=$(srcdir)/..
/Icons
/PythonSource.icns \
51 --resource
=$(srcdir)/..
/Icons
/PythonCompiled.icns \
52 --resource
=$(srcdir)/English.lproj \
53 --resource
=$(srcdir)/factorySettings.plist \
56 find
"Python Launcher.app" -name
'.svn' -print0 | xargs
-0 rm -r
59 FileSettings.o
: $(srcdir)/FileSettings.m
60 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/FileSettings.m
62 MyAppDelegate.o
: $(srcdir)/MyAppDelegate.m
63 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/MyAppDelegate.m
65 MyDocument.o
: $(srcdir)/MyDocument.m
66 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/MyDocument.m
68 PreferencesWindowController.o
: $(srcdir)/PreferencesWindowController.m
69 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/PreferencesWindowController.m
71 doscript.o
: $(srcdir)/doscript.m
72 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/doscript.m
74 main.o
: $(srcdir)/main.m
75 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/main.m
77 Python\ Launcher
: $(OBJECTS
)
78 $(CC
) $(LDFLAGS
) -o
"Python Launcher" $(OBJECTS
) -framework AppKit
-framework Carbon
80 Info.plist
: $(srcdir)/Info.plist.in
81 sed
's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in
> Info.plist