Mercurial > cpython-lru_cache-weakref
annotate Makefile.pre.in @ 79675:c0a2294de787 2.7
Issue #16199: Backport 2to3 typo fix from 3.2.
| author | Chris Jerdonek <chris.jerdonek@gmail.com> |
|---|---|
| date | Thu, 11 Oct 2012 16:15:46 -0700 |
| parents | 2def9ef683da |
| children | e0a2b14a3cf9 |
| rev | line source |
|---|---|
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1 # Top-level Makefile for Python |
|
19338
786aced937c5
Strip trailing whitespace, including two lines containing only one or
Guido van Rossum <guido@python.org>
parents:
19262
diff
changeset
|
2 # |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
3 # As distributed, this file is called Makefile.pre.in; it is processed |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
4 # into the real Makefile by running the script ./configure, which |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
5 # replaces things like @spam@ with values appropriate for your system. |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
6 # This means that if you edit Makefile, your changes get lost the next |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
7 # time you run the configure script. Ideally, you can do: |
|
19338
786aced937c5
Strip trailing whitespace, including two lines containing only one or
Guido van Rossum <guido@python.org>
parents:
19262
diff
changeset
|
8 # |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
9 # ./configure |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
10 # make |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
11 # make test |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
12 # make install |
|
19338
786aced937c5
Strip trailing whitespace, including two lines containing only one or
Guido van Rossum <guido@python.org>
parents:
19262
diff
changeset
|
13 # |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
14 # If you have a previous version of Python installed that you don't |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
15 # want to overwrite, you can use "make altinstall" instead of "make |
|
16628
c87e7017d66b
Remove confusing explaination about altinstall target and refer to
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16625
diff
changeset
|
16 # install". Refer to the "Installing" section in the README file for |
|
c87e7017d66b
Remove confusing explaination about altinstall target and refer to
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16625
diff
changeset
|
17 # additional details. |
|
19338
786aced937c5
Strip trailing whitespace, including two lines containing only one or
Guido van Rossum <guido@python.org>
parents:
19262
diff
changeset
|
18 # |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
19 # See also the section "Build instructions" in the README file. |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
20 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
21 # === Variables set by makesetup === |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
22 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
23 MODOBJS= _MODOBJS_ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
24 MODLIBS= _MODLIBS_ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
25 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
26 # === Variables set by configure |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
27 VERSION= @VERSION@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
28 srcdir= @srcdir@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
29 VPATH= @srcdir@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
30 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
31 CC= @CC@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
32 CXX= @CXX@ |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37447
diff
changeset
|
33 MAINCC= @MAINCC@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
34 LINKCC= @LINKCC@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
35 AR= @AR@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
36 RANLIB= @RANLIB@ |
|
36203
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
37 SVNVERSION= @SVNVERSION@ |
|
68281
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
38 HGVERSION= @HGVERSION@ |
|
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
39 HGTAG= @HGTAG@ |
|
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
40 HGBRANCH= @HGBRANCH@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
41 |
|
53937
ccfda14d1554
Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53888
diff
changeset
|
42 GNULD= @GNULD@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
43 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
44 # Shell used by make (some versions default to the login shell, which is bad) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
45 SHELL= /bin/sh |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
46 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
47 # Use this to make a link between python$(VERSION) and python in $(BINDIR) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
48 LN= @LN@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
49 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
50 # Portable install script (configure doesn't always guess right) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
51 INSTALL= @INSTALL@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
52 INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
|
17399
70763c4752e2
Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try to
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17360
diff
changeset
|
53 INSTALL_SCRIPT= @INSTALL_SCRIPT@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
54 INSTALL_DATA= @INSTALL_DATA@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
55 # Shared libraries must be installed with executable mode on some systems; |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
56 # rather than figuring out exactly which, we always give them executable mode. |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
57 # Also, making them read-only seems to be a good idea... |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
58 INSTALL_SHARED= ${INSTALL} -m 555 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
59 |
|
78812
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
60 MKDIR_P= @MKDIR_P@ |
|
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
61 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
62 MAKESETUP= $(srcdir)/Modules/makesetup |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
63 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
64 # Compiler options |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
65 OPT= @OPT@ |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26949
diff
changeset
|
66 BASECFLAGS= @BASECFLAGS@ |
|
59838
ef1f388f483f
Merged revisions 79218 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
57916
diff
changeset
|
67 CFLAGS= $(BASECFLAGS) @CFLAGS@ $(OPT) $(EXTRA_CFLAGS) |
|
34124
4e38ecd1912e
setup.py now uses the library directories specified in LDFLAGS (``-L``
Brett Cannon <bcannon@gmail.com>
parents:
33587
diff
changeset
|
68 # Both CPPFLAGS and LDFLAGS need to contain the shell's value for setup.py to |
|
4e38ecd1912e
setup.py now uses the library directories specified in LDFLAGS (``-L``
Brett Cannon <bcannon@gmail.com>
parents:
33587
diff
changeset
|
69 # be able to build extension modules using the directories specified in the |
|
4e38ecd1912e
setup.py now uses the library directories specified in LDFLAGS (``-L``
Brett Cannon <bcannon@gmail.com>
parents:
33587
diff
changeset
|
70 # environment variables |
|
43251
3c2a4f6accd5
Patch #786737: Allow building in a tree of symlinks pointing to
Martin v. Löwis <martin@v.loewis.de>
parents:
43248
diff
changeset
|
71 CPPFLAGS= -I. -IInclude -I$(srcdir)/Include @CPPFLAGS@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
72 LDFLAGS= @LDFLAGS@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
73 LDLAST= @LDLAST@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
74 SGI_ABI= @SGI_ABI@ |
|
16274
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
75 CCSHARED= @CCSHARED@ |
|
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
76 LINKFORSHARED= @LINKFORSHARED@ |
|
53888
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53539
diff
changeset
|
77 ARFLAGS= @ARFLAGS@ |
|
16274
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
78 # Extra C flags added for building the interpreter object files. |
|
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
79 CFLAGSFORSHARED=@CFLAGSFORSHARED@ |
|
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
80 # C flags used for building the interpreter object files |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24276
diff
changeset
|
81 PY_CFLAGS= $(CFLAGS) $(CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE |
|
16274
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
82 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
83 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
84 # Machine-dependent subdirectories |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
85 MACHDEP= @MACHDEP@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
86 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
87 # Install prefix for architecture-independent files |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
88 prefix= @prefix@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
89 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
90 # Install prefix for architecture-dependent files |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
91 exec_prefix= @exec_prefix@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
92 |
|
44188
1f722b085402
This is a backport of the fix in rev. 59369.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
43288
diff
changeset
|
93 # Install prefix for data files |
|
1f722b085402
This is a backport of the fix in rev. 59369.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
43288
diff
changeset
|
94 datarootdir= @datarootdir@ |
|
1f722b085402
This is a backport of the fix in rev. 59369.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
43288
diff
changeset
|
95 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
96 # Expanded directories |
|
59838
ef1f388f483f
Merged revisions 79218 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
57916
diff
changeset
|
97 BINDIR= @bindir@ |
|
ef1f388f483f
Merged revisions 79218 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
57916
diff
changeset
|
98 LIBDIR= @libdir@ |
|
18935
900e38524bf2
Take MANDIR and INCLUDEDIR from configure. Fixes bug #446671.
Martin v. Löwis <martin@v.loewis.de>
parents:
18933
diff
changeset
|
99 MANDIR= @mandir@ |
|
900e38524bf2
Take MANDIR and INCLUDEDIR from configure. Fixes bug #446671.
Martin v. Löwis <martin@v.loewis.de>
parents:
18933
diff
changeset
|
100 INCLUDEDIR= @includedir@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
101 CONFINCLUDEDIR= $(exec_prefix)/include |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
102 SCRIPTDIR= $(prefix)/lib |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
103 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
104 # Detailed destination directories |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
105 BINLIBDEST= $(LIBDIR)/python$(VERSION) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
106 LIBDEST= $(SCRIPTDIR)/python$(VERSION) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
107 INCLUDEPY= $(INCLUDEDIR)/python$(VERSION) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
108 CONFINCLUDEPY= $(CONFINCLUDEDIR)/python$(VERSION) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
109 LIBP= $(LIBDIR)/python$(VERSION) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
110 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
111 # Symbols used for using shared libraries |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
112 SO= @SO@ |
|
65210
ad15b89106de
Merged revisions 85353 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
64739
diff
changeset
|
113 LDSHARED= @LDSHARED@ $(LDFLAGS) |
|
ad15b89106de
Merged revisions 85353 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
64739
diff
changeset
|
114 BLDSHARED= @BLDSHARED@ $(LDFLAGS) |
|
60216
50b2c0fe5e27
Issue #1222585: Added LDCXXSHARED for C++ support
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
60181
diff
changeset
|
115 LDCXXSHARED= @LDCXXSHARED@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
116 DESTSHARED= $(BINLIBDEST)/lib-dynload |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
117 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
118 # Executable suffix (.exe on Windows and Mac OS X) |
|
16797
3c2142f076b4
Change EXEEXT back to EXE in the Makefile. Other tools may depend on the name.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16782
diff
changeset
|
119 EXE= @EXEEXT@ |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21183
diff
changeset
|
120 BUILDEXE= @BUILDEXEEXT@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
121 |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
122 # Short name and location for Mac OS X Python framework |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
123 UNIVERSALSDK=@UNIVERSALSDK@ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
124 PYTHONFRAMEWORK= @PYTHONFRAMEWORK@ |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
125 PYTHONFRAMEWORKDIR= @PYTHONFRAMEWORKDIR@ |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
126 PYTHONFRAMEWORKPREFIX= @PYTHONFRAMEWORKPREFIX@ |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
127 PYTHONFRAMEWORKINSTALLDIR= @PYTHONFRAMEWORKINSTALLDIR@ |
|
32218
fdf75eef6a5c
Partial fix for #887242 (link extensions with dynamic_lookup in stead
Jack Jansen <jack.jansen@cwi.nl>
parents:
32175
diff
changeset
|
128 # Deployment target selected during configure, to be checked |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
129 # by distutils. The export statement is needed to ensure that the |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
130 # deployment target is active during build. |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
131 MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
132 @EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
133 |
|
34828
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34465
diff
changeset
|
134 # Options to enable prebinding (for fast startup prior to Mac OS X 10.3) |
|
4f0838b68bbb
patch [1171735] - Darwin 8's headers disable functionality when
Bob Ippolito <bob@redivi.com>
parents:
34465
diff
changeset
|
135 OTHER_LIBTOOL_OPT=@OTHER_LIBTOOL_OPT@ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
136 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
137 # Environment to run shared python without installed libraries |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
138 RUNSHARED= @RUNSHARED@ |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
139 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
140 # Modes for directories, executables and data files created by the |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
141 # install process. Default to user-only-writable for all file types. |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
142 DIRMODE= 755 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
143 EXEMODE= 755 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
144 FILEMODE= 644 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
145 |
|
17121
646ec2a4d7f4
- Remove WITH makefile variable. Its not used for anything.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17056
diff
changeset
|
146 # configure script arguments |
|
646ec2a4d7f4
- Remove WITH makefile variable. Its not used for anything.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17056
diff
changeset
|
147 CONFIG_ARGS= @CONFIG_ARGS@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
148 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
149 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
150 # Subdirectories with code |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
151 SRCDIRS= @SRCDIRS@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
152 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
153 # Other subdirectories |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
154 SUBDIRSTOO= Include Lib Misc Demo |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
155 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
156 # Files and directories to be distributed |
|
75668
f5bf91af01ca
- rename configure.in to configure.ac
Matthias Klose <doko@ubuntu.com>
parents:
75102
diff
changeset
|
157 CONFIGFILES= configure configure.ac acconfig.h pyconfig.h.in Makefile.pre.in |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
158 DISTFILES= README ChangeLog $(CONFIGFILES) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
159 DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
160 DIST= $(DISTFILES) $(DISTDIRS) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
161 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
162 |
|
16274
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
163 LIBRARY= @LIBRARY@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
164 LDLIBRARY= @LDLIBRARY@ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
165 BLDLIBRARY= @BLDLIBRARY@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
166 DLLLIBRARY= @DLLLIBRARY@ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
167 LDLIBRARYDIR= @LDLIBRARYDIR@ |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
168 INSTSONAME= @INSTSONAME@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
169 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
170 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
171 LIBS= @LIBS@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
172 LIBM= @LIBM@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
173 LIBC= @LIBC@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
174 SYSLIBS= $(LIBM) $(LIBC) |
|
23777
bec1b942e0bc
Patch #488073: AtheOS port.
Martin v. Löwis <martin@v.loewis.de>
parents:
23457
diff
changeset
|
175 SHLIBS= @SHLIBS@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
176 |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22785
diff
changeset
|
177 THREADOBJ= @THREADOBJ@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
178 DLINCLDIR= @DLINCLDIR@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
179 DYNLOADFILE= @DYNLOADFILE@ |
|
18154
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
18047
diff
changeset
|
180 MACHDEP_OBJS= @MACHDEP_OBJS@ |
|
43826
ade58eb7c8c7
Patch #1418: Make the AC_REPLACE_FUNCS object files actually work.
Martin v. Löwis <martin@v.loewis.de>
parents:
43531
diff
changeset
|
181 LIBOBJDIR= Python/ |
|
ade58eb7c8c7
Patch #1418: Make the AC_REPLACE_FUNCS object files actually work.
Martin v. Löwis <martin@v.loewis.de>
parents:
43531
diff
changeset
|
182 LIBOBJS= @LIBOBJS@ |
|
19343
7257e87e0720
Patch #445762: Support --disable-unicode
Martin v. Löwis <martin@v.loewis.de>
parents:
19338
diff
changeset
|
183 UNICODE_OBJS= @UNICODE_OBJS@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
184 |
|
16797
3c2142f076b4
Change EXEEXT back to EXE in the Makefile. Other tools may depend on the name.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16782
diff
changeset
|
185 PYTHON= python$(EXE) |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21183
diff
changeset
|
186 BUILDPYTHON= python$(BUILDEXE) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
187 |
|
46415
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
188 # The task to run while instrument when building the profile-opt target |
|
49486
665fa05632f7
- Makefile.pre.in(PROFILE_TASK): search files in srcdir
Matthias Klose <doko@ubuntu.com>
parents:
49450
diff
changeset
|
189 PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck |
|
665fa05632f7
- Makefile.pre.in(PROFILE_TASK): search files in srcdir
Matthias Klose <doko@ubuntu.com>
parents:
49450
diff
changeset
|
190 #PROFILE_TASK= $(srcdir)/Lib/test/regrtest.py |
|
46415
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
191 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
192 # === Definitions added by makesetup === |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
193 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
194 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
195 ########################################################################## |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
196 # Modules |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
197 MODULE_OBJS= \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
198 Modules/config.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
199 Modules/getpath.o \ |
|
19574
26588d703530
Always compile gcmodule.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
19373
diff
changeset
|
200 Modules/main.o \ |
|
26588d703530
Always compile gcmodule.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
19373
diff
changeset
|
201 Modules/gcmodule.o |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
202 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
203 # Used of signalmodule.o is not available |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
204 SIGNAL_OBJS= @SIGNAL_OBJS@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
205 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
206 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
207 ########################################################################## |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
208 # Grammar |
|
78812
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
209 GRAMMAR_H= Include/graminit.h |
|
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
210 GRAMMAR_C= Python/graminit.c |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
211 GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
212 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
213 |
|
58064
f02881332342
use pkg-config to find the libffi headers when --with-system-ffi is used #6943
Benjamin Peterson <benjamin@python.org>
parents:
57915
diff
changeset
|
214 LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@ |
|
f02881332342
use pkg-config to find the libffi headers when --with-system-ffi is used #6943
Benjamin Peterson <benjamin@python.org>
parents:
57915
diff
changeset
|
215 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
216 ########################################################################## |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
217 # Parser |
|
16797
3c2142f076b4
Change EXEEXT back to EXE in the Makefile. Other tools may depend on the name.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16782
diff
changeset
|
218 PGEN= Parser/pgen$(EXE) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
219 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
220 POBJS= \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
221 Parser/acceler.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
222 Parser/grammar1.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
223 Parser/listnode.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
224 Parser/node.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
225 Parser/parser.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
226 Parser/parsetok.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
227 Parser/bitset.o \ |
|
28646
193b8aec00ce
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
Guido van Rossum <guido@python.org>
parents:
28466
diff
changeset
|
228 Parser/metagrammar.o \ |
|
193b8aec00ce
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
Guido van Rossum <guido@python.org>
parents:
28466
diff
changeset
|
229 Parser/firstsets.o \ |
|
193b8aec00ce
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
Guido van Rossum <guido@python.org>
parents:
28466
diff
changeset
|
230 Parser/grammar.o \ |
|
193b8aec00ce
Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to
Guido van Rossum <guido@python.org>
parents:
28466
diff
changeset
|
231 Parser/pgen.o |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
232 |
|
24539
06f1e2fd05bc
Patch #534304: Implement phase 1 of PEP 263.
Martin v. Löwis <martin@v.loewis.de>
parents:
24475
diff
changeset
|
233 PARSER_OBJS= $(POBJS) Parser/myreadline.o Parser/tokenizer.o |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
234 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
235 PGOBJS= \ |
|
23212
ef919d295a12
pgen now needs pymalloc
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
22847
diff
changeset
|
236 Objects/obmalloc.o \ |
|
21183
ac1357fd1aea
The parser now also needs to link with mysnprintf.o.
Guido van Rossum <guido@python.org>
parents:
21181
diff
changeset
|
237 Python/mysnprintf.o \ |
| 60322 | 238 Python/pyctype.o \ |
|
24539
06f1e2fd05bc
Patch #534304: Implement phase 1 of PEP 263.
Martin v. Löwis <martin@v.loewis.de>
parents:
24475
diff
changeset
|
239 Parser/tokenizer_pgen.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
240 Parser/printgrammar.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
241 Parser/pgenmain.o |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
242 |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
243 PARSER_HEADERS= \ |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
244 Parser/parser.h \ |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
245 Parser/tokenizer.h |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
246 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
247 PGENOBJS= $(PGENMAIN) $(POBJS) $(PGOBJS) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
248 |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
249 ########################################################################## |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
250 # AST |
|
78812
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
251 AST_H_DIR= Include |
|
37712
9bef1debcbaa
Patch #1355883: Build Python-ast.c and Python-ast.h
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
252 AST_H= $(AST_H_DIR)/Python-ast.h |
|
78812
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
253 AST_C_DIR= Python |
|
37712
9bef1debcbaa
Patch #1355883: Build Python-ast.c and Python-ast.h
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
254 AST_C= $(AST_C_DIR)/Python-ast.c |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
255 AST_ASDL= $(srcdir)/Parser/Python.asdl |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
256 |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
257 ASDLGEN_FILES= $(srcdir)/Parser/asdl.py $(srcdir)/Parser/asdl_c.py |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
258 # XXX Note that a build now requires Python exist before the build starts |
|
37712
9bef1debcbaa
Patch #1355883: Build Python-ast.c and Python-ast.h
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
259 ASDLGEN= $(srcdir)/Parser/asdl_c.py |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
260 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
261 ########################################################################## |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
262 # Python |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
263 PYTHON_OBJS= \ |
|
46414
840064802952
Re-implement the 'warnings' module in C. This allows for usage of the
Brett Cannon <bcannon@gmail.com>
parents:
46360
diff
changeset
|
264 Python/_warnings.o \ |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
265 Python/Python-ast.o \ |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
266 Python/asdl.o \ |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
267 Python/ast.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
268 Python/bltinmodule.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
269 Python/ceval.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
270 Python/compile.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
271 Python/codecs.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
272 Python/errors.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
273 Python/frozen.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
274 Python/frozenmain.o \ |
|
16799
08d937107fe6
Improved __future__ parser; still more to do
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16797
diff
changeset
|
275 Python/future.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
276 Python/getargs.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
277 Python/getcompiler.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
278 Python/getcopyright.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
279 Python/getplatform.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
280 Python/getversion.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
281 Python/graminit.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
282 Python/import.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
283 Python/importdl.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
284 Python/marshal.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
285 Python/modsupport.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
286 Python/mystrtoul.o \ |
|
18908
79c676f9b34a
This patch turns the Python API mismatch notice into a standard
Marc-André Lemburg <mal@egenix.com>
parents:
18835
diff
changeset
|
287 Python/mysnprintf.o \ |
|
39600
5e143944770b
Move peephole optimizer to separate file.
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
39314
diff
changeset
|
288 Python/peephole.o \ |
|
36065
ea083efdc96c
Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,
Neal Norwitz <nnorwitz@gmail.com>
parents:
36022
diff
changeset
|
289 Python/pyarena.o \ |
|
53539
4bdd847b57c2
Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors.
Eric Smith <eric@trueblade.com>
parents:
53355
diff
changeset
|
290 Python/pyctype.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
291 Python/pyfpe.o \ |
|
46473
5bc7b20dc04a
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
Christian Heimes <christian@cheimes.de>
parents:
46415
diff
changeset
|
292 Python/pymath.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
293 Python/pystate.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
294 Python/pythonrun.o \ |
|
75100
6b7704fe1be1
- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
Barry Warsaw <barry@python.org>
parents:
68255
diff
changeset
|
295 Python/random.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
296 Python/structmember.o \ |
|
16539
a47d93ef103a
Relax the rules for using 'from ... import *' and exec in the presence
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16464
diff
changeset
|
297 Python/symtable.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
298 Python/sysmodule.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
299 Python/traceback.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
300 Python/getopt.o \ |
|
44344
1d69aabf6f7f
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents:
44267
diff
changeset
|
301 Python/pystrcmp.o \ |
|
32305
13656d58d450
Patch #774665: Make Python LC_NUMERIC agnostic.
Martin v. Löwis <martin@v.loewis.de>
parents:
32218
diff
changeset
|
302 Python/pystrtod.o \ |
|
56700
2146bbdf4ed7
Issue #7117: Prepare for backport of py3k float repr.
Mark Dickinson <dickinsm@gmail.com>
parents:
56206
diff
changeset
|
303 Python/dtoa.o \ |
|
45381
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
304 Python/formatter_unicode.o \ |
|
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
305 Python/formatter_string.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
306 Python/$(DYNLOADFILE) \ |
|
43826
ade58eb7c8c7
Patch #1418: Make the AC_REPLACE_FUNCS object files actually work.
Martin v. Löwis <martin@v.loewis.de>
parents:
43531
diff
changeset
|
307 $(LIBOBJS) \ |
|
18154
d639a1e1f1f4
Added a MACHDEP_OBJS to the python link. Use this on MacOSX to include
Jack Jansen <jack.jansen@cwi.nl>
parents:
18047
diff
changeset
|
308 $(MACHDEP_OBJS) \ |
|
22847
f6093bac9fb6
Eliminate use of LIBOBJS which is an error in autoconf 2.53.
Martin v. Löwis <martin@v.loewis.de>
parents:
22785
diff
changeset
|
309 $(THREADOBJ) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
310 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
311 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
312 ########################################################################## |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
313 # Objects |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
314 OBJECT_OBJS= \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
315 Objects/abstract.o \ |
|
22785
aa8d59823add
Add the 'bool' type and its values 'False' and 'True', as described in
Guido van Rossum <guido@python.org>
parents:
22662
diff
changeset
|
316 Objects/boolobject.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
317 Objects/bufferobject.o \ |
|
46107
5341b30b1812
Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents:
45993
diff
changeset
|
318 Objects/bytes_methods.o \ |
|
47296
e9239ad7b8c0
Renamed bytesobject.c to bytearrayobject.c
Christian Heimes <christian@cheimes.de>
parents:
47294
diff
changeset
|
319 Objects/bytearrayobject.o \ |
|
59998
d11fbc796499
Backported PyCapsule from 3.1, and converted most uses of
Larry Hastings <larry@hastings.org>
parents:
59836
diff
changeset
|
320 Objects/capsule.o \ |
|
16256
07071872de3e
PEP 227 implementation
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16221
diff
changeset
|
321 Objects/cellobject.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
322 Objects/classobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
323 Objects/cobject.o \ |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
324 Objects/codeobject.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
325 Objects/complexobject.o \ |
|
18933
09df3254b49d
Merge of descr-branch back into trunk.
Tim Peters <tim.peters@gmail.com>
parents:
18908
diff
changeset
|
326 Objects/descrobject.o \ |
|
23285
afe263672fd8
- New builtin function enumerate(x), from PEP 279. Example:
Guido van Rossum <guido@python.org>
parents:
23212
diff
changeset
|
327 Objects/enumobject.o \ |
|
38431
4c0823f0a0a1
Conversion of exceptions over from faked-up classes to new-style C types.
Richard Jones <richard@commonground.com.au>
parents:
38349
diff
changeset
|
328 Objects/exceptions.o \ |
|
32175
8ee5a56b8031
Patch #957398: Add public API for Generator Object/Type.
Martin v. Löwis <martin@v.loewis.de>
parents:
31682
diff
changeset
|
329 Objects/genobject.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
330 Objects/fileobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
331 Objects/floatobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
332 Objects/frameobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
333 Objects/funcobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
334 Objects/intobject.o \ |
|
17597
32e7d0898eab
Iterators phase 1. This comprises:
Guido van Rossum <guido@python.org>
parents:
17559
diff
changeset
|
335 Objects/iterobject.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
336 Objects/listobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
337 Objects/longobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
338 Objects/dictobject.o \ |
|
52749
75efd757434b
Issue #2396: backport the memoryview object.
Antoine Pitrou <solipsis@pitrou.net>
parents:
52516
diff
changeset
|
339 Objects/memoryobject.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
340 Objects/methodobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
341 Objects/moduleobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
342 Objects/object.o \ |
|
22469
8d0061493c57
Build obmalloc.c directly instead of #include'ing from object.c.
Tim Peters <tim.peters@gmail.com>
parents:
22090
diff
changeset
|
343 Objects/obmalloc.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
344 Objects/rangeobject.o \ |
|
47567
e7a9eab363ad
Rename bytesobject.c back to stringobject.c to keep with the PyString theme.
Gregory P. Smith <greg@mad-scientist.com>
parents:
47527
diff
changeset
|
345 Objects/setobject.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
346 Objects/sliceobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
347 Objects/stringobject.o \ |
|
20539
2d599a36b67a
SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.
Guido van Rossum <guido@python.org>
parents:
20487
diff
changeset
|
348 Objects/structseq.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
349 Objects/tupleobject.o \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
350 Objects/typeobject.o \ |
|
20283
04f296f711df
Add dependencies for the weakref object.
Fred Drake <fdrake@acm.org>
parents:
20171
diff
changeset
|
351 Objects/weakrefobject.o \ |
|
19343
7257e87e0720
Patch #445762: Support --disable-unicode
Martin v. Löwis <martin@v.loewis.de>
parents:
19338
diff
changeset
|
352 $(UNICODE_OBJS) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
353 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
354 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
355 ########################################################################## |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
356 # objects that get linked into the Python library |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
357 LIBRARY_OBJS= \ |
|
16309
9663d5ebb646
- Fix buildno dependencies (I hope).
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16289
diff
changeset
|
358 Modules/getbuildinfo.o \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
359 $(PARSER_OBJS) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
360 $(OBJECT_OBJS) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
361 $(PYTHON_OBJS) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
362 $(MODULE_OBJS) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
363 $(SIGNAL_OBJS) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
364 $(MODOBJS) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
365 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
366 ######################################################################### |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
367 # Rules |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
368 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
369 # Default target |
|
43419
ec846ebab2ef
Issue1704287: "make install" fails unless you do "make" first. Make
Sean Reifscheider <jafo@tummy.com>
parents:
43295
diff
changeset
|
370 all: build_all |
|
60125
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
371 build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
372 |
|
46415
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
373 # Compile a binary with gcc profile guided optimization. |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
374 profile-opt: |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
375 @echo "Building with support for profile generation:" |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
376 $(MAKE) clean |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
377 $(MAKE) build_all_generate_profile |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
378 @echo "Running benchmark to generate profile data:" |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
379 $(MAKE) profile-removal |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
380 $(MAKE) run_profile_task |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
381 @echo "Rebuilding with profile guided optimizations:" |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
382 $(MAKE) clean |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
383 $(MAKE) build_all_use_profile |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
384 |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
385 build_all_generate_profile: |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
386 $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-generate" LIBS="$(LIBS) -lgcov" |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
387 |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
388 run_profile_task: |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
389 ./$(BUILDPYTHON) $(PROFILE_TASK) |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
390 |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
391 build_all_use_profile: |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
392 $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use" |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
393 |
|
47156
2e9f572b7322
GHOP #217: add support for compiling Python with coverage checking enabled.
Georg Brandl <georg@python.org>
parents:
47133
diff
changeset
|
394 coverage: |
|
2e9f572b7322
GHOP #217: add support for compiling Python with coverage checking enabled.
Georg Brandl <georg@python.org>
parents:
47133
diff
changeset
|
395 @echo "Building with support for coverage checking:" |
|
2e9f572b7322
GHOP #217: add support for compiling Python with coverage checking enabled.
Georg Brandl <georg@python.org>
parents:
47133
diff
changeset
|
396 $(MAKE) clean |
|
2e9f572b7322
GHOP #217: add support for compiling Python with coverage checking enabled.
Georg Brandl <georg@python.org>
parents:
47133
diff
changeset
|
397 $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov" |
|
2e9f572b7322
GHOP #217: add support for compiling Python with coverage checking enabled.
Georg Brandl <georg@python.org>
parents:
47133
diff
changeset
|
398 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
399 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
400 # Build the interpreter |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37447
diff
changeset
|
401 $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) |
|
16985
1a5a03e2da73
Move all knowledge that $(MAINOBJ) is built in the Modules/ directory
Fred Drake <fdrake@acm.org>
parents:
16974
diff
changeset
|
402 $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37447
diff
changeset
|
403 Modules/python.o \ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
404 $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
405 |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21183
diff
changeset
|
406 platform: $(BUILDPYTHON) |
|
58450
fa69e891edf4
taking sysconfig out of distutils
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
58288
diff
changeset
|
407 $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from sysconfig import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
408 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
409 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
410 # Build the shared modules |
|
78882
d19fa616b8fa
Fix for fcc629208842
Christian Heimes <christian@cheimes.de>
parents:
78867
diff
changeset
|
411 # MAKEFLAGS are sorted and normalized. Under GNU make the 's' for |
|
d19fa616b8fa
Fix for fcc629208842
Christian Heimes <christian@cheimes.de>
parents:
78867
diff
changeset
|
412 # -s, --silent or --quiet is always the first char. |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21183
diff
changeset
|
413 sharedmods: $(BUILDPYTHON) |
|
78882
d19fa616b8fa
Fix for fcc629208842
Christian Heimes <christian@cheimes.de>
parents:
78867
diff
changeset
|
414 @case "$$MAKEFLAGS" in \ |
|
d19fa616b8fa
Fix for fcc629208842
Christian Heimes <christian@cheimes.de>
parents:
78867
diff
changeset
|
415 s*) quiet="-q";; \ |
|
d19fa616b8fa
Fix for fcc629208842
Christian Heimes <christian@cheimes.de>
parents:
78867
diff
changeset
|
416 *) quiet="";; \ |
|
d19fa616b8fa
Fix for fcc629208842
Christian Heimes <christian@cheimes.de>
parents:
78867
diff
changeset
|
417 esac; \ |
|
78783
1a1d097b17e2
- Issue #15591: Fix parsing MAKEFLAGS in the sharedmods target.
Matthias Klose <doko@ubuntu.com>
parents:
78714
diff
changeset
|
418 $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ |
|
78882
d19fa616b8fa
Fix for fcc629208842
Christian Heimes <christian@cheimes.de>
parents:
78867
diff
changeset
|
419 ./$(BUILDPYTHON) -E $(srcdir)/setup.py $$quiet build |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
420 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
421 # Build static library |
|
17360
9621d0fbc2e5
Make on Alpha Tru64 5.1 (as installed on the SF compile farm) doesn't
Guido van Rossum <guido@python.org>
parents:
17121
diff
changeset
|
422 # avoid long command lines, same as LIBRARY_OBJS |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
423 $(LIBRARY): $(LIBRARY_OBJS) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
424 -rm -f $@ |
|
53888
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53539
diff
changeset
|
425 $(AR) $(ARFLAGS) $@ Modules/getbuildinfo.o |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53539
diff
changeset
|
426 $(AR) $(ARFLAGS) $@ $(PARSER_OBJS) |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53539
diff
changeset
|
427 $(AR) $(ARFLAGS) $@ $(OBJECT_OBJS) |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53539
diff
changeset
|
428 $(AR) $(ARFLAGS) $@ $(PYTHON_OBJS) |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53539
diff
changeset
|
429 $(AR) $(ARFLAGS) $@ $(MODULE_OBJS) $(SIGNAL_OBJS) |
|
9143d20d8b26
Fixed #5941: added ARFLAGS for the archiver command.
Tarek Ziadé <ziade.tarek@gmail.com>
parents:
53539
diff
changeset
|
430 $(AR) $(ARFLAGS) $@ $(MODOBJS) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
431 $(RANLIB) $@ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
432 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
433 libpython$(VERSION).so: $(LIBRARY_OBJS) |
|
29464
2cb8930ce225
Properly bracket variables. Fixes part of #749911.
Martin v. Löwis <martin@v.loewis.de>
parents:
29441
diff
changeset
|
434 if test $(INSTSONAME) != $(LDLIBRARY); then \ |
|
65210
ad15b89106de
Merged revisions 85353 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
64739
diff
changeset
|
435 $(BLDSHARED) -Wl,-h$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ |
|
28447
f0ad8fa88d7c
Use soname option when building a shared libpython. Fixes #701823.
Martin v. Löwis <martin@v.loewis.de>
parents:
28343
diff
changeset
|
436 $(LN) -f $(INSTSONAME) $@; \ |
|
50436
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
437 else \ |
|
65210
ad15b89106de
Merged revisions 85353 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
64739
diff
changeset
|
438 $(BLDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ |
|
28447
f0ad8fa88d7c
Use soname option when building a shared libpython. Fixes #701823.
Martin v. Löwis <martin@v.loewis.de>
parents:
28343
diff
changeset
|
439 fi |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
440 |
|
50436
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
441 libpython$(VERSION).dylib: $(LIBRARY_OBJS) |
|
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
442 $(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 $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \ |
|
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
443 |
|
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
444 |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
445 libpython$(VERSION).sl: $(LIBRARY_OBJS) |
|
65210
ad15b89106de
Merged revisions 85353 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
64739
diff
changeset
|
446 $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
447 |
|
60125
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
448 # Copy up the gdb python hooks into a position where they can be automatically |
|
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
449 # loaded by gdb during Lib/test/test_gdb.py |
|
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
450 # |
|
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
451 # Distributors are likely to want to install this somewhere else e.g. relative |
|
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
452 # to the stripped DWARF data for the shared library. |
|
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
453 gdbhooks: $(BUILDPYTHON)-gdb.py |
|
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
454 |
|
60355
c2b093d680cf
Ensure that the gdb hooks can be installed when
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
60338
diff
changeset
|
455 SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py |
|
60338
e6815e1b7502
Issue 8287: try to fix the gdb-python install errors on Solaris
R. David Murray <rdmurray@bitdance.com>
parents:
60322
diff
changeset
|
456 $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS) |
|
e6815e1b7502
Issue 8287: try to fix the gdb-python install errors on Solaris
R. David Murray <rdmurray@bitdance.com>
parents:
60322
diff
changeset
|
457 $(INSTALL_DATA) $(SRC_GDB_HOOKS) $(BUILDPYTHON)-gdb.py |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
458 |
|
24469
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
459 # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary |
|
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
460 # minimal framework (not including the Lib directory and such) in the current |
|
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
461 # directory. |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46473
diff
changeset
|
462 RESSRCDIR=Mac/Resources/framework |
|
24469
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
463 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \ |
|
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
464 $(LIBRARY) \ |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46473
diff
changeset
|
465 $(RESSRCDIR)/Info.plist |
|
21937
8298e9c535da
Two OSX fixes related to switching Python versions in an existing sourcetree:
Jack Jansen <jack.jansen@cwi.nl>
parents:
21748
diff
changeset
|
466 $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION) |
|
68452
bcca0a6ebbd2
Issue #1099: Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
68305
diff
changeset
|
467 $(CC) -o $(LDLIBRARY) $(LDFLAGS) -dynamiclib \ |
|
bcca0a6ebbd2
Issue #1099: Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
68305
diff
changeset
|
468 -all_load $(LIBRARY) -Wl,-single_module \ |
|
bcca0a6ebbd2
Issue #1099: Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
68305
diff
changeset
|
469 -install_name $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK) \ |
|
bcca0a6ebbd2
Issue #1099: Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
68305
diff
changeset
|
470 -compatibility_version $(VERSION) \ |
|
bcca0a6ebbd2
Issue #1099: Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
68305
diff
changeset
|
471 -current_version $(VERSION); |
|
24469
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
472 $(INSTALL) -d -m $(DIRMODE) \ |
|
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
473 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/English.lproj |
|
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
474 $(INSTALL_DATA) $(RESSRCDIR)/Info.plist \ |
|
79f129b073de
- Get _environ through the NSEnviron call in a MacOSX framework. This allows
Jack Jansen <jack.jansen@cwi.nl>
parents:
24440
diff
changeset
|
475 $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Resources/Info.plist |
|
24546
53f21f434956
Use the -n option of ln in stead of -h, as it also works with other ln's
Jack Jansen <jack.jansen@cwi.nl>
parents:
24539
diff
changeset
|
476 $(LN) -fsn $(VERSION) $(PYTHONFRAMEWORKDIR)/Versions/Current |
|
32709
846ace57389c
Don't hardcode "Python" as the framework name, we have a variable for it:
Jack Jansen <jack.jansen@cwi.nl>
parents:
32628
diff
changeset
|
477 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK) |
|
24546
53f21f434956
Use the -n option of ln in stead of -h, as it also works with other ln's
Jack Jansen <jack.jansen@cwi.nl>
parents:
24539
diff
changeset
|
478 $(LN) -fsn Versions/Current/Headers $(PYTHONFRAMEWORKDIR)/Headers |
|
53f21f434956
Use the -n option of ln in stead of -h, as it also works with other ln's
Jack Jansen <jack.jansen@cwi.nl>
parents:
24539
diff
changeset
|
479 $(LN) -fsn Versions/Current/Resources $(PYTHONFRAMEWORKDIR)/Resources |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
480 |
|
30310
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
29840
diff
changeset
|
481 # This rule builds the Cygwin Python DLL and import library if configured |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
29840
diff
changeset
|
482 # for a shared core library; otherwise, this rule is a noop. |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
29840
diff
changeset
|
483 $(DLLLIBRARY) libpython$(VERSION).dll.a: $(LIBRARY_OBJS) |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
29840
diff
changeset
|
484 if test -n "$(DLLLIBRARY)"; then \ |
|
65210
ad15b89106de
Merged revisions 85353 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
64739
diff
changeset
|
485 $(LDSHARED) -Wl,--out-implib=$@ -o $(DLLLIBRARY) $^ \ |
|
49263
c17770074a4b
Backport r66141 from trunk:
Gregory P. Smith <greg@mad-scientist.com>
parents:
44188
diff
changeset
|
486 $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST); \ |
|
30310
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
29840
diff
changeset
|
487 else true; \ |
|
74bc3493ce03
This patch enables the building of Cygwin Python with a static core
Jason Tishler <jason@tishler.net>
parents:
29840
diff
changeset
|
488 fi |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
489 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
490 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
491 oldsharedmods: $(SHAREDMODS) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
492 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
493 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
494 Makefile Modules/config.c: Makefile.pre \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
495 $(srcdir)/Modules/config.c.in \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
496 $(MAKESETUP) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
497 Modules/Setup.config \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
498 Modules/Setup \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
499 Modules/Setup.local |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
500 $(SHELL) $(MAKESETUP) -c $(srcdir)/Modules/config.c.in \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
501 -s Modules \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
502 Modules/Setup.config \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
503 Modules/Setup.local \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
504 Modules/Setup |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
505 @mv config.c Modules |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
506 @echo "The Makefile was updated, you may need to re-run make." |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
507 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
508 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
509 Modules/Setup: $(srcdir)/Modules/Setup.dist |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
510 @if test -f Modules/Setup; then \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
511 echo "-----------------------------------------------"; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
512 echo "Modules/Setup.dist is newer than Modules/Setup;"; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
513 echo "check to make sure you have all the updates you"; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
514 echo "need in your Modules/Setup file."; \ |
|
46926
622a25967228
make message slightly more informative, so there's no chance of misunderstanding it
Benjamin Peterson <benjamin@python.org>
parents:
46921
diff
changeset
|
515 echo "Usually, copying Modules/Setup.dist to Modules/Setup will work."; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
516 echo "-----------------------------------------------"; \ |
|
16274
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
517 fi |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
518 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
519 ############################################################################ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
520 # Special rules for object files |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
521 |
|
36203
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
522 Modules/getbuildinfo.o: $(PARSER_OBJS) \ |
|
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
523 $(OBJECT_OBJS) \ |
|
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
524 $(PYTHON_OBJS) \ |
|
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
525 $(MODULE_OBJS) \ |
|
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
526 $(SIGNAL_OBJS) \ |
|
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
527 $(MODOBJS) \ |
|
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
528 $(srcdir)/Modules/getbuildinfo.c |
|
68281
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
529 $(CC) -c $(PY_CFLAGS) \ |
|
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
530 -DSVNVERSION="\"`LC_ALL=C $(SVNVERSION)`\"" \ |
|
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
531 -DHGVERSION="\"`LC_ALL=C $(HGVERSION)`\"" \ |
|
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
532 -DHGTAG="\"`LC_ALL=C $(HGTAG)`\"" \ |
|
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
533 -DHGBRANCH="\"`LC_ALL=C $(HGBRANCH)`\"" \ |
|
ce93b75add15
Port build identification from default branch.
Georg Brandl <georg@python.org>
parents:
68256
diff
changeset
|
534 -o $@ $(srcdir)/Modules/getbuildinfo.c |
|
16289
93ba33dc333a
Remaining single-line change from patch #102409: to install shared modules,
Andrew M. Kuchling <amk@amk.ca>
parents:
16274
diff
changeset
|
535 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
536 Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile |
|
16274
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
537 $(CC) -c $(PY_CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \ |
|
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
538 -DPREFIX='"$(prefix)"' \ |
|
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
539 -DEXEC_PREFIX='"$(exec_prefix)"' \ |
|
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
540 -DVERSION='"$(VERSION)"' \ |
|
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
541 -DVPATH='"$(VPATH)"' \ |
|
16331
24e8c69cd34d
Don't use $< in normal make rules: it's not portable. Using $< in
Sjoerd Mullender <sjoerd@acm.org>
parents:
16309
diff
changeset
|
542 -o $@ $(srcdir)/Modules/getpath.c |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
543 |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37447
diff
changeset
|
544 Modules/python.o: $(srcdir)/Modules/python.c |
|
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37447
diff
changeset
|
545 $(MAINCC) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/python.c |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
546 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
547 |
|
67316
78de3a7fb896
Merged revisions 84068,87558 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
65309
diff
changeset
|
548 # Use a stamp file to prevent make -j invoking pgen twice |
|
78de3a7fb896
Merged revisions 84068,87558 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
65309
diff
changeset
|
549 $(GRAMMAR_H) $(GRAMMAR_C): Parser/pgen.stamp |
|
78de3a7fb896
Merged revisions 84068,87558 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
65309
diff
changeset
|
550 Parser/pgen.stamp: $(PGEN) $(GRAMMAR_INPUT) |
|
43531
bf1014448c41
Get rid of warning about not being able to create an existing directory.
Neal Norwitz <nnorwitz@gmail.com>
parents:
43419
diff
changeset
|
551 -@$(INSTALL) -d Include |
|
67316
78de3a7fb896
Merged revisions 84068,87558 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
65309
diff
changeset
|
552 $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) |
|
78de3a7fb896
Merged revisions 84068,87558 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
65309
diff
changeset
|
553 -touch Parser/pgen.stamp |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
554 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
555 $(PGEN): $(PGENOBJS) |
|
29840
06cca327bacd
Patch #770245: Pass LDFLAGS to pgen creation.
Martin v. Löwis <martin@v.loewis.de>
parents:
29759
diff
changeset
|
556 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
557 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
558 Parser/grammar.o: $(srcdir)/Parser/grammar.c \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
559 $(srcdir)/Include/token.h \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
560 $(srcdir)/Include/grammar.h |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
561 Parser/metagrammar.o: $(srcdir)/Parser/metagrammar.c |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
562 |
|
24539
06f1e2fd05bc
Patch #534304: Implement phase 1 of PEP 263.
Martin v. Löwis <martin@v.loewis.de>
parents:
24475
diff
changeset
|
563 Parser/tokenizer_pgen.o: $(srcdir)/Parser/tokenizer.c |
|
06f1e2fd05bc
Patch #534304: Implement phase 1 of PEP 263.
Martin v. Löwis <martin@v.loewis.de>
parents:
24475
diff
changeset
|
564 |
|
40610
2c571f6ce23a
add parsetok.h as a dependency - previously, changing this file doesn't
Anthony Baxter <anthonybaxter@gmail.com>
parents:
40435
diff
changeset
|
565 Parser/pgenmain.o: $(srcdir)/Include/parsetok.h |
|
2c571f6ce23a
add parsetok.h as a dependency - previously, changing this file doesn't
Anthony Baxter <anthonybaxter@gmail.com>
parents:
40435
diff
changeset
|
566 |
|
37712
9bef1debcbaa
Patch #1355883: Build Python-ast.c and Python-ast.h
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
567 $(AST_H): $(AST_ASDL) $(ASDLGEN_FILES) |
|
78812
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
568 $(MKDIR_P) $(AST_H_DIR) |
|
37712
9bef1debcbaa
Patch #1355883: Build Python-ast.c and Python-ast.h
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
569 $(ASDLGEN) -h $(AST_H_DIR) $(AST_ASDL) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
570 |
|
37712
9bef1debcbaa
Patch #1355883: Build Python-ast.c and Python-ast.h
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
571 $(AST_C): $(AST_ASDL) $(ASDLGEN_FILES) |
|
78812
2dde5a7439fd
Issue #15819: Fix out-of-tree builds from a readonly source.
Trent Nelson <trent@trent.me>
parents:
78789
diff
changeset
|
572 $(MKDIR_P) $(AST_C_DIR) |
|
37712
9bef1debcbaa
Patch #1355883: Build Python-ast.c and Python-ast.h
Martin v. Löwis <martin@v.loewis.de>
parents:
37709
diff
changeset
|
573 $(ASDLGEN) -c $(AST_C_DIR) $(AST_ASDL) |
|
39226
28cdd43e0569
Patch #1520294: Support for getset and member descriptors in types.py,
Barry Warsaw <barry@python.org>
parents:
39180
diff
changeset
|
574 |
|
54644
5177b6780cb7
make ast.c depend on the grammar
Benjamin Peterson <benjamin@python.org>
parents:
54633
diff
changeset
|
575 Python/compile.o Python/symtable.o Python/ast.o: $(GRAMMAR_H) $(AST_H) |
|
16774
3839f0aa1e7c
Add missing dependents of graminit.h.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16773
diff
changeset
|
576 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
577 Python/getplatform.o: $(srcdir)/Python/getplatform.c |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24276
diff
changeset
|
578 $(CC) -c $(PY_CFLAGS) -DPLATFORM='"$(MACHDEP)"' -o $@ $(srcdir)/Python/getplatform.c |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
579 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
580 Python/importdl.o: $(srcdir)/Python/importdl.c |
|
24315
a8df0c0be242
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Mark Hammond <mhammond@skippinet.com.au>
parents:
24276
diff
changeset
|
581 $(CC) -c $(PY_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
582 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
583 Objects/unicodectype.o: $(srcdir)/Objects/unicodectype.c \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
584 $(srcdir)/Objects/unicodetype_db.h |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
585 |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
586 STRINGLIB_HEADERS= \ |
|
46107
5341b30b1812
Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents:
45993
diff
changeset
|
587 $(srcdir)/Include/bytes_methods.h \ |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
588 $(srcdir)/Objects/stringlib/count.h \ |
|
46107
5341b30b1812
Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents:
45993
diff
changeset
|
589 $(srcdir)/Objects/stringlib/ctype.h \ |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
590 $(srcdir)/Objects/stringlib/fastsearch.h \ |
|
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
591 $(srcdir)/Objects/stringlib/find.h \ |
|
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
592 $(srcdir)/Objects/stringlib/formatter.h \ |
|
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
593 $(srcdir)/Objects/stringlib/partition.h \ |
|
58288
66f1d4a4c799
Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
Antoine Pitrou <solipsis@pitrou.net>
parents:
58064
diff
changeset
|
594 $(srcdir)/Objects/stringlib/split.h \ |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
595 $(srcdir)/Objects/stringlib/stringdefs.h \ |
|
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
596 $(srcdir)/Objects/stringlib/string_format.h \ |
|
46107
5341b30b1812
Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents:
45993
diff
changeset
|
597 $(srcdir)/Objects/stringlib/transmogrify.h \ |
|
46898
206700d749f0
Addresses issue 2802: 'n' formatting for integers.
Eric Smith <eric@trueblade.com>
parents:
46626
diff
changeset
|
598 $(srcdir)/Objects/stringlib/unicodedefs.h \ |
|
206700d749f0
Addresses issue 2802: 'n' formatting for integers.
Eric Smith <eric@trueblade.com>
parents:
46626
diff
changeset
|
599 $(srcdir)/Objects/stringlib/localeutil.h |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
600 |
|
45381
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
601 Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \ |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
602 $(STRINGLIB_HEADERS) |
|
45381
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
603 |
|
50788
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
50522
diff
changeset
|
604 Objects/bytearrayobject.o: $(srcdir)/Objects/bytearrayobject.c \ |
|
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
50522
diff
changeset
|
605 $(STRINGLIB_HEADERS) |
|
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
50522
diff
changeset
|
606 |
|
45396
3ee77959857a
Added dependencies for stringobject.o. This should fix failing tests in test_unicode.py.
Eric Smith <eric@trueblade.com>
parents:
45381
diff
changeset
|
607 Objects/stringobject.o: $(srcdir)/Objects/stringobject.c \ |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
608 $(STRINGLIB_HEADERS) |
|
45396
3ee77959857a
Added dependencies for stringobject.o. This should fix failing tests in test_unicode.py.
Eric Smith <eric@trueblade.com>
parents:
45381
diff
changeset
|
609 |
|
45381
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
610 Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \ |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
611 $(STRINGLIB_HEADERS) |
|
45381
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
612 |
|
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
613 Python/formatter_string.o: $(srcdir)/Python/formatter_string.c \ |
|
45510
7129372f533f
Added dependency rules for Objects/stringlib/*.h
Christian Heimes <christian@cheimes.de>
parents:
45396
diff
changeset
|
614 $(STRINGLIB_HEADERS) |
|
45381
b7231bf6bfb7
Backport of PEP 3101, Advanced String Formatting, from py3k.
Eric Smith <eric@trueblade.com>
parents:
45041
diff
changeset
|
615 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
616 ############################################################################ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
617 # Header files |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
618 |
|
16258
f494ca0a2b34
Make module objects from Setup depend on Python.h headers.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16256
diff
changeset
|
619 PYTHON_HEADERS= \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
620 Include/Python-ast.h \ |
|
16258
f494ca0a2b34
Make module objects from Setup depend on Python.h headers.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16256
diff
changeset
|
621 Include/Python.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
622 Include/abstract.h \ |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
623 Include/asdl.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
624 Include/ast.h \ |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
625 Include/bitset.h \ |
|
22785
aa8d59823add
Add the 'bool' type and its values 'False' and 'True', as described in
Guido van Rossum <guido@python.org>
parents:
22662
diff
changeset
|
626 Include/boolobject.h \ |
|
50788
e11c99e1e6e7
Merged revisions 68521,68527,68534-68536,68540,68547,68552,68563,68570,68572,68575,68579-68580,68584 via svnmerge from
Georg Brandl <georg@python.org>
parents:
50522
diff
changeset
|
627 Include/bytearrayobject.h \ |
|
46107
5341b30b1812
Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents:
45993
diff
changeset
|
628 Include/bytes_methods.h \ |
|
5341b30b1812
Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents:
45993
diff
changeset
|
629 Include/bytesobject.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
630 Include/bufferobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
631 Include/cellobject.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
632 Include/ceval.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
633 Include/classobject.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
634 Include/cobject.h \ |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
35698
diff
changeset
|
635 Include/code.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
636 Include/codecs.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
637 Include/compile.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
638 Include/complexobject.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
639 Include/descrobject.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
640 Include/dictobject.h \ |
|
56700
2146bbdf4ed7
Issue #7117: Prepare for backport of py3k float repr.
Mark Dickinson <dickinsm@gmail.com>
parents:
56206
diff
changeset
|
641 Include/dtoa.h \ |
|
23285
afe263672fd8
- New builtin function enumerate(x), from PEP 279. Example:
Guido van Rossum <guido@python.org>
parents:
23212
diff
changeset
|
642 Include/enumobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
643 Include/errcode.h \ |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
644 Include/eval.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
645 Include/fileobject.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
646 Include/floatobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
647 Include/frameobject.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
648 Include/funcobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
649 Include/genobject.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
650 Include/import.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
651 Include/intobject.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
652 Include/intrcheck.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
653 Include/iterobject.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
654 Include/listobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
655 Include/longintrepr.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
656 Include/longobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
657 Include/marshal.h \ |
|
52749
75efd757434b
Issue #2396: backport the memoryview object.
Antoine Pitrou <solipsis@pitrou.net>
parents:
52516
diff
changeset
|
658 Include/memoryobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
659 Include/metagrammar.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
660 Include/methodobject.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
661 Include/modsupport.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
662 Include/moduleobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
663 Include/node.h \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
664 Include/object.h \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
665 Include/objimpl.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
666 Include/opcode.h \ |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
667 Include/osdefs.h \ |
|
40610
2c571f6ce23a
add parsetok.h as a dependency - previously, changing this file doesn't
Anthony Baxter <anthonybaxter@gmail.com>
parents:
40435
diff
changeset
|
668 Include/parsetok.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
669 Include/patchlevel.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
670 Include/pgen.h \ |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
671 Include/pgenheaders.h \ |
|
36065
ea083efdc96c
Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,
Neal Norwitz <nnorwitz@gmail.com>
parents:
36022
diff
changeset
|
672 Include/pyarena.h \ |
|
59998
d11fbc796499
Backported PyCapsule from 3.1, and converted most uses of
Larry Hastings <larry@hastings.org>
parents:
59836
diff
changeset
|
673 Include/pycapsule.h \ |
|
53539
4bdd847b57c2
Issue #5793: rationalize isdigit / isalpha / tolower, etc. Will port to py3k. Should fix Windows buildbot errors.
Eric Smith <eric@trueblade.com>
parents:
53355
diff
changeset
|
674 Include/pyctype.h \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
675 Include/pydebug.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
676 Include/pyerrors.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
677 Include/pyfpe.h \ |
|
46473
5bc7b20dc04a
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.
Christian Heimes <christian@cheimes.de>
parents:
46415
diff
changeset
|
678 Include/pymath.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
679 Include/pygetopt.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
680 Include/pymem.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
681 Include/pyport.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
682 Include/pystate.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
683 Include/pystrcmp.h \ |
|
44344
1d69aabf6f7f
Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
Christian Heimes <christian@cheimes.de>
parents:
44267
diff
changeset
|
684 Include/pystrtod.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
685 Include/pythonrun.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
686 Include/pythread.h \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
687 Include/rangeobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
688 Include/setobject.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
689 Include/sliceobject.h \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
690 Include/stringobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
691 Include/structmember.h \ |
|
20539
2d599a36b67a
SF patch #462296: Add attributes to os.stat results; by Nick Mathewson.
Guido van Rossum <guido@python.org>
parents:
20487
diff
changeset
|
692 Include/structseq.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
693 Include/symtable.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
694 Include/sysmodule.h \ |
|
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
695 Include/traceback.h \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
696 Include/tupleobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
697 Include/ucnhash.h \ |
|
19954
84af1dd011ee
Sort the headers in PYTHON_HEADERS alphabetically. Add
Guido van Rossum <guido@python.org>
parents:
19888
diff
changeset
|
698 Include/unicodeobject.h \ |
|
46414
840064802952
Re-implement the 'warnings' module in C. This allows for usage of the
Brett Cannon <bcannon@gmail.com>
parents:
46360
diff
changeset
|
699 Include/warnings.h \ |
|
20283
04f296f711df
Add dependencies for the weakref object.
Fred Drake <fdrake@acm.org>
parents:
20171
diff
changeset
|
700 Include/weakrefobject.h \ |
|
44835
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
701 pyconfig.h \ |
|
9411b1b91218
A bunch of header files were not listed as dependencies for object files. Changes to files like Parser/parser.h weren't picked up by make.
Christian Heimes <christian@cheimes.de>
parents:
44344
diff
changeset
|
702 $(PARSER_HEADERS) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
703 |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37447
diff
changeset
|
704 $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS) |
|
16258
f494ca0a2b34
Make module objects from Setup depend on Python.h headers.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16256
diff
changeset
|
705 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
706 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
707 ###################################################################### |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
708 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
709 # Test the interpreter (twice, once without .pyc files, once with) |
|
28992
b3702b683f2a
add Guido's reasoning behind running all tests twice
Skip Montanaro <skip@pobox.com>
parents:
28990
diff
changeset
|
710 # In the past, we've had problems where bugs in the marshalling or |
|
b3702b683f2a
add Guido's reasoning behind running all tests twice
Skip Montanaro <skip@pobox.com>
parents:
28990
diff
changeset
|
711 # elsewhere caused bytecode read from .pyc files to behave differently |
|
b3702b683f2a
add Guido's reasoning behind running all tests twice
Skip Montanaro <skip@pobox.com>
parents:
28990
diff
changeset
|
712 # than bytecode generated directly from a .py source file. Sometimes |
|
60117
25a7ce02306c
Add -Wd and -3 to the flags used to run the tests.
Ezio Melotti <ezio.melotti@gmail.com>
parents:
60031
diff
changeset
|
713 # the bytecode read from a .pyc file had the bug, sometimes the directly |
|
28992
b3702b683f2a
add Guido's reasoning behind running all tests twice
Skip Montanaro <skip@pobox.com>
parents:
28990
diff
changeset
|
714 # generated bytecode. This is sometimes a very shy bug needing a lot of |
|
b3702b683f2a
add Guido's reasoning behind running all tests twice
Skip Montanaro <skip@pobox.com>
parents:
28990
diff
changeset
|
715 # sample data. |
|
b3702b683f2a
add Guido's reasoning behind running all tests twice
Skip Montanaro <skip@pobox.com>
parents:
28990
diff
changeset
|
716 |
|
36644
81f1b0ddc8a1
Allow buildbot to pass extra test flags to regrtest (specifically -r) via the environment.
Neal Norwitz <nnorwitz@gmail.com>
parents:
36204
diff
changeset
|
717 TESTOPTS= -l $(EXTRATESTOPTS) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
718 TESTPROG= $(srcdir)/Lib/test/regrtest.py |
|
65309
813b51a6a417
Merged revisions 85472 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
65210
diff
changeset
|
719 TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -Wd -3 -E -tt $(TESTPYTHONOPTS) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
720 test: all platform |
| 16877 | 721 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
|
18808
a8b1acc7a21f
Add -E command line switch (ignore environment variables like PYTHONHOME
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
18738
diff
changeset
|
722 -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) |
|
a8b1acc7a21f
Add -E command line switch (ignore environment variables like PYTHONHOME
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
18738
diff
changeset
|
723 $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
724 |
|
28990
493fd7e52206
add testall target - just adds -uall to the regrtest runs
Skip Montanaro <skip@pobox.com>
parents:
28646
diff
changeset
|
725 testall: all platform |
|
493fd7e52206
add testall target - just adds -uall to the regrtest runs
Skip Montanaro <skip@pobox.com>
parents:
28646
diff
changeset
|
726 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
|
44956
851030162d72
Make 'testall' work again when building in a separate directory.
Thomas Wouters <thomas@python.org>
parents:
44867
diff
changeset
|
727 $(TESTPYTHON) $(srcdir)/Lib/compileall.py |
|
43945
2fd7c9111632
Final fix for #1403
Christian Heimes <christian@cheimes.de>
parents:
43826
diff
changeset
|
728 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
|
60532
a29291ce4fce
Merged revisions 79982 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
59838
diff
changeset
|
729 -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) |
|
a29291ce4fce
Merged revisions 79982 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
59838
diff
changeset
|
730 $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) |
|
28990
493fd7e52206
add testall target - just adds -uall to the regrtest runs
Skip Montanaro <skip@pobox.com>
parents:
28646
diff
changeset
|
731 |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
732 # Run the unitests for both architectures in a Universal build on OSX |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
733 # Must be run on an Intel box. |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
734 testuniversal: all platform |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
735 if [ `arch` != 'i386' ];then \ |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
736 echo "This can only be used on OSX/i386" ;\ |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
737 exit 1 ;\ |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
738 fi |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
739 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
|
60532
a29291ce4fce
Merged revisions 79982 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
59838
diff
changeset
|
740 -$(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) |
|
a29291ce4fce
Merged revisions 79982 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
59838
diff
changeset
|
741 $(TESTPYTHON) $(TESTPROG) -uall $(TESTOPTS) |
|
a29291ce4fce
Merged revisions 79982 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
59838
diff
changeset
|
742 $(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) -uall $(TESTOPTS) |
|
38040
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
743 |
|
36c7a4422e30
Patch 1471883: --enable-universalsdk on Mac OS X
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
37852
diff
changeset
|
744 |
|
36964
7eb2c0f0d0fd
Let the buildbot make a single pass in the test suite only.
Martin v. Löwis <martin@v.loewis.de>
parents:
36898
diff
changeset
|
745 # Like testall, but with a single pass only |
|
43248
5fd0451e7406
- Makefile.pre.in(buildbottest): Run an optional script pybuildbot.identify
Matthias Klose <doko@ubuntu.com>
parents:
42158
diff
changeset
|
746 # run an optional script to include some information about the build environment |
|
38521
badc1737dc80
Revert last checkin, it is better to do make distclean
Neal Norwitz <nnorwitz@gmail.com>
parents:
38509
diff
changeset
|
747 buildbottest: all platform |
|
43248
5fd0451e7406
- Makefile.pre.in(buildbottest): Run an optional script pybuildbot.identify
Matthias Klose <doko@ubuntu.com>
parents:
42158
diff
changeset
|
748 -@if which pybuildbot.identify >/dev/null 2>&1; then \ |
|
5fd0451e7406
- Makefile.pre.in(buildbottest): Run an optional script pybuildbot.identify
Matthias Klose <doko@ubuntu.com>
parents:
42158
diff
changeset
|
749 pybuildbot.identify "CC='$(CC)'" "CXX='$(CXX)'"; \ |
|
5fd0451e7406
- Makefile.pre.in(buildbottest): Run an optional script pybuildbot.identify
Matthias Klose <doko@ubuntu.com>
parents:
42158
diff
changeset
|
750 fi |
|
75102
a0f43f4481e0
merge 2.6 with hash randomization fix
Benjamin Peterson <benjamin@python.org>
diff
changeset
|
751 $(TESTPYTHON) -R $(TESTPROG) -uall -rwW $(TESTOPTS) |
|
36964
7eb2c0f0d0fd
Let the buildbot make a single pass in the test suite only.
Martin v. Löwis <martin@v.loewis.de>
parents:
36898
diff
changeset
|
752 |
|
52516
6f460b7acf8f
Update quicktest to match Python 3 branch
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
51803
diff
changeset
|
753 QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \ |
|
6f460b7acf8f
Update quicktest to match Python 3 branch
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
51803
diff
changeset
|
754 test_multibytecodec test_urllib2_localnet test_itertools \ |
|
6f460b7acf8f
Update quicktest to match Python 3 branch
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
51803
diff
changeset
|
755 test_multiprocessing test_mailbox test_socket test_poll \ |
|
6f460b7acf8f
Update quicktest to match Python 3 branch
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
51803
diff
changeset
|
756 test_select test_zipfile |
|
16392
2ecceb9d87f5
add quicktest target -- runs test suite except for the eight slowest tests
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16349
diff
changeset
|
757 quicktest: all platform |
| 16877 | 758 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
|
18808
a8b1acc7a21f
Add -E command line switch (ignore environment variables like PYTHONHOME
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
18738
diff
changeset
|
759 -$(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS) |
|
a8b1acc7a21f
Add -E command line switch (ignore environment variables like PYTHONHOME
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
18738
diff
changeset
|
760 $(TESTPYTHON) $(TESTPROG) $(QUICKTESTOPTS) |
|
16392
2ecceb9d87f5
add quicktest target -- runs test suite except for the eight slowest tests
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16349
diff
changeset
|
761 |
|
16974
2dfee333a651
Added `memtest' target which excludes the quicktest modules plus
Barry Warsaw <barry@python.org>
parents:
16877
diff
changeset
|
762 MEMTESTOPTS= $(QUICKTESTOPTS) -x test_dl test___all__ test_fork1 \ |
|
2dfee333a651
Added `memtest' target which excludes the quicktest modules plus
Barry Warsaw <barry@python.org>
parents:
16877
diff
changeset
|
763 test_longexp |
|
2dfee333a651
Added `memtest' target which excludes the quicktest modules plus
Barry Warsaw <barry@python.org>
parents:
16877
diff
changeset
|
764 memtest: all platform |
|
2dfee333a651
Added `memtest' target which excludes the quicktest modules plus
Barry Warsaw <barry@python.org>
parents:
16877
diff
changeset
|
765 -rm -f $(srcdir)/Lib/test/*.py[co] |
|
18808
a8b1acc7a21f
Add -E command line switch (ignore environment variables like PYTHONHOME
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
18738
diff
changeset
|
766 -$(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS) |
|
a8b1acc7a21f
Add -E command line switch (ignore environment variables like PYTHONHOME
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
18738
diff
changeset
|
767 $(TESTPYTHON) $(TESTPROG) $(MEMTESTOPTS) |
|
16974
2dfee333a651
Added `memtest' target which excludes the quicktest modules plus
Barry Warsaw <barry@python.org>
parents:
16877
diff
changeset
|
768 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
769 # Install everything |
|
38349
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38176
diff
changeset
|
770 install: @FRAMEWORKINSTALLFIRST@ altinstall bininstall maninstall @FRAMEWORKINSTALLLAST@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
771 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
772 # Install almost everything without disturbing previous versions |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38521
diff
changeset
|
773 altinstall: @FRAMEWORKALTINSTALLFIRST@ altbininstall libinstall inclinstall libainstall \ |
|
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38521
diff
changeset
|
774 sharedinstall oldsharedinstall @FRAMEWORKALTINSTALLLAST@ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
775 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
776 # Install shared libraries enabled by Setup |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
777 DESTDIRS= $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
778 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
779 oldsharedinstall: $(DESTSHARED) $(SHAREDMODS) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
780 @for i in X $(SHAREDMODS); do \ |
|
16464
286a9d987375
Install shared modules enabled by Setup* in $(DESTSHARED) not
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16445
diff
changeset
|
781 if test $$i != X; then \ |
|
286a9d987375
Install shared modules enabled by Setup* in $(DESTSHARED) not
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16445
diff
changeset
|
782 echo $(INSTALL_SHARED) $$i $(DESTSHARED)/`basename $$i`; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
783 $(INSTALL_SHARED) $$i $(DESTDIR)$(DESTSHARED)/`basename $$i`; \ |
|
16464
286a9d987375
Install shared modules enabled by Setup* in $(DESTSHARED) not
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16445
diff
changeset
|
784 fi; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
785 done |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
786 |
|
19338
786aced937c5
Strip trailing whitespace, including two lines containing only one or
Guido van Rossum <guido@python.org>
parents:
19262
diff
changeset
|
787 $(DESTSHARED): |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
788 @for i in $(DESTDIRS); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
789 do \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
790 if test ! -d $(DESTDIR)$$i; then \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
791 echo "Creating directory $$i"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
792 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
793 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
794 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
795 done |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
796 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
797 |
|
74996
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
798 # Install the interpreter by creating a symlink chain: |
|
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
799 # $(PYTHON) -> python2 -> python$(VERSION)) |
|
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
800 # Also create equivalent chains for other installed files |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
801 bininstall: altbininstall |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
802 -if test -f $(DESTDIR)$(BINDIR)/$(PYTHON) -o -h $(DESTDIR)$(BINDIR)/$(PYTHON); \ |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
803 then rm -f $(DESTDIR)$(BINDIR)/$(PYTHON); \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
804 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
805 fi |
|
74996
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
806 (cd $(DESTDIR)$(BINDIR); $(LN) -s python2$(EXE) $(PYTHON)) |
|
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
807 -rm -f $(DESTDIR)$(BINDIR)/python2$(EXE) |
|
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
808 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)$(EXE) python2$(EXE)) |
|
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
809 -rm -f $(DESTDIR)$(BINDIR)/python2-config |
|
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
810 (cd $(DESTDIR)$(BINDIR); $(LN) -s python$(VERSION)-config python2-config) |
|
43288
b8a8206c0849
Backport: #1095: ln -f doesn't work portably.
Georg Brandl <georg@python.org>
parents:
43251
diff
changeset
|
811 -rm -f $(DESTDIR)$(BINDIR)/python-config |
|
74996
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
812 (cd $(DESTDIR)$(BINDIR); $(LN) -s python2-config python-config) |
|
55844
34496bed9365
Fix build issues on OSX 10.6 (issue 6802)
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
55779
diff
changeset
|
813 -test -d $(DESTDIR)$(LIBPC) || $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC) |
|
74996
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
814 -rm -f $(DESTDIR)$(LIBPC)/python2.pc |
|
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
815 (cd $(DESTDIR)$(LIBPC); $(LN) -s python-$(VERSION).pc python2.pc) |
|
54316
f8cadfb4a1a2
Issue #3585: Add pkg-config support.
Antoine Pitrou <solipsis@pitrou.net>
parents:
54289
diff
changeset
|
816 -rm -f $(DESTDIR)$(LIBPC)/python.pc |
|
74996
a65a71aa9436
Implement PEP 394 for Python 2.7
Nick Coghlan <ncoghlan@gmail.com>
parents:
71959
diff
changeset
|
817 (cd $(DESTDIR)$(LIBPC); $(LN) -s python2.pc python.pc) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
818 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
819 # Install the interpreter with $(VERSION) affixed |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
820 # This goes into $(exec_prefix) |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21183
diff
changeset
|
821 altbininstall: $(BUILDPYTHON) |
|
23401
4e7815c95d3e
Patch #553230: Create LIBDIR if necessary. Bugfix candidate.
Martin v. Löwis <martin@v.loewis.de>
parents:
23285
diff
changeset
|
822 @for i in $(BINDIR) $(LIBDIR); \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
823 do \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
824 if test ! -d $(DESTDIR)$$i; then \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
825 echo "Creating directory $$i"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
826 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
827 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
828 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
829 done |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
830 $(INSTALL_PROGRAM) $(BUILDPYTHON) $(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE) |
|
50436
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
831 if test -f $(LDLIBRARY); then \ |
|
50522
ee9ced92843a
Merged revisions 68133-68134,68141-68142,68145-68146,68148-68149,68159-68162,68166,68171-68174,68179,68195-68196,68210,68214-68215,68217-68222 via svnmerge from
Georg Brandl <georg@python.org>
parents:
50436
diff
changeset
|
832 if test -n "$(DLLLIBRARY)" ; then \ |
|
ee9ced92843a
Merged revisions 68133-68134,68141-68142,68145-68146,68148-68149,68159-68162,68166,68171-68174,68179,68195-68196,68210,68214-68215,68217-68222 via svnmerge from
Georg Brandl <georg@python.org>
parents:
50436
diff
changeset
|
833 $(INSTALL_SHARED) $(DLLLIBRARY) $(DESTDIR)$(BINDIR); \ |
|
24425
ed892411ee0d
Patch #553702: Cygwin make install patch
Jason Tishler <jason@tishler.net>
parents:
24315
diff
changeset
|
834 else \ |
|
50436
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
835 $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(LIBDIR)/$(INSTSONAME); \ |
|
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
836 if test $(LDLIBRARY) != $(INSTSONAME); then \ |
|
cb3479ca81ac
Backport of r68146
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
50217
diff
changeset
|
837 (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \ |
|
30939
b24995a9664b
Patch #841807: Check whether a versioned libpython.so symlink is needed
Martin v. Löwis <martin@v.loewis.de>
parents:
30929
diff
changeset
|
838 fi \ |
|
24425
ed892411ee0d
Patch #553702: Cygwin make install patch
Jason Tishler <jason@tishler.net>
parents:
24315
diff
changeset
|
839 fi; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
840 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
841 fi |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
842 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
843 # Install the manual page |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
844 maninstall: |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
845 @for i in $(MANDIR) $(MANDIR)/man1; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
846 do \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
847 if test ! -d $(DESTDIR)$$i; then \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
848 echo "Creating directory $$i"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
849 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
850 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
851 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
852 done |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
853 $(INSTALL_DATA) $(srcdir)/Misc/python.man \ |
|
49560
c208f5c1e4fe
- install versioned manpage
Matthias Klose <doko@ubuntu.com>
parents:
49486
diff
changeset
|
854 $(DESTDIR)$(MANDIR)/man1/python$(VERSION).1 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
855 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
856 # Install the library |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
857 PLATDIR= plat-$(MACHDEP) |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
858 EXTRAPLATDIR= @EXTRAPLATDIR@ |
|
28314
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28161
diff
changeset
|
859 EXTRAMACHDEPPATH=@EXTRAMACHDEPPATH@ |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
860 MACHDEPS= $(PLATDIR) $(EXTRAPLATDIR) |
| 39275 | 861 XMLLIBSUBDIRS= xml xml/dom xml/etree xml/parsers xml/sax |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
862 PLATMACDIRS= plat-mac plat-mac/Carbon plat-mac/lib-scriptpackages \ |
|
27327
e2da0df3613d
Fixed typo in package name that went unnoticed because of MacOSX's case-insensitive
Jack Jansen <jack.jansen@cwi.nl>
parents:
27323
diff
changeset
|
863 plat-mac/lib-scriptpackages/_builtinSuites \ |
|
26888
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
864 plat-mac/lib-scriptpackages/CodeWarrior \ |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
865 plat-mac/lib-scriptpackages/Explorer \ |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
866 plat-mac/lib-scriptpackages/Finder \ |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
867 plat-mac/lib-scriptpackages/Netscape \ |
|
b9c1597d8102
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
Jack Jansen <jack.jansen@cwi.nl>
parents:
26880
diff
changeset
|
868 plat-mac/lib-scriptpackages/StdSuites \ |
|
28466
b87095fbb051
Lib/plat-mac/lib-scriptpackages/SystemEvents added.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28447
diff
changeset
|
869 plat-mac/lib-scriptpackages/SystemEvents \ |
|
38940
721cec7f0185
Verify buildbot picks up these changes (really needs testing after last change to Makefile.pre.in)
Neal Norwitz <nnorwitz@gmail.com>
parents:
38937
diff
changeset
|
870 plat-mac/lib-scriptpackages/Terminal |
|
28314
9188cb8e191b
Added a define EXTRAMACHDEPPATH which can be used to add sys.path items
Jack Jansen <jack.jansen@cwi.nl>
parents:
28161
diff
changeset
|
871 PLATMACPATH=:plat-mac:plat-mac/lib-scriptpackages |
|
59690
87125d7647d6
install tkinter and ttk tests
Benjamin Peterson <benjamin@python.org>
parents:
59689
diff
changeset
|
872 LIBSUBDIRS= lib-tk lib-tk/test lib-tk/test/test_tkinter \ |
|
70363
8ba0192a0eb1
Issue #12057: Add cjkencodings directory to the Makefile and Tools/msi/msi.py
Victor Stinner <victor.stinner@haypocalc.com>
parents:
68452
diff
changeset
|
873 lib-tk/test/test_ttk site-packages test test/data \ |
|
70470
8349094d1fe8
Issue #12205: Fix test_subprocess failure due to uninstalled test data.
Ned Deily <nad@acm.org>
parents:
70363
diff
changeset
|
874 test/cjkencodings test/decimaltestdata test/xmltestdata test/subprocessdata \ |
|
64739
db9e62c265ff
Merged revisions 84803 via svnmerge from
Alexander Belopolsky <alexander.belopolsky@gmail.com>
parents:
64618
diff
changeset
|
875 test/tracedmodules \ |
|
37150
10cce3f65170
Add email/mime to LIBSUBDIRS. Fixes SF bug # 1454912.
Barry Warsaw <barry@python.org>
parents:
37023
diff
changeset
|
876 encodings compiler hotshot \ |
|
10cce3f65170
Add email/mime to LIBSUBDIRS. Fixes SF bug # 1454912.
Barry Warsaw <barry@python.org>
parents:
37023
diff
changeset
|
877 email email/mime email/test email/test/data \ |
|
47190
173e5e8b3e59
Remove directories that no longer exist.
Georg Brandl <georg@python.org>
parents:
47176
diff
changeset
|
878 json json/tests \ |
|
37438
6d50fd364cf5
Make needs to be told to install sqlite
Skip Montanaro <skip@pobox.com>
parents:
37289
diff
changeset
|
879 sqlite3 sqlite3/test \ |
|
51302
e20f5a684aef
Make importlib a package. This allows using svn:externals in the sandbox to
Brett Cannon <bcannon@gmail.com>
parents:
50773
diff
changeset
|
880 logging bsddb bsddb/test csv importlib wsgiref \ |
|
46994
8b223d351b09
Install the json package and tests as well as the lib2to3 tests
Neal Norwitz <nnorwitz@gmail.com>
parents:
46983
diff
changeset
|
881 lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests \ |
| 53257 | 882 lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes \ |
|
37447
29a06a2f3f2d
ctypes.macholib is needed.
Thomas Heller <theller@ctypes.org>
parents:
37438
diff
changeset
|
883 ctypes ctypes/test ctypes/macholib idlelib idlelib/Icons \ |
|
34465
7df077f47056
install distutils.tests on Unix (contributed patch)
Fred Drake <fdrake@acm.org>
parents:
34124
diff
changeset
|
884 distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \ |
|
47778
7b96fae400d6
add multiprocessing to the Makefile
Benjamin Peterson <benjamin@python.org>
parents:
47567
diff
changeset
|
885 multiprocessing multiprocessing/dummy \ |
|
60031
20baf63b094c
Makefile.pre.in for the unittest/test directory
Michael Foord <fuzzyman@voidspace.org.uk>
parents:
59998
diff
changeset
|
886 unittest unittest/test \ |
|
46921
a9ff7289082b
Put Lib/lib-old back on to sys.path for module renames.
Brett Cannon <bcannon@gmail.com>
parents:
46898
diff
changeset
|
887 lib-old \ |
|
61713
aa777d43f22f
Merged revisions 72787 via svnmerge from
Georg Brandl <georg@python.org>
parents:
60532
diff
changeset
|
888 curses pydoc_data $(MACHDEPS) |
|
71033
c8ffa3891d5e
Issue #12141: Install a copy of template C module file so that
Ned Deily <nad@acm.org>
parents:
70470
diff
changeset
|
889 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
890 @for i in $(SCRIPTDIR) $(LIBDEST); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
891 do \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
892 if test ! -d $(DESTDIR)$$i; then \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
893 echo "Creating directory $$i"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
894 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
895 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
896 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
897 done |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
898 @for d in $(LIBSUBDIRS); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
899 do \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
900 a=$(srcdir)/Lib/$$d; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
901 if test ! -d $$a; then continue; else true; fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
902 b=$(LIBDEST)/$$d; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
903 if test ! -d $(DESTDIR)$$b; then \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
904 echo "Creating directory $$b"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
905 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$b; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
906 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
907 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
908 done |
|
38927
ad5949152711
Also install the .egg-info files in Lib. This will cause wsgiref.egg-info to
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38906
diff
changeset
|
909 @for i in $(srcdir)/Lib/*.py $(srcdir)/Lib/*.doc $(srcdir)/Lib/*.egg-info ; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
910 do \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
911 if test -x $$i; then \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
912 $(INSTALL_SCRIPT) $$i $(DESTDIR)$(LIBDEST); \ |
|
17399
70763c4752e2
Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try to
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17360
diff
changeset
|
913 echo $(INSTALL_SCRIPT) $$i $(LIBDEST); \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
914 else \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
915 $(INSTALL_DATA) $$i $(DESTDIR)$(LIBDEST); \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
916 echo $(INSTALL_DATA) $$i $(LIBDEST); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
917 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
918 done |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
919 @for d in $(LIBSUBDIRS); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
920 do \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
921 a=$(srcdir)/Lib/$$d; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
922 if test ! -d $$a; then continue; else true; fi; \ |
|
37167
41d70578578a
Cosmetic improvement for r43247
Hye-Shik Chang <hyeshik@gmail.com>
parents:
37166
diff
changeset
|
923 if test `ls $$a | wc -l` -lt 1; then continue; fi; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
924 b=$(LIBDEST)/$$d; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
925 for i in $$a/*; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
926 do \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
927 case $$i in \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
928 *CVS) ;; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
929 *.py[co]) ;; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
930 *.orig) ;; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
931 *~) ;; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
932 *) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
933 if test -d $$i; then continue; fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
934 if test -x $$i; then \ |
|
17399
70763c4752e2
Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try to
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17360
diff
changeset
|
935 echo $(INSTALL_SCRIPT) $$i $$b; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
936 $(INSTALL_SCRIPT) $$i $(DESTDIR)$$b; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
937 else \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
938 echo $(INSTALL_DATA) $$i $$b; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
939 $(INSTALL_DATA) $$i $(DESTDIR)$$b; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
940 fi;; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
941 esac; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
942 done; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
943 done |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
944 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt |
|
71033
c8ffa3891d5e
Issue #12141: Install a copy of template C module file so that
Ned Deily <nad@acm.org>
parents:
70470
diff
changeset
|
945 if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \ |
|
c8ffa3891d5e
Issue #12141: Install a copy of template C module file so that
Ned Deily <nad@acm.org>
parents:
70470
diff
changeset
|
946 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ |
|
c8ffa3891d5e
Issue #12141: Install a copy of template C module file so that
Ned Deily <nad@acm.org>
parents:
70470
diff
changeset
|
947 $(DESTDIR)$(LIBDEST)/distutils/tests ; \ |
|
c8ffa3891d5e
Issue #12141: Install a copy of template C module file so that
Ned Deily <nad@acm.org>
parents:
70470
diff
changeset
|
948 fi |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
949 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
950 ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ |
|
29571
eed7430b7af1
Set -d in compileall, to get proper path in case DESTDIR is not empty.
Martin v. Löwis <martin@v.loewis.de>
parents:
29564
diff
changeset
|
951 -d $(LIBDEST) -f \ |
|
59706
fbc3f1691ad8
reignore bad_coding
Benjamin Peterson <benjamin@python.org>
parents:
59690
diff
changeset
|
952 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ |
|
53071
d5ddd3421c9a
ignore py3_test_grammar when compiling the library
Benjamin Peterson <benjamin@python.org>
parents:
52989
diff
changeset
|
953 $(DESTDIR)$(LIBDEST) |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
954 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
955 ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ |
|
29571
eed7430b7af1
Set -d in compileall, to get proper path in case DESTDIR is not empty.
Martin v. Löwis <martin@v.loewis.de>
parents:
29564
diff
changeset
|
956 -d $(LIBDEST) -f \ |
|
59706
fbc3f1691ad8
reignore bad_coding
Benjamin Peterson <benjamin@python.org>
parents:
59690
diff
changeset
|
957 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ |
|
53071
d5ddd3421c9a
ignore py3_test_grammar when compiling the library
Benjamin Peterson <benjamin@python.org>
parents:
52989
diff
changeset
|
958 $(DESTDIR)$(LIBDEST) |
|
31682
6b75060464f4
Ignore error status codes occurred while compiling site-packages
Hye-Shik Chang <hyeshik@gmail.com>
parents:
31155
diff
changeset
|
959 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
960 ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \ |
|
29571
eed7430b7af1
Set -d in compileall, to get proper path in case DESTDIR is not empty.
Martin v. Löwis <martin@v.loewis.de>
parents:
29564
diff
changeset
|
961 -d $(LIBDEST)/site-packages -f \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
962 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages |
|
31682
6b75060464f4
Ignore error status codes occurred while compiling site-packages
Hye-Shik Chang <hyeshik@gmail.com>
parents:
31155
diff
changeset
|
963 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
964 ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ |
|
29571
eed7430b7af1
Set -d in compileall, to get proper path in case DESTDIR is not empty.
Martin v. Löwis <martin@v.loewis.de>
parents:
29564
diff
changeset
|
965 -d $(LIBDEST)/site-packages -f \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
966 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages |
|
78894
2def9ef683da
Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
Ned Deily <nad@acm.org>
parents:
78882
diff
changeset
|
967 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ |
|
2def9ef683da
Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
Ned Deily <nad@acm.org>
parents:
78882
diff
changeset
|
968 ./$(BUILDPYTHON) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt |
|
2def9ef683da
Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
Ned Deily <nad@acm.org>
parents:
78882
diff
changeset
|
969 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ |
|
2def9ef683da
Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
Ned Deily <nad@acm.org>
parents:
78882
diff
changeset
|
970 ./$(BUILDPYTHON) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
971 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
972 # Create the PLATDIR source directory, if one wasn't distributed.. |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
973 $(srcdir)/Lib/$(PLATDIR): |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
974 mkdir $(srcdir)/Lib/$(PLATDIR) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
975 cp $(srcdir)/Lib/plat-generic/regen $(srcdir)/Lib/$(PLATDIR)/regen |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
976 export PATH; PATH="`pwd`:$$PATH"; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
977 export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
978 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \ |
|
21479
4c82c8ed6df4
When running regen for the plat directories we should use the BUILDEXT
Jack Jansen <jack.jansen@cwi.nl>
parents:
21272
diff
changeset
|
979 export EXE; EXE="$(BUILDEXE)"; \ |
|
50522
ee9ced92843a
Merged revisions 68133-68134,68141-68142,68145-68146,68148-68149,68159-68162,68166,68171-68174,68179,68195-68196,68210,68214-68215,68217-68222 via svnmerge from
Georg Brandl <georg@python.org>
parents:
50436
diff
changeset
|
980 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
981 |
|
59712
a241e4158882
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.
Collin Winter <collinw@gmail.com>
parents:
59706
diff
changeset
|
982 python-config: $(srcdir)/Misc/python-config.in |
|
a241e4158882
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.
Collin Winter <collinw@gmail.com>
parents:
59706
diff
changeset
|
983 # Substitution happens here, as the completely-expanded BINDIR |
|
a241e4158882
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.
Collin Winter <collinw@gmail.com>
parents:
59706
diff
changeset
|
984 # is not available in configure |
|
a241e4158882
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.
Collin Winter <collinw@gmail.com>
parents:
59706
diff
changeset
|
985 sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config |
|
a241e4158882
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.
Collin Winter <collinw@gmail.com>
parents:
59706
diff
changeset
|
986 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
987 # Install the include files |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
988 INCLDIRSTOMAKE=$(INCLUDEDIR) $(CONFINCLUDEDIR) $(INCLUDEPY) $(CONFINCLUDEPY) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
989 inclinstall: |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
990 @for i in $(INCLDIRSTOMAKE); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
991 do \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
992 if test ! -d $(DESTDIR)$$i; then \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
993 echo "Creating directory $$i"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
994 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
995 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
996 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
997 done |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
998 @for i in $(srcdir)/Include/*.h; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
999 do \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1000 echo $(INSTALL_DATA) $$i $(INCLUDEPY); \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1001 $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1002 done |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1003 $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1004 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1005 # Install the library and miscellaneous stuff needed for extending/embedding |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1006 # This goes into $(exec_prefix) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1007 LIBPL= $(LIBP)/config |
|
54316
f8cadfb4a1a2
Issue #3585: Add pkg-config support.
Antoine Pitrou <solipsis@pitrou.net>
parents:
54289
diff
changeset
|
1008 |
|
f8cadfb4a1a2
Issue #3585: Add pkg-config support.
Antoine Pitrou <solipsis@pitrou.net>
parents:
54289
diff
changeset
|
1009 # pkgconfig directory |
|
f8cadfb4a1a2
Issue #3585: Add pkg-config support.
Antoine Pitrou <solipsis@pitrou.net>
parents:
54289
diff
changeset
|
1010 LIBPC= $(LIBDIR)/pkgconfig |
|
f8cadfb4a1a2
Issue #3585: Add pkg-config support.
Antoine Pitrou <solipsis@pitrou.net>
parents:
54289
diff
changeset
|
1011 |
|
59712
a241e4158882
Add a separate python-config make target, useful for testing changes to Misc/python-config.in.
Collin Winter <collinw@gmail.com>
parents:
59706
diff
changeset
|
1012 libainstall: all python-config |
|
54316
f8cadfb4a1a2
Issue #3585: Add pkg-config support.
Antoine Pitrou <solipsis@pitrou.net>
parents:
54289
diff
changeset
|
1013 @for i in $(LIBDIR) $(LIBP) $(LIBPL) $(LIBPC); \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1014 do \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1015 if test ! -d $(DESTDIR)$$i; then \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1016 echo "Creating directory $$i"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1017 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1018 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1019 fi; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1020 done |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
1021 @if test -d $(LIBRARY); then :; else \ |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19574
diff
changeset
|
1022 if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \ |
|
24425
ed892411ee0d
Patch #553702: Cygwin make install patch
Jason Tishler <jason@tishler.net>
parents:
24315
diff
changeset
|
1023 if test "$(SO)" = .dll; then \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1024 $(INSTALL_DATA) $(LDLIBRARY) $(DESTDIR)$(LIBPL) ; \ |
|
24425
ed892411ee0d
Patch #553702: Cygwin make install patch
Jason Tishler <jason@tishler.net>
parents:
24315
diff
changeset
|
1025 else \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1026 $(INSTALL_DATA) $(LIBRARY) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \ |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1027 $(RANLIB) $(DESTDIR)$(LIBPL)/$(LIBRARY) ; \ |
|
24425
ed892411ee0d
Patch #553702: Cygwin make install patch
Jason Tishler <jason@tishler.net>
parents:
24315
diff
changeset
|
1028 fi; \ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1029 else \ |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
1030 echo Skip install of $(LIBRARY) - use make frameworkinstall; \ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1031 fi; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1032 fi |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1033 $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c |
|
37709
37a8eb74c504
Patch #1324762: Change --with-cxx to --with-cxx-main.
Martin v. Löwis <martin@v.loewis.de>
parents:
37447
diff
changeset
|
1034 $(INSTALL_DATA) Modules/python.o $(DESTDIR)$(LIBPL)/python.o |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1035 $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1036 $(INSTALL_DATA) Makefile $(DESTDIR)$(LIBPL)/Makefile |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1037 $(INSTALL_DATA) Modules/Setup $(DESTDIR)$(LIBPL)/Setup |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1038 $(INSTALL_DATA) Modules/Setup.local $(DESTDIR)$(LIBPL)/Setup.local |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1039 $(INSTALL_DATA) Modules/Setup.config $(DESTDIR)$(LIBPL)/Setup.config |
|
54316
f8cadfb4a1a2
Issue #3585: Add pkg-config support.
Antoine Pitrou <solipsis@pitrou.net>
parents:
54289
diff
changeset
|
1040 $(INSTALL_DATA) Misc/python.pc $(DESTDIR)$(LIBPC)/python-$(VERSION).pc |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1041 $(INSTALL_SCRIPT) $(srcdir)/Modules/makesetup $(DESTDIR)$(LIBPL)/makesetup |
|
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1042 $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh |
|
39314
29c7635d0199
Fix makefile changes for python-config.
Georg Brandl <georg@python.org>
parents:
39275
diff
changeset
|
1043 $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config |
|
37730
5304059e7de3
Patch #1161914: Add python-config.
Martin v. Löwis <martin@v.loewis.de>
parents:
37712
diff
changeset
|
1044 rm python-config |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1045 @if [ -s Modules/python.exp -a \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1046 "`echo $(MACHDEP) | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1047 echo; echo "Installing support files for building shared extension modules on AIX:"; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1048 $(INSTALL_DATA) Modules/python.exp \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1049 $(DESTDIR)$(LIBPL)/python.exp; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1050 echo; echo "$(LIBPL)/python.exp"; \ |
|
17399
70763c4752e2
Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try to
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17360
diff
changeset
|
1051 $(INSTALL_SCRIPT) $(srcdir)/Modules/makexp_aix \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1052 $(DESTDIR)$(LIBPL)/makexp_aix; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1053 echo "$(LIBPL)/makexp_aix"; \ |
|
17399
70763c4752e2
Use INSTALL_SCRIPT to install script files. INSTALL_PROGRAM may try to
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17360
diff
changeset
|
1054 $(INSTALL_SCRIPT) $(srcdir)/Modules/ld_so_aix \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1055 $(DESTDIR)$(LIBPL)/ld_so_aix; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1056 echo "$(LIBPL)/ld_so_aix"; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1057 echo; echo "See Misc/AIX-NOTES for details."; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1058 else true; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1059 fi |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1060 @case "$(MACHDEP)" in beos*) \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1061 echo; echo "Installing support files for building shared extension modules on BeOS:"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1062 $(INSTALL_DATA) Misc/BeOS-NOTES $(DESTDIR)$(LIBPL)/README; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1063 echo; echo "$(LIBPL)/README"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1064 $(INSTALL_SCRIPT) Modules/ar_beos $(DESTDIR)$(LIBPL)/ar_beos; \ |
|
16622
91780ead8c25
Simplify linking on BeOS. Rename some files. Closes SF patch #103679.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16554
diff
changeset
|
1065 echo "$(LIBPL)/ar_beos"; \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1066 $(INSTALL_SCRIPT) Modules/ld_so_beos $(DESTDIR)$(LIBPL)/ld_so_beos; \ |
|
16622
91780ead8c25
Simplify linking on BeOS. Rename some files. Closes SF patch #103679.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16554
diff
changeset
|
1067 echo "$(LIBPL)/ld_so_beos"; \ |
|
91780ead8c25
Simplify linking on BeOS. Rename some files. Closes SF patch #103679.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16554
diff
changeset
|
1068 echo; echo "See Misc/BeOS-NOTES for details."; \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1069 ;; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1070 esac |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1071 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1072 # Install the dynamically loadable modules |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1073 # This goes into $(exec_prefix) |
|
63059
8c440cf90776
Merged revisions 82934 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
60530
diff
changeset
|
1074 sharedinstall: sharedmods |
|
22662
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
1075 $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \ |
|
1aea7af09260
Patch #527027: Allow building python as shared library.
Martin v. Löwis <martin@v.loewis.de>
parents:
22469
diff
changeset
|
1076 --prefix=$(prefix) \ |
|
20487
b69273bee095
SF patch #471894: Makefile installs pydoc incorrectly
Guido van Rossum <guido@python.org>
parents:
20283
diff
changeset
|
1077 --install-scripts=$(BINDIR) \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1078 --install-platlib=$(DESTSHARED) \ |
|
68305
d121681ed1cc
Issue #11411: Fix typo in the Makefile that prevented 'make DESTDIR=' from
Thomas Wouters <thomas@python.org>
parents:
68281
diff
changeset
|
1079 --root=$(DESTDIR)/ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1080 |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1081 # Here are a couple of targets for MacOSX again, to install a full |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1082 # framework-based Python. frameworkinstall installs everything, the |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1083 # subtargets install specific parts. Much of the actual work is offloaded to |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
1084 # the Makefile in Mac |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1085 # |
|
38349
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38176
diff
changeset
|
1086 # |
|
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38176
diff
changeset
|
1087 # This target is here for backward compatiblity, previous versions of Python |
|
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38176
diff
changeset
|
1088 # hadn't integrated framework installation in the normal install process. |
|
ad2e4de47d09
Integrate installing a framework in the 'make install'
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38176
diff
changeset
|
1089 frameworkinstall: install |
|
24720
374f879c5d8b
Whitespace normalization.
Guido van Rossum <guido@python.org>
parents:
24700
diff
changeset
|
1090 |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1091 # On install, we re-make the framework |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1092 # structure in the install location, /Library/Frameworks/ or the argument to |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1093 # --enable-framework. If --enable-framework has been specified then we have |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1094 # automatically set prefix to the location deep down in the framework, so we |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1095 # only have to cater for the structural bits of the framework. |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1096 |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1097 frameworkinstallframework: frameworkinstallstructure install frameworkinstallmaclib |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1098 |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1099 frameworkinstallstructure: $(LDLIBRARY) |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19574
diff
changeset
|
1100 @if test "$(PYTHONFRAMEWORKDIR)" = no-framework; then \ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1101 echo Not configured with --enable-framework; \ |
|
19858
873be8e3462b
When frameworks are not enabled don't put an empty target in the Makefile.
Jack Jansen <jack.jansen@cwi.nl>
parents:
19574
diff
changeset
|
1102 exit 1; \ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1103 else true; \ |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1104 fi |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1105 @for i in $(prefix)/Resources/English.lproj $(prefix)/lib; do\ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1106 if test ! -d $(DESTDIR)$$i; then \ |
|
29262
7ea550ecf43d
Fixed the DESTDIR modifications to also allow MacOSX framework builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
29128
diff
changeset
|
1107 echo "Creating directory $(DESTDIR)$$i"; \ |
|
7ea550ecf43d
Fixed the DESTDIR modifications to also allow MacOSX framework builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
29128
diff
changeset
|
1108 $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$$i; \ |
|
19262
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1109 else true; \ |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1110 fi; \ |
|
c3c87ce4afdc
Lots of changes in the framework support:
Jack Jansen <jack.jansen@cwi.nl>
parents:
19148
diff
changeset
|
1111 done |
|
29262
7ea550ecf43d
Fixed the DESTDIR modifications to also allow MacOSX framework builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
29128
diff
changeset
|
1112 $(LN) -fsn include/python$(VERSION) $(DESTDIR)$(prefix)/Headers |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46473
diff
changeset
|
1113 sed 's/%VERSION%/'"`$(RUNSHARED) ./$(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(RESSRCDIR)/Info.plist > $(DESTDIR)$(prefix)/Resources/Info.plist |
|
29262
7ea550ecf43d
Fixed the DESTDIR modifications to also allow MacOSX framework builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
29128
diff
changeset
|
1114 $(LN) -fsn $(VERSION) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Versions/Current |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46473
diff
changeset
|
1115 $(LN) -fsn Versions/Current/$(PYTHONFRAMEWORK) $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/$(PYTHONFRAMEWORK) |
|
29262
7ea550ecf43d
Fixed the DESTDIR modifications to also allow MacOSX framework builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
29128
diff
changeset
|
1116 $(LN) -fsn Versions/Current/Headers $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Headers |
|
7ea550ecf43d
Fixed the DESTDIR modifications to also allow MacOSX framework builds
Jack Jansen <jack.jansen@cwi.nl>
parents:
29128
diff
changeset
|
1117 $(LN) -fsn Versions/Current/Resources $(DESTDIR)$(PYTHONFRAMEWORKINSTALLDIR)/Resources |
|
29564
91259ae35e29
Set the executable bits when installing the shared library in a MacOSX
Jack Jansen <jack.jansen@cwi.nl>
parents:
29545
diff
changeset
|
1118 $(INSTALL_SHARED) $(LDLIBRARY) $(DESTDIR)$(PYTHONFRAMEWORKPREFIX)/$(LDLIBRARY) |
|
19338
786aced937c5
Strip trailing whitespace, including two lines containing only one or
Guido van Rossum <guido@python.org>
parents:
19262
diff
changeset
|
1119 |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1120 # This installs Mac/Lib into the framework |
|
38947
ac3d4b71bce2
macosx: Install a libpython2.5.a inside the framework as a symlink to the actual
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38940
diff
changeset
|
1121 # Install a number of symlinks to keep software that expects a normal unix |
|
ac3d4b71bce2
macosx: Install a libpython2.5.a inside the framework as a symlink to the actual
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38940
diff
changeset
|
1122 # install (which includes python-config) happy. |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1123 frameworkinstallmaclib: |
|
46626
a1c6f2ab597e
Fix for issue #2573: Can't change the framework name on OS X builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
46473
diff
changeset
|
1124 ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).a" |
|
57916
bc5ec50c50f9
Merged revisions 77033 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
56207
diff
changeset
|
1125 ln -fs "../../../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/python$(VERSION)/config/libpython$(VERSION).dylib" |
|
54633
ceb262d44d74
This checkin adds a symlink to the lib directory of a framework install
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
54316
diff
changeset
|
1126 ln -fs "../$(PYTHONFRAMEWORK)" "$(DESTDIR)$(prefix)/lib/libpython$(VERSION).dylib" |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
1127 cd Mac && $(MAKE) installmacsubtree DESTDIR="$(DESTDIR)" |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1128 |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1129 # This installs the IDE, the Launcher and other apps into /Applications |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1130 frameworkinstallapps: |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
1131 cd Mac && $(MAKE) installapps DESTDIR="$(DESTDIR)" |
|
24681
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1132 |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1133 # This install the unix python and pythonw tools in /usr/local/bin |
|
aee18ea3d284
By popular demand the frameworkinstall target now installs everything:
Jack Jansen <jack.jansen@cwi.nl>
parents:
24593
diff
changeset
|
1134 frameworkinstallunixtools: |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
1135 cd Mac && $(MAKE) installunixtools DESTDIR="$(DESTDIR)" |
|
23957
03bba7282852
Patch #557719 by Tony Lownds, slightly massaged by me: streamline the
Jack Jansen <jack.jansen@cwi.nl>
parents:
23777
diff
changeset
|
1136 |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38521
diff
changeset
|
1137 frameworkaltinstallunixtools: |
|
38647
7704f37541f4
And the last bit: move IDLE one level up and adjust makefiles
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38635
diff
changeset
|
1138 cd Mac && $(MAKE) altinstallunixtools DESTDIR="$(DESTDIR)" |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38521
diff
changeset
|
1139 |
|
29545
32592f1a6f22
Added a target frameworkinstallextras (OSX framework build specific,
Jack Jansen <jack.jansen@cwi.nl>
parents:
29464
diff
changeset
|
1140 # This installs the Demos and Tools into the applications directory. |
|
32592f1a6f22
Added a target frameworkinstallextras (OSX framework build specific,
Jack Jansen <jack.jansen@cwi.nl>
parents:
29464
diff
changeset
|
1141 # It is not part of a normal frameworkinstall |
|
32592f1a6f22
Added a target frameworkinstallextras (OSX framework build specific,
Jack Jansen <jack.jansen@cwi.nl>
parents:
29464
diff
changeset
|
1142 frameworkinstallextras: |
|
50217
56b7ebf12ea3
Merged revisions 67844 via svnmerge from
Mark Dickinson <dickinsm@gmail.com>
parents:
49562
diff
changeset
|
1143 cd Mac && $(MAKE) installextras DESTDIR="$(DESTDIR)" |
|
29545
32592f1a6f22
Added a target frameworkinstallextras (OSX framework build specific,
Jack Jansen <jack.jansen@cwi.nl>
parents:
29464
diff
changeset
|
1144 |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26949
diff
changeset
|
1145 # This installs a few of the useful scripts in Tools/scripts |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26949
diff
changeset
|
1146 scriptsinstall: |
|
27062
d3ba7f4a9f88
Use RUNSHARED for python invocations. Fixes #661408.
Martin v. Löwis <martin@v.loewis.de>
parents:
27002
diff
changeset
|
1147 SRCDIR=$(srcdir) $(RUNSHARED) \ |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26949
diff
changeset
|
1148 ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/setup.py install \ |
|
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26949
diff
changeset
|
1149 --prefix=$(prefix) \ |
|
29074
988b3e807043
Patch #718286: Support DESTDIR.
Martin v. Löwis <martin@v.loewis.de>
parents:
29050
diff
changeset
|
1150 --install-scripts=$(BINDIR) \ |
|
68305
d121681ed1cc
Issue #11411: Fix typo in the Makefile that prevented 'make DESTDIR=' from
Thomas Wouters <thomas@python.org>
parents:
68281
diff
changeset
|
1151 --root=$(DESTDIR)/ |
|
27002
293eda3e69f5
Split OPT make variable into OPT and BASECFLAGS. The latter contains those
Skip Montanaro <skip@pobox.com>
parents:
26949
diff
changeset
|
1152 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1153 # Build the toplevel Makefile |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1154 Makefile.pre: Makefile.pre.in config.status |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1155 CONFIG_FILES=Makefile.pre CONFIG_HEADERS= $(SHELL) config.status |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1156 $(MAKE) -f Makefile.pre Makefile |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1157 |
|
17121
646ec2a4d7f4
- Remove WITH makefile variable. Its not used for anything.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17056
diff
changeset
|
1158 # Run the configure script. |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1159 config.status: $(srcdir)/configure |
|
17121
646ec2a4d7f4
- Remove WITH makefile variable. Its not used for anything.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
17056
diff
changeset
|
1160 $(SHELL) $(srcdir)/configure $(CONFIG_ARGS) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1161 |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21183
diff
changeset
|
1162 .PRECIOUS: config.status $(BUILDPYTHON) Makefile Makefile.pre |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1163 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1164 # Some make's put the object file in the current directory |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1165 .c.o: |
|
16274
2aeb3a34c7ac
- Add CFLAGSFORSHARED variable. configure sets this to CCSHARED if LDLIBRARY
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16258
diff
changeset
|
1166 $(CC) -c $(PY_CFLAGS) -o $@ $< |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1167 |
|
37807
5f457f426d91
Add reindent target.
Martin v. Löwis <martin@v.loewis.de>
parents:
37730
diff
changeset
|
1168 # Run reindent on the library |
|
5f457f426d91
Add reindent target.
Martin v. Löwis <martin@v.loewis.de>
parents:
37730
diff
changeset
|
1169 reindent: |
|
45041
efea4217a954
Fix the reindent rule to use $(BUILDPYTHON).
Brett Cannon <bcannon@gmail.com>
parents:
44956
diff
changeset
|
1170 ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/reindent.py -r $(srcdir)/Lib |
|
37807
5f457f426d91
Add reindent target.
Martin v. Löwis <martin@v.loewis.de>
parents:
37730
diff
changeset
|
1171 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1172 # Rerun configure with the same options as it was run last time, |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1173 # provided the config.status script exists |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1174 recheck: |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1175 $(SHELL) config.status --recheck |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1176 $(SHELL) config.status |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1177 |
|
75668
f5bf91af01ca
- rename configure.in to configure.ac
Matthias Klose <doko@ubuntu.com>
parents:
75102
diff
changeset
|
1178 # Rebuild the configure script from configure.ac; also rebuild pyconfig.h.in |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1179 autoconf: |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1180 (cd $(srcdir); autoconf) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1181 (cd $(srcdir); autoheader) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1182 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1183 # Create a tags file for vi |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1184 tags:: |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1185 cd $(srcdir); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1186 ctags -w -t Include/*.h; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1187 for i in $(SRCDIRS); do ctags -w -t -a $$i/*.[ch]; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1188 done; \ |
|
22090
90d3ce3eb19c
SF patch #524005 by Paul Eggert.
Guido van Rossum <guido@python.org>
parents:
21937
diff
changeset
|
1189 sort -o tags tags |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1190 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1191 # Create a tags file for GNU Emacs |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1192 TAGS:: |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1193 cd $(srcdir); \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1194 etags Include/*.h; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1195 for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1196 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1197 # Sanitation targets -- clean leaves libraries, executables and tags |
|
56207
785eccc025ac
Merged revisions 75047 via svnmerge from
Mark Dickinson <dickinsm@gmail.com>
parents:
54291
diff
changeset
|
1198 # files, which clobber removes as well |
|
37852
80e00349647d
Added a pycremoval rule. Called by clean, it removes all .pyc and .pyo files.
Brett Cannon <bcannon@gmail.com>
parents:
37829
diff
changeset
|
1199 pycremoval: |
|
80e00349647d
Added a pycremoval rule. Called by clean, it removes all .pyc and .pyo files.
Brett Cannon <bcannon@gmail.com>
parents:
37829
diff
changeset
|
1200 find $(srcdir) -name '*.py[co]' -exec rm -f {} ';' |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1201 |
|
37852
80e00349647d
Added a pycremoval rule. Called by clean, it removes all .pyc and .pyo files.
Brett Cannon <bcannon@gmail.com>
parents:
37829
diff
changeset
|
1202 clean: pycremoval |
|
63508
97cb1dd8566e
Merged revisions 83392,83426 via svnmerge from
Georg Brandl <georg@python.org>
parents:
61713
diff
changeset
|
1203 find . -name '*.[oa]' -exec rm -f {} ';' |
|
17520
05bad2f05bfa
Remove shared libraries as part of "make clean" rather than in "make
Guido van Rossum <guido@python.org>
parents:
17419
diff
changeset
|
1204 find . -name '*.s[ol]' -exec rm -f {} ';' |
|
63508
97cb1dd8566e
Merged revisions 83392,83426 via svnmerge from
Georg Brandl <georg@python.org>
parents:
61713
diff
changeset
|
1205 find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' |
|
53355
116787f9b9fc
Issue #5161: wrong paths for ctypes cleanup when Python is built in a
Thomas Heller <theller@ctypes.org>
parents:
53257
diff
changeset
|
1206 find build -name 'fficonfig.h' -exec rm -f {} ';' || true |
|
116787f9b9fc
Issue #5161: wrong paths for ctypes cleanup when Python is built in a
Thomas Heller <theller@ctypes.org>
parents:
53257
diff
changeset
|
1207 find build -name 'fficonfig.py' -exec rm -f {} ';' || true |
|
78894
2def9ef683da
Issue #15822: Fix installation of lib2to3 grammar pickles to ensure
Ned Deily <nad@acm.org>
parents:
78882
diff
changeset
|
1208 -rm -f Lib/lib2to3/*Grammar*.pickle |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1209 |
|
46415
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
1210 profile-removal: |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
1211 find . -name '*.gc??' -exec rm -f {} ';' |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
1212 |
|
f781ca14395b
Adds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith <greg@mad-scientist.com>
parents:
46414
diff
changeset
|
1213 clobber: clean profile-removal |
|
21272
d64dfbdc5f8c
Test wether we are building on a case-insensitive filesystem (such
Jack Jansen <jack.jansen@cwi.nl>
parents:
21183
diff
changeset
|
1214 -rm -f $(BUILDPYTHON) $(PGEN) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \ |
|
67316
78de3a7fb896
Merged revisions 84068,87558 via svnmerge from
Antoine Pitrou <solipsis@pitrou.net>
parents:
65309
diff
changeset
|
1215 tags TAGS Parser/pgen.stamp \ |
|
19338
786aced937c5
Strip trailing whitespace, including two lines containing only one or
Guido van Rossum <guido@python.org>
parents:
19262
diff
changeset
|
1216 config.cache config.log pyconfig.h Modules/config.c |
|
18047
e79bb5b8a5d0
Acknowledge the existence of the 'platform' file, generated by the
Guido van Rossum <guido@python.org>
parents:
18016
diff
changeset
|
1217 -rm -rf build platform |
|
28099
7e649138312b
In make clobber also clean out the Python.framework.
Jack Jansen <jack.jansen@cwi.nl>
parents:
28055
diff
changeset
|
1218 -rm -rf $(PYTHONFRAMEWORKDIR) |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1219 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1220 # Make things extra clean, before making a distribution: |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1221 # remove all generated files, even Makefile[.pre] |
|
36180
3f62d31d5985
As discussed on python-dev, don't remove Python-ast.[ch] with distclean
Neal Norwitz <nnorwitz@gmail.com>
parents:
36094
diff
changeset
|
1222 # Keep configure and Python-ast.[ch], it's possible they can't be generated |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1223 distclean: clobber |
|
63499
d15b43c272fb
Merged revisions 83479 via svnmerge from
Mark Dickinson <dickinsm@gmail.com>
parents:
63442
diff
changeset
|
1224 for file in Lib/test/data/* ; do \ |
|
d15b43c272fb
Merged revisions 83479 via svnmerge from
Mark Dickinson <dickinsm@gmail.com>
parents:
63442
diff
changeset
|
1225 if test "$$file" != "Lib/test/data/README"; then rm "$$file"; fi; \ |
|
d15b43c272fb
Merged revisions 83479 via svnmerge from
Mark Dickinson <dickinsm@gmail.com>
parents:
63442
diff
changeset
|
1226 done |
|
36203
44cfca6136c6
Stop maintaining the buildno file.
Martin v. Löwis <martin@v.loewis.de>
parents:
36199
diff
changeset
|
1227 -rm -f core Makefile Makefile.pre config.status \ |
|
55779
43a666768f47
Issue #6297: Add autogenerated Misc/python.pc file to make distclean target. Thanks Jerry Chen.
Mark Dickinson <dickinsm@gmail.com>
parents:
55390
diff
changeset
|
1228 Modules/Setup Modules/Setup.local Modules/Setup.config \ |
|
68017
226f001a701f
Merged revisions 88426 via svnmerge from
Georg Brandl <georg@python.org>
parents:
67316
diff
changeset
|
1229 Modules/ld_so_aix Modules/python.exp Misc/python.pc |
|
60181
278e7ecc0f77
Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile.
Mark Dickinson <dickinsm@gmail.com>
parents:
60125
diff
changeset
|
1230 -rm -f python*-gdb.py |
|
16445
f93e23a82a73
Tweak clean targets yet again.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16426
diff
changeset
|
1231 find $(srcdir) '(' -name '*.fdc' -o -name '*~' \ |
|
f93e23a82a73
Tweak clean targets yet again.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16426
diff
changeset
|
1232 -o -name '[@,#]*' -o -name '*.old' \ |
|
f93e23a82a73
Tweak clean targets yet again.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16426
diff
changeset
|
1233 -o -name '*.orig' -o -name '*.rej' \ |
|
f93e23a82a73
Tweak clean targets yet again.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16426
diff
changeset
|
1234 -o -name '*.bak' ')' \ |
|
f93e23a82a73
Tweak clean targets yet again.
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
16426
diff
changeset
|
1235 -exec rm -f {} ';' |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1236 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1237 # Check for smelly exported symbols (not starting with Py/_Py) |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1238 smelly: all |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1239 nm -p $(LIBRARY) | \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1240 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1241 |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1242 # Find files with funny names |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1243 funny: |
|
71959
79895ba8e98e
Fix find command in makefile “funny” target
Éric Araujo <merwok@netwok.org>
parents:
71033
diff
changeset
|
1244 find $(SUBDIRS) $(SUBDIRSTOO) -type d \ |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1245 -o -name '*.[chs]' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1246 -o -name '*.py' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1247 -o -name '*.doc' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1248 -o -name '*.sty' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1249 -o -name '*.bib' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1250 -o -name '*.dat' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1251 -o -name '*.el' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1252 -o -name '*.fd' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1253 -o -name '*.in' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1254 -o -name '*.tex' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1255 -o -name '*,[vpt]' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1256 -o -name 'Setup' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1257 -o -name 'Setup.*' \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1258 -o -name README \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1259 -o -name Makefile \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1260 -o -name ChangeLog \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1261 -o -name Repository \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1262 -o -name Root \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1263 -o -name Entries \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1264 -o -name Tag \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1265 -o -name tags \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1266 -o -name TAGS \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1267 -o -name .cvsignore \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1268 -o -name MANIFEST \ |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1269 -o -print |
|
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1270 |
|
45859
c424099b4ce4
Add Tools/scripts/patchcheck.py. Invoked from ``make check``, the script does
Brett Cannon <bcannon@gmail.com>
parents:
45510
diff
changeset
|
1271 # Perform some verification checks on any modified files. |
|
49033
e740969738ef
GNU coding guidelines say that ``make check`` should verify the build. That
Brett Cannon <bcannon@gmail.com>
parents:
48954
diff
changeset
|
1272 patchcheck: |
|
47473
c34e34057714
MacOS X: Enable 4-way universal builds
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47296
diff
changeset
|
1273 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py |
|
45859
c424099b4ce4
Add Tools/scripts/patchcheck.py. Invoked from ``make check``, the script does
Brett Cannon <bcannon@gmail.com>
parents:
45510
diff
changeset
|
1274 |
|
19373
033462df17bf
Add dependencies for Python/thread.c on all of the header files that
Guido van Rossum <guido@python.org>
parents:
19356
diff
changeset
|
1275 # Dependencies |
|
033462df17bf
Add dependencies for Python/thread.c on all of the header files that
Guido van Rossum <guido@python.org>
parents:
19356
diff
changeset
|
1276 |
|
21134
abe14ac62024
Compute thread headers through shell expansion in configure.
Martin v. Löwis <martin@v.loewis.de>
parents:
21041
diff
changeset
|
1277 Python/thread.o: @THREADHEADERS@ |
|
19373
033462df17bf
Add dependencies for Python/thread.c on all of the header files that
Guido van Rossum <guido@python.org>
parents:
19356
diff
changeset
|
1278 |
|
25696
b78f5c7e5790
Add .PHONY targets, to declare targets that aren't real files.
Guido van Rossum <guido@python.org>
parents:
25066
diff
changeset
|
1279 # Declare targets that aren't real files |
|
43419
ec846ebab2ef
Issue1704287: "make install" fails unless you do "make" first. Make
Sean Reifscheider <jafo@tummy.com>
parents:
43295
diff
changeset
|
1280 .PHONY: all build_all sharedmods oldsharedmods test quicktest memtest |
|
25696
b78f5c7e5790
Add .PHONY targets, to declare targets that aren't real files.
Guido van Rossum <guido@python.org>
parents:
25066
diff
changeset
|
1281 .PHONY: install altinstall oldsharedinstall bininstall altbininstall |
|
b78f5c7e5790
Add .PHONY targets, to declare targets that aren't real files.
Guido van Rossum <guido@python.org>
parents:
25066
diff
changeset
|
1282 .PHONY: maninstall libinstall inclinstall libainstall sharedinstall |
|
b78f5c7e5790
Add .PHONY targets, to declare targets that aren't real files.
Guido van Rossum <guido@python.org>
parents:
25066
diff
changeset
|
1283 .PHONY: frameworkinstall frameworkinstallframework frameworkinstallstructure |
|
b78f5c7e5790
Add .PHONY targets, to declare targets that aren't real files.
Guido van Rossum <guido@python.org>
parents:
25066
diff
changeset
|
1284 .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools |
|
38635
1e8b59389e2e
* Ensure that "make altinstall" works when the tree was configured
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38521
diff
changeset
|
1285 .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean |
|
49450
dbd2b1817a75
Merged revisions 66819 via svnmerge from
Brett Cannon <bcannon@gmail.com>
parents:
49033
diff
changeset
|
1286 .PHONY: smelly funny patchcheck |
|
60125
6de3de3ab71f
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
Martin v. Löwis <martin@v.loewis.de>
parents:
60117
diff
changeset
|
1287 .PHONY: gdbhooks |
|
25696
b78f5c7e5790
Add .PHONY targets, to declare targets that aren't real files.
Guido van Rossum <guido@python.org>
parents:
25066
diff
changeset
|
1288 |
|
16221
588691f806f4
Flat makefile based on toplevel Makefile.in and makefiles in build
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents:
diff
changeset
|
1289 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
