~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Makefile.pre.in

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-05-24 18:56:40 UTC
  • mfrom: (39055.1.22 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080524185640-59vz6l1f7qgixgal
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
375
375
build_all_use_profile:
376
376
        $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use"
377
377
 
 
378
coverage:
 
379
        @echo "Building with support for coverage checking:"
 
380
        $(MAKE) clean
 
381
        $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
 
382
 
 
383
 
378
384
# Build the interpreter
379
385
$(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY)
380
386
                $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \
418
424
# This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
419
425
# minimal framework (not including the Lib directory and such) in the current
420
426
# directory.
421
 
RESSRCDIR=$(srcdir)/Mac/Resources/framework
 
427
RESSRCDIR=Mac/Resources/framework
422
428
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
423
429
                $(LIBRARY) \
424
 
                $(RESSRCDIR)/Info.plist \
425
 
                $(RESSRCDIR)/version.plist \
426
 
                $(RESSRCDIR)/English.lproj/InfoPlist.strings
 
430
                $(RESSRCDIR)/Info.plist
427
431
        $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
428
432
        if test "${UNIVERSALSDK}"; then \
429
433
                $(CC) -o $(LDLIBRARY) -arch i386 -arch ppc -dynamiclib \
430
434
                        -isysroot "${UNIVERSALSDK}" \
431
435
                        -all_load $(LIBRARY) -Wl,-single_module \
432
 
                        -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/Python \
 
436
                        -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
433
437
                        -compatibility_version $(VERSION) \
434
438
                        -current_version $(VERSION); \
435
439
        else \
440
444
                $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
441
445
        $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \
442
446
                $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist
443
 
        $(INSTALL_DATA) $(RESSRCDIR)/version.plist \
444
 
                $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/version.plist
445
 
        $(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
446
 
                $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj/InfoPlist.strings
447
447
        $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
448
448
        $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
449
449
        $(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
483
483
                echo "Modules/Setup.dist is newer than Modules/Setup;"; \
484
484
                echo "check to make sure you have all the updates you"; \
485
485
                echo "need in your Modules/Setup file."; \
486
 
                echo "Usually, copying Setup.dist to Setup will work."; \
 
486
                echo "Usually, copying Modules/Setup.dist to Modules/Setup will work."; \
487
487
                echo "-----------------------------------------------"; \
488
488
        fi
489
489
 
555
555
                $(srcdir)/Objects/stringlib/stringdefs.h \
556
556
                $(srcdir)/Objects/stringlib/string_format.h \
557
557
                $(srcdir)/Objects/stringlib/transmogrify.h \
558
 
                $(srcdir)/Objects/stringlib/unicodedefs.h
 
558
                $(srcdir)/Objects/stringlib/unicodedefs.h \
 
559
                $(srcdir)/Objects/stringlib/localeutil.h
559
560
 
560
561
Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \
561
562
                                $(STRINGLIB_HEADERS)
814
815
                test/decimaltestdata \
815
816
                encodings compiler hotshot \
816
817
                email email/mime email/test email/test/data \
 
818
                json json/tests \
817
819
                sqlite3 sqlite3/test \
818
820
                logging bsddb bsddb/test csv wsgiref \
819
 
                lib2to3 lib2to3/fixes lib2to3/pgen2 \
 
821
                lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \
820
822
                ctypes ctypes/test ctypes/macholib idlelib idlelib/Icons \
821
823
                distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
822
 
                setuptools setuptools/command setuptools/tests setuptools.egg-info \
 
824
                lib-old \
823
825
                curses $(MACHDEPS)
824
826
libinstall:     build_all $(srcdir)/Lib/$(PLATDIR)
825
827
        @for i in $(SCRIPTDIR) $(LIBDEST); \
1030
1032
                fi; \
1031
1033
        done
1032
1034
        $(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers
1033
 
        $(INSTALL_DATA) $(RESSRCDIR)/Info.plist $(DESTDIR)$(prefix)/Resources/Info.plist
1034
 
        $(INSTALL_DATA) $(RESSRCDIR)/version.plist $(DESTDIR)$(prefix)/Resources/version.plist
1035
 
        $(INSTALL_DATA) $(RESSRCDIR)/English.lproj/InfoPlist.strings \
1036
 
                $(DESTDIR)$(prefix)/Resources/English.lproj/InfoPlist.strings
 
1035
        sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(RESSRCDIR)/Info.plist > $(DESTDIR)$(prefix)/Resources/Info.plist
1037
1036
        $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
1038
 
        $(LN) -fsn Versions/Current/Python $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Python
 
1037
        $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAMEWORK)
1039
1038
        $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
1040
1039
        $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
1041
1040
        $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY)
1044
1043
# Install a number of symlinks to keep software that expects a normal unix
1045
1044
# install (which includes python-config) happy.
1046
1045
frameworkinstallmaclib:
1047
 
        ln -fs "../../../Python" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).a"
 
1046
        ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).a"
1048
1047
        cd Mac && $(MAKE) installmacsubtree DESTDIR="$(DESTDIR)"
1049
1048
 
1050
1049
# This installs the IDE, the Launcher and other apps into /Applications