components/python/python26/Makefile.config
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Wed, 13 Apr 2011 09:58:06 -0700
changeset 181 87e11e685b1f
parent 150 2e044e9ef7de
permissions -rw-r--r--
7003927 userland should postprocess packaged files 7034188 userland should have common lint library rules 7034992 userland packages should include opensolaris.arc_url data 7019309 move ghostscript to userland (fix build)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
150
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
# This file is a static, checked in version of the build generated python
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
# Makefile.pre.  It is packaged in place of the one in the proto area.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
# Generated automatically from Makefile.pre by makesetup.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
# Top-level Makefile for Python
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
# As distributed, this file is called Makefile.pre.in; it is processed
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
# into the real Makefile by running the script ./configure, which
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
# replaces things like @[email protected] with values appropriate for your system.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
# This means that if you edit Makefile, your changes get lost the next
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
# time you run the configure script.  Ideally, you can do:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    13
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    14
#	./configure
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    15
#	make
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    16
#	make test
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    17
#	make install
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    18
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    19
# If you have a previous version of Python installed that you don't
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    20
# want to overwrite, you can use "make altinstall" instead of "make
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    21
# install".  Refer to the "Installing" section in the README file for
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    22
# additional details.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    23
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    24
# See also the section "Build instructions" in the README file.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    25
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    26
# === Variables set by makesetup ===
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    27
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    28
MODOBJS=          Modules/threadmodule.o  Modules/signalmodule.o  Modules/posixmodule.o  Modules/errnomodule.o  Modules/pwdmodule.o  Modules/_sre.o  Modules/_codecsmodule.o  Modules/zipimport.o  Modules/symtablemodule.o  Modules/xxsubtype.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    29
MODLIBS=        $(LOCALMODLIBS) $(BASEMODLIBS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    30
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    31
# === Variables set by configure
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    32
VERSION=	2.6
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    33
srcdir=		.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    34
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    35
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    36
CC=		/usr/lib/python2.6/pycc
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    37
CXX=		/usr/lib/python2.6/pyCC
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    38
MAINCC=		$(CC)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    39
LINKCC=		$(PURIFY) $(MAINCC)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    40
AR=		ar
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    41
RANLIB=		ranlib
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    42
SVNVERSION=	svnversion $(srcdir)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    43
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    44
# Shell used by make (some versions default to the login shell, which is bad)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    45
SHELL=		/bin/sh
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    46
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    47
# Use this to make a link between python$(VERSION) and python in $(BINDIR)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    48
LN=		ln
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    49
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    50
# Portable install script (configure doesn't always guess right)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    51
INSTALL=	install
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    52
INSTALL_PROGRAM=${INSTALL}
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    53
INSTALL_SCRIPT= ${INSTALL}
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    54
INSTALL_DATA=	${INSTALL} -m 644
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    55
# Shared libraries must be installed with executable mode on some systems;
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    56
# rather than figuring out exactly which, we always give them executable mode.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    57
# Also, making them read-only seems to be a good idea...
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    58
INSTALL_SHARED= ${INSTALL} -m 555
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    59
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    60
MAKESETUP=      $(srcdir)/Modules/makesetup
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    61
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    62
# Compiler options
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    63
OPT=		-DNDEBUG
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    64
BASECFLAGS=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    65
CFLAGS=		$(BASECFLAGS) $(OPT) $(EXTRA_CFLAGS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    66
# Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    67
# be able to build extension modules using the directories specified in the
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    68
# environment variables
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    69
CPPFLAGS=	-I. -IInclude -I$(srcdir)/Include -D_LARGEFILE64_SOURCE -I/usr/lib/libffi-3.0.9/include  
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    70
LDFLAGS=	  -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect  -L. -L/usr/gnu/lib
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    71
LDLAST=		
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    72
SGI_ABI=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    73
CCSHARED=	-KPIC
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    74
LINKFORSHARED=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    75
# Extra C flags added for building the interpreter object files.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    76
CFLAGSFORSHARED=$(CCSHARED)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    77
# C flags used for building the interpreter object files
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    78
PY_CFLAGS=	$(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    79
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    80
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    81
# Machine-dependent subdirectories
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    82
MACHDEP=	sunos5
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    83
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    84
# Install prefix for architecture-independent files
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    85
prefix=		/usr
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    86
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    87
# Install prefix for architecture-dependent files
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    88
exec_prefix=	${prefix}
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    89
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    90
# Install prefix for data files
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    91
datarootdir=    ${prefix}/share
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    92
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    93
# Expanded directories
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    94
BINDIR=		$(exec_prefix)/bin
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    95
LIBDIR=		/usr/lib
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    96
MANDIR=		/usr/share/man
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    97
INCLUDEDIR=	${prefix}/include
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    98
CONFINCLUDEDIR=	$(exec_prefix)/include
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    99
SCRIPTDIR=	$(prefix)/lib
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   100
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   101
# Detailed destination directories
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   102
BINLIBDEST=		$(exec_prefix)/lib/python$(VERSION)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   103
LIBDEST=		$(SCRIPTDIR)/python$(VERSION)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   104
INCLUDEPY=		$(INCLUDEDIR)/python$(VERSION)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   105
CONFINCLUDEPY=		$(CONFINCLUDEDIR)/python$(VERSION)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   106
LIBP=			$(exec_prefix)/lib/python$(VERSION)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   107
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   108
# Symbols used for using shared libraries
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   109
SO=		.so
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   110
LDSHARED=	$(CC) -G
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   111
BLDSHARED=	$(CC) -G
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   112
DESTSHARED=	$(BINLIBDEST)/lib-dynload
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   113
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   114
# Executable suffix (.exe on Windows and Mac OS X)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   115
EXE=		
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   116
BUILDEXE=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   117
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   118
# Short name and location for Mac OS X Python framework
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   119
UNIVERSALSDK=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   120
PYTHONFRAMEWORK=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   121
PYTHONFRAMEWORKDIR=	no-framework
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   122
PYTHONFRAMEWORKPREFIX=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   123
PYTHONFRAMEWORKINSTALLDIR= 
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   124
# Deployment target selected during configure, to be checked
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   125
# by distutils. The export statement is needed to ensure that the
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   126
# deployment target is active during build.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   127
MACOSX_DEPLOYMENT_TARGET=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   128
#export MACOSX_DEPLOYMENT_TARGET
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   129
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   130
# Options to enable prebinding (for fast startup prior to Mac OS X 10.3)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   131
OTHER_LIBTOOL_OPT=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   132
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   133
# Environment to run shared python without installed libraries
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   134
RUNSHARED=       
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   135
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   136
# Modes for directories, executables and data files created by the
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   137
# install process.  Default to user-only-writable for all file types.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   138
DIRMODE=	755
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   139
EXEMODE=	755
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   140
FILEMODE=	644
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   141
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   142
# configure script arguments
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   143
CONFIG_ARGS=	 '--prefix=/usr' '--libdir=/usr/lib' '--mandir=/usr/share/man' '--datadir=/usr/share' '--infodir=/usr/share/info' '--enable-shared' '--with-system-ffi' '--disable-static' 'CC=/usr/lib/python2.6/pycc' 'CFLAGS=' 'LDFLAGS=  -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect  -L. -L/usr/gnu/lib' 'CPPFLAGS=-D_LARGEFILE64_SOURCE -I/usr/lib/libffi-3.0.9/include  '
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   144
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   145
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   146
# Subdirectories with code
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   147
SRCDIRS= 	Parser Grammar Objects Python Modules Mac
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   148
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   149
# Other subdirectories
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   150
SUBDIRSTOO=	Include Lib Misc Demo
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   151
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   152
# Files and directories to be distributed
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   153
CONFIGFILES=	configure configure.in acconfig.h pyconfig.h.in Makefile.pre.in
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   154
DISTFILES=	README ChangeLog $(CONFIGFILES)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   155
DISTDIRS=	$(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   156
DIST=		$(DISTFILES) $(DISTDIRS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   157
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   158
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   159
LIBRARY=	libpython$(VERSION).a
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   160
LDLIBRARY=      libpython$(VERSION).so
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   161
BLDLIBRARY=     -Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   162
DLLLIBRARY=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   163
LDLIBRARYDIR=   
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   164
INSTSONAME=	libpython$(VERSION).so.1.0
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   165
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   166
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   167
LIBS=		-lsocket -lnsl -ldl 
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   168
LIBM=		-lm
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   169
LIBC=		
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   170
SYSLIBS=	$(LIBM) $(LIBC)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   171
SHLIBS=		$(LIBS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   172
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   173
THREADOBJ=	Python/thread.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   174
DLINCLDIR=	.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   175
DYNLOADFILE=	dynload_shlib.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   176
MACHDEP_OBJS=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   177
LIBOBJDIR=	Python/
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   178
LIBOBJS=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   179
UNICODE_OBJS=   Objects/unicodeobject.o Objects/unicodectype.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   180
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   181
PYTHON=		python$(EXE)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   182
BUILDPYTHON=	python$(BUILDEXE)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   183
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   184
# The task to run while instrument when building the profile-opt target
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   185
PROFILE_TASK=	$(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   186
#PROFILE_TASK=	$(srcdir)/Lib/test/regrtest.py
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   187
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   188
# === Definitions added by makesetup ===
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   189
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   190
LOCALMODLIBS=          
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   191
BASEMODLIBS=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   192
GLHACK=-Dclear=__GLclear
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   193
PYTHONPATH=$(COREPYTHONPATH)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   194
COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(EXTRAMACHDEPPATH)$(TKPATH)$(OLDPATH)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   195
OLDPATH=:lib-old
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   196
TKPATH=:lib-tk
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   197
EXTRAMACHDEPPATH=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   198
MACHDEPPATH=:plat-$(MACHDEP)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   199
TESTPATH=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   200
SITEPATH=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   201
DESTPATH=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   202
MACHDESTLIB=$(BINLIBDEST)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   203
DESTLIB=$(LIBDEST)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   204
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   205
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   206
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   207
##########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   208
# Modules
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   209
MODULE_OBJS=	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   210
		Modules/config.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   211
		Modules/getpath.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   212
		Modules/main.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   213
		Modules/gcmodule.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   214
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   215
# Used of signalmodule.o is not available
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   216
SIGNAL_OBJS=	
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   217
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   218
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   219
##########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   220
# Grammar
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   221
GRAMMAR_H=	$(srcdir)/Include/graminit.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   222
GRAMMAR_C=	$(srcdir)/Python/graminit.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   223
GRAMMAR_INPUT=	$(srcdir)/Grammar/Grammar
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   224
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   225
DTRACE_OBJS=Python/dtrace.o Python/phelper.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   226
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   227
##########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   228
# Parser
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   229
PGEN=		Parser/pgen$(EXE)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   230
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   231
POBJS=		\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   232
		Parser/acceler.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   233
		Parser/grammar1.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   234
		Parser/listnode.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   235
		Parser/node.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   236
		Parser/parser.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   237
		Parser/parsetok.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   238
		Parser/bitset.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   239
		Parser/metagrammar.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   240
		Parser/firstsets.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   241
		Parser/grammar.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   242
		Parser/pgen.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   243
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   244
PARSER_OBJS=	$(POBJS) Parser/myreadline.o Parser/tokenizer.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   245
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   246
PGOBJS=		\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   247
		Objects/obmalloc.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   248
		Python/mysnprintf.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   249
		Parser/tokenizer_pgen.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   250
		Parser/printgrammar.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   251
		Parser/pgenmain.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   252
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   253
PARSER_HEADERS= \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   254
		Parser/parser.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   255
		Parser/tokenizer.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   256
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   257
PGENOBJS=	$(PGENMAIN) $(POBJS) $(PGOBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   258
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   259
##########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   260
# AST
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   261
AST_H_DIR=	$(srcdir)/Include
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   262
AST_H=		$(AST_H_DIR)/Python-ast.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   263
AST_C_DIR=	$(srcdir)/Python
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   264
AST_C=		$(AST_C_DIR)/Python-ast.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   265
AST_ASDL=	$(srcdir)/Parser/Python.asdl
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   266
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   267
ASDLGEN_FILES=	$(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   268
# XXX Note that a build now requires Python exist before the build starts
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   269
ASDLGEN=	$(srcdir)/Parser/asdl_c.py
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   270
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   271
##########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   272
# Python
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   273
PYTHON_OBJS=	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   274
		Python/_warnings.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   275
		Python/Python-ast.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   276
		Python/asdl.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   277
		Python/ast.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   278
		Python/bltinmodule.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   279
		Python/ceval.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   280
		Python/compile.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   281
		Python/codecs.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   282
		Python/errors.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   283
		Python/frozen.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   284
		Python/frozenmain.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   285
		Python/future.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   286
		Python/getargs.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   287
		Python/getcompiler.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   288
		Python/getcopyright.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   289
		Python/getmtime.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   290
		Python/getplatform.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   291
		Python/getversion.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   292
		Python/graminit.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   293
		Python/import.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   294
		Python/importdl.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   295
		Python/marshal.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   296
		Python/modsupport.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   297
		Python/mystrtoul.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   298
		Python/mysnprintf.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   299
		Python/peephole.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   300
		Python/pyarena.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   301
		Python/pyfpe.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   302
		Python/pymath.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   303
		Python/pystate.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   304
		Python/pythonrun.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   305
		Python/structmember.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   306
		Python/symtable.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   307
		Python/sysmodule.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   308
		Python/traceback.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   309
		Python/getopt.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   310
		Python/pystrcmp.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   311
		Python/pystrtod.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   312
		Python/formatter_unicode.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   313
		Python/formatter_string.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   314
		Python/$(DYNLOADFILE) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   315
		$(DTRACE_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   316
		$(LIBOBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   317
		$(MACHDEP_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   318
		$(THREADOBJ)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   319
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   320
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   321
##########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   322
# Objects
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   323
OBJECT_OBJS=	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   324
		Objects/abstract.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   325
		Objects/boolobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   326
		Objects/bufferobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   327
		Objects/bytes_methods.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   328
		Objects/bytearrayobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   329
		Objects/cellobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   330
		Objects/classobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   331
		Objects/cobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   332
		Objects/codeobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   333
		Objects/complexobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   334
		Objects/descrobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   335
		Objects/enumobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   336
		Objects/exceptions.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   337
		Objects/genobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   338
		Objects/fileobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   339
		Objects/floatobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   340
		Objects/frameobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   341
		Objects/funcobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   342
		Objects/intobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   343
		Objects/iterobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   344
		Objects/listobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   345
		Objects/longobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   346
		Objects/dictobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   347
		Objects/methodobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   348
		Objects/moduleobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   349
		Objects/object.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   350
		Objects/obmalloc.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   351
		Objects/rangeobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   352
		Objects/setobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   353
		Objects/sliceobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   354
		Objects/stringobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   355
		Objects/structseq.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   356
		Objects/tupleobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   357
		Objects/typeobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   358
		Objects/weakrefobject.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   359
		$(UNICODE_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   360
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   361
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   362
##########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   363
# objects that get linked into the Python library
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   364
LIBRARY_OBJS=	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   365
		Modules/getbuildinfo.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   366
		$(PARSER_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   367
		$(OBJECT_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   368
		$(PYTHON_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   369
		$(MODULE_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   370
		$(SIGNAL_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   371
		$(MODOBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   372
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   373
#########################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   374
# Rules
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   375
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   376
# Default target
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   377
all:		build_all
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   378
build_all:	$(BUILDPYTHON) oldsharedmods sharedmods
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   379
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   380
# Compile a binary with gcc profile guided optimization.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   381
profile-opt:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   382
	@echo "Building with support for profile generation:"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   383
	$(MAKE) clean
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   384
	$(MAKE) build_all_generate_profile
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   385
	@echo "Running benchmark to generate profile data:"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   386
	$(MAKE) profile-removal
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   387
	$(MAKE) run_profile_task
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   388
	@echo "Rebuilding with profile guided optimizations:"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   389
	$(MAKE) clean
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   390
	$(MAKE) build_all_use_profile
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   391
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   392
build_all_generate_profile:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   393
	$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   394
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   395
run_profile_task:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   396
	./$(BUILDPYTHON) $(PROFILE_TASK)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   397
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   398
build_all_use_profile:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   399
	$(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   400
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   401
coverage:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   402
	@echo "Building with support for coverage checking:"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   403
	$(MAKE) clean
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   404
	$(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   405
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   406
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   407
# Build the interpreter
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   408
$(BUILDPYTHON):	Modules/python.o $(LIBRARY) $(LDLIBRARY)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   409
		$(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o [email protected] \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   410
			Modules/python.o \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   411
			$(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   412
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   413
platform: $(BUILDPYTHON)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   414
	$(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   415
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   416
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   417
# Build the shared modules
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   418
sharedmods: $(BUILDPYTHON)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   419
	@case $$MAKEFLAGS in \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   420
	*s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   421
	*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   422
	esac
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   423
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   424
# Build static library
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   425
# avoid long command lines, same as LIBRARY_OBJS
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   426
$(LIBRARY): $(LIBRARY_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   427
	-rm -f [email protected]
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   428
	$(AR) cr [email protected] Modules/getbuildinfo.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   429
	$(AR) cr [email protected] $(PARSER_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   430
	$(AR) cr [email protected] $(OBJECT_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   431
	$(AR) cr [email protected] $(PYTHON_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   432
	$(AR) cr [email protected] $(MODULE_OBJS) $(SIGNAL_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   433
	$(AR) cr [email protected] $(MODOBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   434
	$(RANLIB) [email protected]
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   435
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   436
libpython$(VERSION).so: $(LIBRARY_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   437
	if test $(INSTSONAME) != $(LDLIBRARY); then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   438
		$(LDSHARED) $(LDFLAGS) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   439
		$(LN) -f $(INSTSONAME) [email protected]; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   440
	else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   441
		$(LDSHARED) $(LDFLAGS) -o [email protected] $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   442
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   443
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   444
libpython$(VERSION).dylib: $(LIBRARY_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   445
	 $(CC) -dynamiclib -Wl,-single_module $(LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(VERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o [email protected] $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   446
		 
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   447
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   448
libpython$(VERSION).sl: $(LIBRARY_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   449
	$(LDSHARED) $(LDFLAGS) -o [email protected] $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   450
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   451
# This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   452
# minimal framework (not including the Lib directory and such) in the current
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   453
# directory.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   454
RESSRCDIR=Mac/Resources/framework
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   455
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   456
		$(LIBRARY) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   457
		$(RESSRCDIR)/Info.plist
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   458
	$(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   459
	if test "${UNIVERSALSDK}"; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   460
		$(CC) -o $(LDLIBRARY)  -dynamiclib \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   461
			-isysroot "${UNIVERSALSDK}" \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   462
			-all_load $(LIBRARY) -Wl,-single_module \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   463
			-install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   464
			-compatibility_version $(VERSION) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   465
			-current_version $(VERSION); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   466
        else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   467
		/usr/bin/libtool -o $(LDLIBRARY) -dynamic $(OTHER_LIBTOOL_OPT) $(LIBRARY) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   468
			 ;\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   469
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   470
	$(INSTALL) -d -m $(DIRMODE)  \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   471
		$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   472
	$(INSTALL_DATA) $(RESSRCDIR)/Info.plist \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   473
		$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   474
	$(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   475
	$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   476
	$(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   477
	$(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   478
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   479
# This rule builds the Cygwin Python DLL and import library if configured
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   480
# for a shared core library; otherwise, this rule is a noop.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   481
$(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   482
	if test -n "$(DLLLIBRARY)"; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   483
		$(LDSHARED) $(LDFLAGS) -Wl,[email protected] -o $(DLLLIBRARY) $^ \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   484
			$(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   485
	else true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   486
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   487
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   488
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   489
oldsharedmods: $(SHAREDMODS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   490
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   491
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   492
Makefile Modules/config.c: Makefile.pre \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   493
				$(srcdir)/Modules/config.c.in \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   494
				$(MAKESETUP) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   495
				Modules/Setup.config \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   496
				Modules/Setup \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   497
				Modules/Setup.local
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   498
	$(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   499
				-s Modules \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   500
				Modules/Setup.config \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   501
				Modules/Setup.local \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   502
				Modules/Setup
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   503
	@mv config.c Modules
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   504
	@echo "The Makefile was updated, you may need to re-run make."
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   505
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   506
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   507
Modules/Setup: $(srcdir)/Modules/Setup.dist
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   508
	@if test -f Modules/Setup; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   509
		echo "-----------------------------------------------"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   510
		echo "Modules/Setup.dist is newer than Modules/Setup;"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   511
		echo "check to make sure you have all the updates you"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   512
		echo "need in your Modules/Setup file."; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   513
		echo "Usually, copying Modules/Setup.dist to Modules/Setup will work."; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   514
		echo "-----------------------------------------------"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   515
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   516
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   517
############################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   518
# Special rules for object files
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   519
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   520
Modules/getbuildinfo.o: $(PARSER_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   521
		$(OBJECT_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   522
		$(PYTHON_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   523
		$(MODULE_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   524
		$(SIGNAL_OBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   525
		$(MODOBJS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   526
		$(srcdir)/Modules/getbuildinfo.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   527
	$(CC) -c $(PY_CFLAGS) -DSVNVERSION="\"`LC_ALL=C $(SVNVERSION)`\"" -o [email protected] $(srcdir)/Modules/getbuildinfo.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   528
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   529
Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   530
	$(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   531
		-DPREFIX='"$(prefix)"' \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   532
		-DEXEC_PREFIX='"$(exec_prefix)"' \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   533
		-DVERSION='"$(VERSION)"' \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   534
		-DVPATH='"$(VPATH)"' \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   535
		-o [email protected] $(srcdir)/Modules/getpath.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   536
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   537
Modules/python.o: $(srcdir)/Modules/python.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   538
	$(MAINCC) -c $(PY_CFLAGS) -o [email protected] $(srcdir)/Modules/python.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   539
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   540
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   541
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   542
		[email protected]$(INSTALL) -d Include
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   543
		-$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   544
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   545
$(PGEN):	$(PGENOBJS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   546
		$(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   547
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   548
Parser/grammar.o:	$(srcdir)/Parser/grammar.c \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   549
				$(srcdir)/Include/token.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   550
				$(srcdir)/Include/grammar.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   551
Parser/metagrammar.o:	$(srcdir)/Parser/metagrammar.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   552
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   553
Parser/tokenizer_pgen.o:	$(srcdir)/Parser/tokenizer.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   554
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   555
Parser/pgenmain.o:	$(srcdir)/Include/parsetok.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   556
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   557
$(AST_H): $(AST_ASDL) $(ASDLGEN_FILES)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   558
	$(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   559
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   560
$(AST_C): $(AST_ASDL) $(ASDLGEN_FILES)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   561
	$(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   562
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   563
Python/compile.o Python/symtable.o: $(GRAMMAR_H) $(AST_H)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   564
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   565
Python/getplatform.o: $(srcdir)/Python/getplatform.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   566
		$(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o [email protected] $(srcdir)/Python/getplatform.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   567
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   568
Python/importdl.o: $(srcdir)/Python/importdl.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   569
		$(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o [email protected] $(srcdir)/Python/importdl.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   570
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   571
Objects/unicodectype.o:	$(srcdir)/Objects/unicodectype.c \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   572
				$(srcdir)/Objects/unicodetype_db.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   573
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   574
STRINGLIB_HEADERS= \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   575
		$(srcdir)/Include/bytes_methods.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   576
		$(srcdir)/Objects/stringlib/count.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   577
		$(srcdir)/Objects/stringlib/ctype.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   578
		$(srcdir)/Objects/stringlib/fastsearch.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   579
		$(srcdir)/Objects/stringlib/find.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   580
		$(srcdir)/Objects/stringlib/formatter.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   581
		$(srcdir)/Objects/stringlib/partition.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   582
		$(srcdir)/Objects/stringlib/stringdefs.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   583
		$(srcdir)/Objects/stringlib/string_format.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   584
		$(srcdir)/Objects/stringlib/transmogrify.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   585
		$(srcdir)/Objects/stringlib/unicodedefs.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   586
		$(srcdir)/Objects/stringlib/localeutil.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   587
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   588
Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   589
				$(STRINGLIB_HEADERS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   590
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   591
Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   592
				$(STRINGLIB_HEADERS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   593
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   594
Objects/stringobject.o: $(srcdir)/Objects/stringobject.c \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   595
				$(STRINGLIB_HEADERS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   596
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   597
Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   598
				$(STRINGLIB_HEADERS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   599
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   600
Python/formatter_string.o: $(srcdir)/Python/formatter_string.c \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   601
				$(STRINGLIB_HEADERS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   602
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   603
Python/phelper.o: $(srcdir)/Python/phelper.d
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   604
	dtrace -o [email protected] -DPHELPER $(DFLAGS) $(CPPFLAGS) -C -G -s $(srcdir)/Python/phelper.d
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   605
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   606
Python/python.h: $(srcdir)/Python/python.d
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   607
	dtrace -o [email protected] $(DFLAGS) -C -h -s $(srcdir)/Python/python.d
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   608
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   609
Python/ceval.o: Python/python.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   610
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   611
Python/dtrace.o: $(srcdir)/Python/python.d Python/ceval.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   612
	dtrace -o [email protected] $(DFLAGS) -C -G -s $(srcdir)/Python/python.d Python/ceval.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   613
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   614
############################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   615
# Header files
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   616
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   617
PYTHON_HEADERS= \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   618
		Include/Python-ast.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   619
		Include/Python.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   620
		Include/abstract.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   621
		Include/asdl.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   622
		Include/ast.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   623
		Include/bitset.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   624
		Include/boolobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   625
		Include/bytearrayobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   626
		Include/bytes_methods.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   627
		Include/bytesobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   628
		Include/bufferobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   629
		Include/cellobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   630
		Include/ceval.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   631
		Include/classobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   632
		Include/cobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   633
		Include/code.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   634
		Include/codecs.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   635
		Include/compile.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   636
		Include/complexobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   637
		Include/descrobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   638
		Include/dictobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   639
		Include/enumobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   640
		Include/errcode.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   641
		Include/eval.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   642
		Include/fileobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   643
		Include/floatobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   644
		Include/frameobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   645
		Include/funcobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   646
		Include/genobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   647
		Include/import.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   648
		Include/intobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   649
		Include/intrcheck.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   650
		Include/iterobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   651
		Include/listobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   652
		Include/longintrepr.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   653
		Include/longobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   654
		Include/marshal.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   655
		Include/metagrammar.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   656
		Include/methodobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   657
		Include/modsupport.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   658
		Include/moduleobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   659
		Include/node.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   660
		Include/object.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   661
		Include/objimpl.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   662
		Include/opcode.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   663
		Include/osdefs.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   664
		Include/parsetok.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   665
		Include/patchlevel.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   666
		Include/pgen.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   667
		Include/pgenheaders.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   668
		Include/pyarena.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   669
		Include/pydebug.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   670
		Include/pyerrors.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   671
		Include/pyfpe.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   672
		Include/pymath.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   673
		Include/pygetopt.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   674
		Include/pymem.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   675
		Include/pyport.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   676
		Include/pystate.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   677
		Include/pystrcmp.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   678
		Include/pystrtod.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   679
		Include/pythonrun.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   680
		Include/pythread.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   681
		Include/rangeobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   682
		Include/setobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   683
		Include/sliceobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   684
		Include/stringobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   685
		Include/structmember.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   686
		Include/structseq.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   687
		Include/symtable.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   688
		Include/sysmodule.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   689
		Include/traceback.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   690
		Include/tupleobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   691
		Include/ucnhash.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   692
		Include/unicodeobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   693
		Include/warnings.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   694
		Include/weakrefobject.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   695
		pyconfig.h \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   696
		$(PARSER_HEADERS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   697
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   698
$(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   699
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   700
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   701
######################################################################
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   702
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   703
# Test the interpreter (twice, once without .pyc files, once with)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   704
# In the past, we've had problems where bugs in the marshalling or
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   705
# elsewhere caused bytecode read from .pyc files to behave differently
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   706
# than bytecode generated directly from a .py source file.  Sometimes
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   707
# the bytecode read from a .pyc file had the bug, somtimes the directly
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   708
# generated bytecode.  This is sometimes a very shy bug needing a lot of
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   709
# sample data.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   710
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   711
TESTOPTS=	-l $(EXTRATESTOPTS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   712
TESTPROG=	$(srcdir)/Lib/test/regrtest.py
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   713
TESTPYTHON=	$(RUNSHARED) ./$(BUILDPYTHON) -E -tt
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   714
test:		all platform
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   715
		-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   716
		-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   717
		$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   718
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   719
testall:	all platform
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   720
		-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   721
		$(TESTPYTHON) $(srcdir)/Lib/compileall.py
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   722
		-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   723
		-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   724
		$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   725
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   726
#  Run the unitests for both architectures in a Universal build on OSX
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   727
#  Must be run on an Intel box.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   728
testuniversal:	all platform
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   729
		if [ `arch` != 'i386' ];then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   730
			echo "This can only be used on OSX/i386" ;\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   731
			exit 1 ;\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   732
		fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   733
		-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   734
		-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   735
		$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   736
		$(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) $(TESTOPTS) -uall
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   737
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   738
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   739
# Like testall, but with a single pass only
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   740
# run an optional script to include some information about the build environment
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   741
buildbottest:	all platform
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   742
		[email protected] which pybuildbot.identify >/dev/null 2>&1; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   743
			pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   744
		fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   745
		$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall -rw
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   746
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   747
QUICKTESTOPTS=	$(TESTOPTS) -x test_thread test_signal test_strftime \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   748
		test_unicodedata test_re test_sre test_select test_poll \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   749
		test_linuxaudiodev test_struct test_sunaudiodev test_zlib
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   750
quicktest:	all platform
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   751
		-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   752
		-$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   753
		$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   754
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   755
MEMTESTOPTS=    $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   756
		test_longexp
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   757
memtest:	all platform
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   758
		-rm -f $(srcdir)/Lib/test/*.py[co]
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   759
		-$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   760
		$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   761
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   762
# Install everything
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   763
install:	 altinstall bininstall maninstall 
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   764
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   765
# Install almost everything without disturbing previous versions
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   766
altinstall:	 altbininstall libinstall inclinstall libainstall \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   767
                sharedinstall oldsharedinstall 
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   768
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   769
# Install shared libraries enabled by Setup
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   770
DESTDIRS=	$(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   771
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   772
oldsharedinstall: $(DESTSHARED) $(SHAREDMODS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   773
		@for i in X $(SHAREDMODS); do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   774
		  if test $$i != X; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   775
		    echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   776
		    $(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   777
		  fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   778
		done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   779
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   780
$(DESTSHARED):
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   781
		@for i in $(DESTDIRS); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   782
		do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   783
			if test ! -d $(DESTDIR)$$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   784
				echo "Creating directory $$i"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   785
				$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   786
			else    true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   787
			fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   788
		done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   789
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   790
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   791
# Install the interpreter (by creating a hard link to python$(VERSION))
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   792
bininstall:	altbininstall
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   793
	-if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   794
	then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   795
	else true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   796
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   797
	(cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON))
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   798
	-rm -f $(DESTDIR)$(BINDIR)/python-config
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   799
	(cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python-config)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   800
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   801
# Install the interpreter with $(VERSION) affixed
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   802
# This goes into $(exec_prefix)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   803
altbininstall:	$(BUILDPYTHON)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   804
	@for i in $(BINDIR) $(LIBDIR); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   805
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   806
		if test ! -d $(DESTDIR)$$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   807
			echo "Creating directory $$i"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   808
			$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   809
		else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   810
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   811
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   812
	$(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   813
	if test -f $(LDLIBRARY); then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   814
		if test -n "$(DLLLIBRARY)" ; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   815
			$(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   816
		else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   817
			$(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   818
			if test $(LDLIBRARY) != $(INSTSONAME); then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   819
				(cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   820
			fi \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   821
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   822
	else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   823
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   824
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   825
# Install the manual page
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   826
maninstall:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   827
	@for i in $(MANDIR) $(MANDIR)/man1; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   828
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   829
		if test ! -d $(DESTDIR)$$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   830
			echo "Creating directory $$i"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   831
			$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   832
		else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   833
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   834
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   835
	$(INSTALL_DATA) $(srcdir)/Misc/python.man \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   836
		$(DESTDIR)$(MANDIR)/man1/python.1
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   837
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   838
# Install the library
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   839
PLATDIR=	plat-$(MACHDEP)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   840
EXTRAPLATDIR= 
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   841
EXTRAMACHDEPPATH=
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   842
MACHDEPS=	$(PLATDIR) $(EXTRAPLATDIR)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   843
XMLLIBSUBDIRS=  xml xml/dom xml/etree xml/parsers xml/sax
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   844
PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   845
	plat-mac/lib-scriptpackages/_builtinSuites \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   846
	plat-mac/lib-scriptpackages/CodeWarrior \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   847
	plat-mac/lib-scriptpackages/Explorer \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   848
	plat-mac/lib-scriptpackages/Finder \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   849
	plat-mac/lib-scriptpackages/Netscape \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   850
	plat-mac/lib-scriptpackages/StdSuites \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   851
	plat-mac/lib-scriptpackages/SystemEvents \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   852
	plat-mac/lib-scriptpackages/Terminal 
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   853
PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   854
LIBSUBDIRS=	lib-tk site-packages test test/output test/data \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   855
		test/decimaltestdata \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   856
		encodings compiler hotshot \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   857
		email email/mime email/test email/test/data \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   858
		json json/tests \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   859
		sqlite3 sqlite3/test \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   860
		logging bsddb bsddb/test csv wsgiref \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   861
		lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   862
		ctypes ctypes/test ctypes/macholib idlelib idlelib/Icons \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   863
		distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   864
		multiprocessing multiprocessing/dummy \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   865
		lib-old \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   866
		curses $(MACHDEPS)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   867
libinstall:	build_all $(srcdir)/Lib/$(PLATDIR)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   868
	@for i in $(SCRIPTDIR) $(LIBDEST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   869
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   870
		if test ! -d $(DESTDIR)$$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   871
			echo "Creating directory $$i"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   872
			$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   873
		else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   874
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   875
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   876
	@for d in $(LIBSUBDIRS); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   877
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   878
		a=$(srcdir)/Lib/$$d; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   879
		if test ! -d $$a; then continue; else true; fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   880
		b=$(LIBDEST)/$$d; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   881
		if test ! -d $(DESTDIR)$$b; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   882
			echo "Creating directory $$b"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   883
			$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   884
		else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   885
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   886
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   887
	@for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc $(srcdir)/Lib/*.egg-info ; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   888
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   889
		if test -x $$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   890
			$(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   891
			echo $(INSTALL_SCRIPT) $$i $(LIBDEST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   892
		else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   893
			$(INSTALL_DATA) $$i $(DESTDIR)$(LIBDEST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   894
			echo $(INSTALL_DATA) $$i $(LIBDEST); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   895
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   896
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   897
	@for d in $(LIBSUBDIRS); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   898
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   899
		a=$(srcdir)/Lib/$$d; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   900
		if test ! -d $$a; then continue; else true; fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   901
		if test `ls $$a | wc -l` -lt 1; then continue; fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   902
		b=$(LIBDEST)/$$d; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   903
		for i in $$a/*; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   904
		do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   905
			case $$i in \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   906
			*CVS) ;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   907
			*.py[co]) ;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   908
			*.orig) ;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   909
			*~) ;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   910
			*) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   911
				if test -d $$i; then continue; fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   912
				if test -x $$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   913
				    echo $(INSTALL_SCRIPT) $$i $$b; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   914
				    $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   915
				else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   916
				    echo $(INSTALL_DATA) $$i $$b; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   917
				    $(INSTALL_DATA) $$i $(DESTDIR)$$b; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   918
				fi;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   919
			esac; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   920
		done; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   921
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   922
	$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   923
	PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   924
		./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   925
		-d $(LIBDEST) -f \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   926
		-x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   927
	PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   928
		./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   929
		-d $(LIBDEST) -f \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   930
		-x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   931
	-PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   932
		./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   933
		-d $(LIBDEST)/site-packages -f \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   934
		-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   935
	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   936
		./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   937
		-d $(LIBDEST)/site-packages -f \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   938
		-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   939
	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   940
		./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   941
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   942
# Create the PLATDIR source directory, if one wasn't distributed..
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   943
$(srcdir)/Lib/$(PLATDIR):
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   944
	mkdir $(srcdir)/Lib/$(PLATDIR)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   945
	cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   946
	export PATH; PATH="`pwd`:$$PATH"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   947
	export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   948
	export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   949
	export EXE; EXE="$(BUILDEXE)"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   950
	cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   951
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   952
# Install the include files
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   953
INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   954
inclinstall:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   955
	@for i in $(INCLDIRSTOMAKE); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   956
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   957
		if test ! -d $(DESTDIR)$$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   958
			echo "Creating directory $$i"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   959
			$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   960
		else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   961
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   962
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   963
	@for i in $(srcdir)/Include/*.h; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   964
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   965
		echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   966
		$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   967
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   968
	$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   969
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   970
# Install the library and miscellaneous stuff needed for extending/embedding
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   971
# This goes into $(exec_prefix)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   972
LIBPL=		$(LIBP)/config
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   973
libainstall:	all
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   974
	@for i in $(LIBDIR) $(LIBP) $(LIBPL); \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   975
	do \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   976
		if test ! -d $(DESTDIR)$$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   977
			echo "Creating directory $$i"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   978
			$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   979
		else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   980
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   981
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   982
	@if test -d $(LIBRARY); then :; else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   983
		if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   984
			if test "$(SO)" = .dll; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   985
				$(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   986
			else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   987
				$(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   988
				$(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   989
			fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   990
		else \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   991
			echo Skip install of $(LIBRARY) - use make frameworkinstall; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   992
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   993
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   994
	$(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   995
	$(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   996
	$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   997
	$(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   998
	$(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   999
	$(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1000
	$(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1001
	$(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1002
	$(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1003
	# Substitution happens here, as the completely-expanded BINDIR
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1004
	# is not available in configure
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1005
	sed -e "s,@[email protected],$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1006
	$(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1007
	rm python-config
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1008
	@if [ -s Modules/python.exp -a \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1009
		"`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1010
		echo; echo "Installing support files for building shared extension modules on AIX:"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1011
		$(INSTALL_DATA) Modules/python.exp		\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1012
				$(DESTDIR)$(LIBPL)/python.exp;		\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1013
		echo; echo "$(LIBPL)/python.exp";		\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1014
		$(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1015
				$(DESTDIR)$(LIBPL)/makexp_aix;		\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1016
		echo "$(LIBPL)/makexp_aix";			\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1017
		$(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1018
				$(DESTDIR)$(LIBPL)/ld_so_aix;		\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1019
		echo "$(LIBPL)/ld_so_aix";			\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1020
		echo; echo "See Misc/AIX-NOTES for details.";	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1021
	else true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1022
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1023
	@case "$(MACHDEP)" in beos*) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1024
		echo; echo "Installing support files for building shared extension modules on BeOS:"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1025
		$(INSTALL_DATA) Misc/BeOS-NOTES $(DESTDIR)$(LIBPL)/README;	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1026
		echo; echo "$(LIBPL)/README";			\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1027
		$(INSTALL_SCRIPT) Modules/ar_beos $(DESTDIR)$(LIBPL)/ar_beos; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1028
		echo "$(LIBPL)/ar_beos";			\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1029
		$(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_beos; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1030
		echo "$(LIBPL)/ld_so_beos";			\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1031
		echo; echo "See Misc/BeOS-NOTES for details.";	\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1032
		;; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1033
	esac
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1034
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1035
# Install the dynamically loadable modules
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1036
# This goes into $(exec_prefix)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1037
sharedinstall:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1038
	$(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1039
	   	--prefix=$(prefix) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1040
		--install-scripts=$(BINDIR) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1041
		--install-platlib=$(DESTSHARED) \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1042
		--root=/$(DESTDIR)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1043
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1044
# Here are a couple of targets for MacOSX again, to install a full
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1045
# framework-based Python. frameworkinstall installs everything, the
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1046
# subtargets install specific parts. Much of the actual work is offloaded to
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1047
# the Makefile in Mac
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1048
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1049
#
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1050
# This target is here for backward compatiblity, previous versions of Python
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1051
# hadn't integrated framework installation in the normal install process.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1052
frameworkinstall: install
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1053
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1054
# On install, we re-make the framework
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1055
# structure in the install location, /Library/Frameworks/ or the argument to
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1056
# --enable-framework. If --enable-framework has been specified then we have
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1057
# automatically set prefix to the location deep down in the framework, so we
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1058
# only have to cater for the structural bits of the framework.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1059
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1060
frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1061
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1062
frameworkinstallstructure:	$(LDLIBRARY)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1063
	@if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1064
		echo Not configured with --enable-framework; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1065
		exit 1; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1066
	else true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1067
	fi
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1068
	@for i in $(prefix)/Resources/English.lproj $(prefix)/lib; do\
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1069
		if test ! -d $(DESTDIR)$$i; then \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1070
			echo "Creating directory $(DESTDIR)$$i"; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1071
			$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1072
		else	true; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1073
		fi; \
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1074
	done
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1075
	$(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1076
	sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(RESSRCDIR)/Info.plist > $(DESTDIR)$(prefix)/Resources/Info.plist
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1077
	$(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1078
	$(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAMEWORK)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1079
	$(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1080
	$(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1081
	$(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY)
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1082
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1083
# This installs Mac/Lib into the framework
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1084
# Install a number of symlinks to keep software that expects a normal unix
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1085
# install (which includes python-config) happy.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1086
frameworkinstallmaclib:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1087
	ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).a"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1088
	cd Mac && $(MAKE) installmacsubtree DESTDIR="$(DESTDIR)"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1089
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1090
# This installs the IDE, the Launcher and other apps into /Applications
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1091
frameworkinstallapps:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1092
	cd Mac && $(MAKE) installapps DESTDIR="$(DESTDIR)"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1093
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1094
frameworkinstallapps4way:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1095
	cd Mac && $(MAKE) installapps4way DESTDIR="$(DESTDIR)"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1096
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1097
# This install the unix python and pythonw tools in /usr/local/bin
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1098
frameworkinstallunixtools:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1099
	cd Mac && $(MAKE) installunixtools DESTDIR="$(DESTDIR)"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1100
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1101
frameworkinstallunixtools4way:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1102
	cd Mac && $(MAKE) installunixtools4way DESTDIR="$(DESTDIR)"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1103
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1104
frameworkaltinstallunixtools:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1105
	cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1106
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1107
frameworkaltinstallunixtools4way:
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1108
	cd Mac && $(MAKE) altinstallunixtools4way DESTDIR="$(DESTDIR)"
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1109
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1110
# This installs the Demos and Tools into the applications directory.
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
  1111
# It is not part of a normal frameworkinstall
2e044e9ef7de 7029500 Mercurial doesn't work through https in snv_161
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: