3 BASECFLAGS
=@BASECFLAGS@
5 CFLAGS
=$(BASECFLAGS
) $(OPT
)
9 UNIVERSALSDK
=@UNIVERSALSDK@
12 RUNSHARED
= @RUNSHARED@
13 BUILDEXE
= @BUILDEXEEXT@
14 BUILDPYTHON
= $(builddir
)/python
$(BUILDEXE
)
15 PYTHONFRAMEWORK
=@PYTHONFRAMEWORK@
17 # Deployment target selected during configure, to be checked
19 MACOSX_DEPLOYMENT_TARGET
=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
20 @EXPORT_MACOSX_DEPLOYMENT_TARGET@
export MACOSX_DEPLOYMENT_TARGET
22 BUNDLEBULDER
=$(srcdir)/..
/..
/Lib
/plat-mac
/bundlebuilder.py
24 PYTHONAPPSDIR
=/Applications
/$(PYTHONFRAMEWORK
) $(VERSION
)
25 OBJECTS
=FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o doscript.o main.o
27 all: Python\ Launcher.app
29 install: Python\ Launcher.app
30 test -d
"$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir
-p
"$(DESTDIR)$(PYTHONAPPSDIR)"
31 -test -d
"$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r
"$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
32 cp
-r
"Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
33 touch
"$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
36 rm -f
*.o
"Python Launcher"
37 rm -rf
"Python Launcher.app"
39 Python\ Launcher.app
: Info.plist \
40 Python\ Launcher
$(srcdir)/..
/Icons
/PythonLauncher.icns \
41 $(srcdir)/..
/Icons
/PythonSource.icns \
42 $(srcdir)/..
/Icons
/PythonCompiled.icns \
43 $(srcdir)/factorySettings.plist
44 rm -fr
"Python Launcher.app"
45 $(RUNSHARED
) $(BUILDPYTHON
) $(BUNDLEBULDER
) \
47 --name
="Python Launcher" \
48 --executable
="Python Launcher" \
49 --iconfile
=$(srcdir)/..
/Icons
/PythonLauncher.icns \
50 --bundle-id
=org.python.PythonLauncher \
51 --resource
=$(srcdir)/..
/Icons
/PythonSource.icns \
52 --resource
=$(srcdir)/..
/Icons
/PythonCompiled.icns \
53 --resource
=$(srcdir)/English.lproj \
54 --resource
=$(srcdir)/factorySettings.plist \
57 find
"Python Launcher.app" -name
'.svn' -print0 | xargs
-0 rm -r
60 FileSettings.o
: $(srcdir)/FileSettings.m
61 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/FileSettings.m
63 MyAppDelegate.o
: $(srcdir)/MyAppDelegate.m
64 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/MyAppDelegate.m
66 MyDocument.o
: $(srcdir)/MyDocument.m
67 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/MyDocument.m
69 PreferencesWindowController.o
: $(srcdir)/PreferencesWindowController.m
70 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/PreferencesWindowController.m
72 doscript.o
: $(srcdir)/doscript.m
73 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/doscript.m
75 main.o
: $(srcdir)/main.m
76 $(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/main.m
78 Python\ Launcher
: $(OBJECTS
)
79 $(CC
) $(LDFLAGS
) -o
"Python Launcher" $(OBJECTS
) -framework AppKit
-framework Carbon
81 Info.plist
: $(srcdir)/Info.plist.in
82 sed
's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in
> Info.plist