1CC=@CC@ 2LD=@CC@ 3BASECFLAGS=@BASECFLAGS@ 4OPT=@OPT@ 5CFLAGS=@CFLAGS@ $(BASECFLAGS) $(OPT) 6LDFLAGS=@LDFLAGS@ 7srcdir= @srcdir@ 8VERSION= @VERSION@ 9UNIVERSALSDK=@UNIVERSALSDK@ 10builddir= ../.. 11 12RUNSHARED= @RUNSHARED@ 13BUILDEXE= @BUILDEXEEXT@ 14BUILDPYTHON= $(builddir)/python$(BUILDEXE) 15PYTHONFRAMEWORK=@PYTHONFRAMEWORK@ 16 17# Deployment target selected during configure, to be checked 18# by distutils 19MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ 20@EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET 21 22PYTHONAPPSDIR=@FRAMEWORKINSTALLAPPSPREFIX@/$(PYTHONFRAMEWORK) $(VERSION) 23OBJECTS=FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o doscript.o main.o 24 25install: Python\ Launcher.app 26 test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" 27 -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" 28 /bin/cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)" 29 touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" 30 31clean: 32 rm -f *.o "Python Launcher" 33 rm -rf "Python Launcher.app" 34 rm -f Info.plist 35 36Python\ Launcher.app: Info.plist \ 37 Python\ Launcher $(srcdir)/../Icons/PythonLauncher.icns \ 38 $(srcdir)/../Icons/PythonSource.icns \ 39 $(srcdir)/../Icons/PythonCompiled.icns \ 40 $(srcdir)/factorySettings.plist 41 rm -fr "Python Launcher.app" 42 mkdir "Python Launcher.app" 43 mkdir "Python Launcher.app/Contents" 44 mkdir "Python Launcher.app/Contents/MacOS" 45 mkdir "Python Launcher.app/Contents/Resources" 46 cp "Python Launcher" "Python Launcher.app/Contents/MacOS" 47 cp Info.plist "Python Launcher.app/Contents" 48 cp $(srcdir)/../Icons/PythonLauncher.icns "Python Launcher.app/Contents/Resources" 49 cp $(srcdir)/../Icons/PythonSource.icns "Python Launcher.app/Contents/Resources" 50 cp $(srcdir)/../Icons/PythonCompiled.icns "Python Launcher.app/Contents/Resources" 51 cp $(srcdir)/factorySettings.plist "Python Launcher.app/Contents/Resources" 52 cp -R $(srcdir)/English.lproj "Python Launcher.app/Contents/Resources" 53 54FileSettings.o: $(srcdir)/FileSettings.m 55 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/FileSettings.m 56 57MyAppDelegate.o: $(srcdir)/MyAppDelegate.m 58 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyAppDelegate.m 59 60MyDocument.o: $(srcdir)/MyDocument.m 61 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/MyDocument.m 62 63PreferencesWindowController.o: $(srcdir)/PreferencesWindowController.m 64 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/PreferencesWindowController.m 65 66doscript.o: $(srcdir)/doscript.m 67 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/doscript.m 68 69main.o: $(srcdir)/main.m 70 $(CC) $(CFLAGS) -o $@ -c $(srcdir)/main.m 71 72Python\ Launcher: $(OBJECTS) 73 $(CC) $(LDFLAGS) -o "Python Launcher" $(OBJECTS) -framework AppKit -framework Carbon 74 75Info.plist: $(srcdir)/Info.plist.in 76 sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`"'/g' < $(srcdir)/Info.plist.in > Info.plist 77