Ignore:
Timestamp:
Sep 3, 2010, 5:33:06 PM (15 years ago)
Author:
Yuri Dario
Message:

python: merged offline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/trunk/Makefile.pre.in

    r2 r10  
    158158LDLIBRARYDIR=   @LDLIBRARYDIR@
    159159INSTSONAME=     @INSTSONAME@
     160CONDENSED_VERSION=      @CONDENSED_VERSION@
    160161
    161162
     
    454455        $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
    455456
     457ifneq ($(filter os2emx os2knix,$(MACHDEP)),) # bird hack!
     458$(DLLLIBRARY) $(LDLIBRARY): $(LIBRARY_OBJS)
     459        $(LDSHARED) -o $(DLLLIBRARY) $^ $(LIBS) $(MODLIBS) $(SYSLIBS)
     460        emximp -o $(LDLIBRARY) $(DLLLIBRARY)
     461
     462else # CYGWIN
    456463# This rule builds the Cygwin Python DLL and import library if configured
    457464# for a shared core library; otherwise, this rule is a noop.
     
    462469        else true; \
    463470        fi
     471endif # end bird hack! 
    464472
    465473
     
    533541
    534542$(AST_H): $(AST_ASDL) $(ASDLGEN_FILES)
     543ifndef BOOTSTRAPPING_PYTHON
    535544        $(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL)
     545endif
    536546
    537547$(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
     548ifndef BOOTSTRAPPING_PYTHON
    538549        $(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL)
     550endif
    539551
    540552Python/compile.o Python/symtable.o: $(GRAMMAR_H) $(AST_H)
     
    764776        -rm -f $(DESTDIR)$(BINDIR)/python-config
    765777        (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
     778        rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
     779        $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/$(PYTHON); \
     780        $(INSTALL_DATA) $(LDLIBRARY) $(DLLLIBRARY) $(DESTDIR)$(LIBDIR); \
    766781
    767782# Install the interpreter with $(VERSION) affixed
     
    906921                ./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
    907922
     923ifneq ($(filter os2emx os2knix,$(MACHDEP)),) # bird hack!
     924PATH_SEPARATOR = ;
     925else
     926PATH_SEPARATOR = :
     927endif
     928                                 
    908929# Create the PLATDIR source directory, if one wasn't distributed..
    909930$(srcdir)/Lib/$(PLATDIR):
    910931        mkdir $(srcdir)/Lib/$(PLATDIR)
    911932        cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
    912         export PATH; PATH="`pwd`:$$PATH"; \
     933        export PATH; PATH="`pwd`$(PATH_SEPARATOR)$$PATH"; \
    913934        export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
    914935        export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
     
    10061027                --install-scripts=$(BINDIR) \
    10071028                --install-platlib=$(DESTSHARED) \
    1008                 --root=/$(DESTDIR)
     1029                --root=$(DESTDIR)
    10091030
    10101031# Here are a couple of targets for MacOSX again, to install a full
Note: See TracChangeset for help on using the changeset viewer.