Mercurial > cpython-lru_cache-weakref
annotate Mac/PythonLauncher/Makefile.in @ 39042:c02fa187e0f4 legacy-trunk
Part of SF patch #1484695. This removes dead code. The chksum was
already verified in .frombuf() on the lines above. If there was
a problem an exception is raised, so there was no way this condition
could have been true.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Mon, 10 Jul 2006 00:23:17 +0000 |
| parents | 872e991f9b70 |
| children | 20b707866459 |
| rev | line source |
|---|---|
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
1 CC=@CC@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
2 LD=@CC@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
3 BASECFLAGS=@BASECFLAGS@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
4 OPT=@OPT@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
5 CFLAGS=$(BASECFLAGS) $(OPT) |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
6 LDFLAGS=@LDFLAGS@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
7 srcdir= @srcdir@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
8 VERSION= @VERSION@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
9 UNIVERSALSDK=@UNIVERSALSDK@ |
|
38644
1cb2ece4b9e1
Move Mac/OSX/PythonLauncher one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
10 builddir= ../.. |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
11 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
12 RUNSHARED= @RUNSHARED@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
13 BUILDEXE= @BUILDEXEEXT@ |
|
38644
1cb2ece4b9e1
Move Mac/OSX/PythonLauncher one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
14 BUILDPYTHON= $(builddir)/python$(BUILDEXE) |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
15 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
16 # Deployment target selected during configure, to be checked |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
17 # by distutils |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
18 MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
19 @EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
20 |
|
38644
1cb2ece4b9e1
Move Mac/OSX/PythonLauncher one level up
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38215
diff
changeset
|
21 BUNDLEBULDER=$(srcdir)/../../Lib/plat-mac/bundlebuilder.py |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
22 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
23 PYTHONAPPSDIR=/Applications/MacPython $(VERSION) |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
24 OBJECTS=FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o doscript.o main.o |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
25 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
26 all: Python\ Launcher.app |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
27 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
28 install: Python\ Launcher.app |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
29 test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
30 -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
31 cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)" |
|
38215
c64cd271acea
Fix some minor issues with the generated application bundles on MacOSX
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38176
diff
changeset
|
32 touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
33 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
34 clean: |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
35 rm -f *.o "Python Launcher" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
36 rm -rf "Python Launcher.app" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
37 |
|
38648
872e991f9b70
- Patch the correct version of python in the Info.plists at build time, instead
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38644
diff
changeset
|
38 Python\ Launcher.app: Info.plist \ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
39 Python\ Launcher $(srcdir)/../Icons/PythonLauncher.icns \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
40 $(srcdir)/../Icons/PythonSource.icns \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
41 $(srcdir)/../Icons/PythonCompiled.icns \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
42 $(srcdir)/factorySettings.plist |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
43 rm -fr "Python Launcher.app" |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
44 $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
45 --builddir=. \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
46 --name="Python Launcher" \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
47 --executable="Python Launcher" \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
48 --iconfile=$(srcdir)/../Icons/PythonLauncher.icns \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
49 --bundle-id=org.python.PythonLauncher \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
50 --resource=$(srcdir)/../Icons/PythonSource.icns \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
51 --resource=$(srcdir)/../Icons/PythonCompiled.icns \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
52 --resource=$(srcdir)/English.lproj \ |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
53 --resource=$(srcdir)/factorySettings.plist \ |
|
38648
872e991f9b70
- Patch the correct version of python in the Info.plists at build time, instead
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38644
diff
changeset
|
54 --plist Info.plist \ |
|
38176
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
55 build |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
56 find "Python Launcher.app" -name '.svn' -print0 | xargs -0 rm -r |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
57 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
58 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
59 FileSettings.o: $(srcdir)/FileSettings.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
60 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/FileSettings.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
61 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
62 MyAppDelegate.o: $(srcdir)/MyAppDelegate.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
63 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyAppDelegate.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
64 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
65 MyDocument.o: $(srcdir)/MyDocument.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
66 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyDocument.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
67 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
68 PreferencesWindowController.o: $(srcdir)/PreferencesWindowController.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
69 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/PreferencesWindowController.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
70 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
71 doscript.o: $(srcdir)/doscript.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
72 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/doscript.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
73 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
74 main.o: $(srcdir)/main.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
75 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/main.m |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
76 |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
77 Python\ Launcher: $(OBJECTS) |
|
cdf8f5334426
Rework the build system for osx applications:
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
78 $(CC) $(LDFLAGS) -o "Python Launcher" $(OBJECTS) -framework AppKit -framework Carbon |
|
38648
872e991f9b70
- Patch the correct version of python in the Info.plists at build time, instead
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38644
diff
changeset
|
79 |
|
872e991f9b70
- Patch the correct version of python in the Info.plists at build time, instead
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38644
diff
changeset
|
80 Info.plist: $(srcdir)/Info.plist.in |
|
872e991f9b70
- Patch the correct version of python in the Info.plists at build time, instead
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38644
diff
changeset
|
81 sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist |
