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