1 #####################==================----------------
3 # Top-Level Makefile for Building Python 2.3 for OS/2 using GCC/EMX
4 # Originally written by Andrew Zabolotny, <bit@eltech.ru> for Python 1.5.2
5 # Modified by Andrew MacIntyre, <andymac@pcug.org.au> for Python 2.3
7 # This makefile was developed for use with [P]GCC/EMX compiler any
8 # version and GNU Make.
10 # The output of the build is a largish Python23.DLL containing the
11 # essential modules of Python and a small Python.exe program to start
12 # the interpreter. When embedding Python within another program, only
13 # Python23.DLL is needed. We also build python_s.a static library (which
14 # can be converted into OMF (.lib) format using emxomf tool) and both
15 # python.a and python.lib import libraries. Then the optional
16 # extension modules, which are OS/2 DLLs renamed with a PYD file extension.
18 # Recommended build order:
19 # make depend (if you have makedep)
21 # make lx (if you have lxlite)
22 # make test (optional)
24 #####################==================----------------
26 # === Compilation mode: debug or release ===
29 # === Assert() enabled ===
32 # === Hard-wire installation location ===
36 # === Optional modules ===
37 # Do you have the InfoZip compression library installed?
39 # Do you have the Ultra Fast Crypt (UFC) library installed?
41 # Do you have the Tcl/Tk library installed?
43 # Do you have the GNU multiprecision library installed?
45 # Do you have the GNU readline library installed?
46 # NOTE: I'm using a modified version of Kai Uwe Rommel's port that
47 # - is compiled with multithreading enabled
48 # - is linked statically
49 # I have had no success trying to use a DLL version, even when
50 # compiled with multithreading enabled.
52 # Do you have the BSD DB library (v1.85) as included in the EMXBSD package?
53 # NOTE: this library needs to be recompiled with a structure member
54 # renamed to avoid problems with the multithreaded errno support
55 # (there is a structure member called errno, used for shadowing the
56 # real errno, which conflicts with the errno redefinition of -Zmt)
58 # Do you have the ncurses library installed? EMX's BSD curses aren't enough!
60 # Do you have the GDBM library installed?
62 # Do you have the BZ2 compression library installed?
65 # === install locations ===
66 # default value of PYTHONHOME
68 # default is to have everything in or under PYTHONHOME
75 CFLAGS
= -Zmt
-Wall
$(INCLUDE
)
78 LDFLAGS
= -Zmt
-Zcrtdll
-L.
-lgcc
79 LDFLAGS.EXE
= $(LDFLAGS
)
80 LDFLAGS.DLL
= $(LDFLAGS
) -Zdll
81 LDFLAGS.A
= $(LDFLAGS
) $(LIBS
)
86 PY_DEF
= -DPy_BUILD_CORE
89 # adjust C compiler settings based on build options
94 CFLAGS
+= -s
-O3
-fomit-frame-pointer
-mprobe
98 ifeq ($(ASSERTIONS
),no
)
101 ifeq ($(FIXED_PYHOME
),yes
)
102 CFLAGS
+= -DPREFIX
=$(DQUOTE
)$(LIB_DIR
)$(DQUOTE
)
105 # We're using the OMF format since EMX's ld has a obscure bug
106 # because of which it sometimes fails to build relocations
107 # in .data segment that point to another .data locations
108 # (except for the final linking if the .EXEs)
111 # if fork() support is required, the main executable must be linked with ld
134 # EMX's default number of file handles is 40, which is sometimes insufficient
135 # (the tempfile regression test tries to create 100 temporary files)
139 SRCPATH
=.
;..
/..
/Python
;..
/..
/Parser
;..
/..
/Objects
;..
/..
/Include
;..
/..
/Modules
140 # Python contains the central core, containing the builtins and interpreter.
141 # Parser contains Python's Internal Parser and
142 # Standalone Parser Generator Program (Shares Some of Python's Modules)
143 # Objects contains Python Object Types
144 # Modules contains extension Modules (Built-In or as Separate DLLs)
146 # Unix shells tend to use "$" as delimiter for variable names.
147 # Test for this behaviour and set $(BUCK) variable correspondigly ...
148 __TMP__
:=$(shell echo
$$$$)
149 ifeq ($(__TMP__
),$$$$)
158 # Compute the "double quote" variable
159 __TMP__
:=$(shell echo
"")
167 #INCLUDE= -I$(subst ;, -I, $(SRCPATH))
168 INCLUDE= -I. -I../../Include
170 # Path to search for .c files
171 vpath %.c .;..;$(SRCPATH)
173 # Top of the package tree
176 # Directory for output files
178 OUT= $(OUTBASE)$(MODE)/
180 # Additional libraries
183 # Utility macro: replacement for $^
184 ^^= $(filter-out %$A,$^)
185 # Use $(L^) to link with all libraries specified as dependencies
186 L^= $(addprefix -l,$(basename $(notdir $(filter %$A,$+))))
190 $(CC) $(CFLAGS.LIB) -c $< -o $@
193 $(LD) $(LDFLAGS.A) -o $@ $(^^) $(L^)
196 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
198 %.pyd: $(OUT)%module$O $(OUT)%_m.def
199 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(PYTHON.IMPLIB) $(LIBS)
202 $(LD) $(LDFLAGS.EXE) -o $@ $(^^) $(L^)
205 @echo Creating .DEF file: $@
206 @echo LIBRARY $(notdir $*) INITINSTANCE TERMINSTANCE >$@
207 ifeq ($(DESCRIPTION.$(notdir $*)$(MODULE.EXT)),)
208 @echo DESCRIPTION $(DQUOTE)Python standard module $(notdir $*)$(DQUOTE) >>$@
210 @echo DESCRIPTION $(DQUOTE)$(DESCRIPTION.$(notdir $*)$(MODULE.EXT))$(DQUOTE) >>$@
212 @echo DATA MULTIPLE NONSHARED >>$@
214 @echo init$(notdir $*) >>$@
217 @echo Creating .DEF file: $@
218 @echo NAME $(notdir $*) $(EXETYPE.$(notdir $*).exe) >$@
219 @echo DESCRIPTION $(DQUOTE)$(DESCRIPTION.$(notdir $*).exe)$(DQUOTE) >>$@
220 @echo STACKSIZE 1572864 >>$@
225 PYTHON.LIB= $(PYTHON_LIB)_s$A
226 PYTHON.IMPLIB= $(PYTHON_LIB)$A
228 PYTHON.EXEIMP= $(PYTHON.IMPLIB)
231 PYTHON.EXEIMP= $(PYTHON_LIB).a
234 PYTHON.DLL= $(PYTHON_LIB).dll
235 PYTHON.DEF= $(PYTHON_LIB).def
236 PYTHON.EXE= python.exe
237 PYTHONPM.EXE= pythonpm.exe
239 LIBRARY= $(PYTHON.LIB)
240 LD_LIBRARY= $(PYTHON.IMPLIB)
242 # Additional executable parameters
243 EXETYPE.$(PYTHON.EXE)= WINDOWCOMPAT
244 EXETYPE.$(PYTHONPM.EXE)= WINDOWAPI
245 EXETYPE.$(PGEN.EXE)= WINDOWCOMPAT
246 DESCRIPTION.$(PYTHON.EXE)= Python object-oriented programming language interpreter for OS/2
247 DESCRIPTION.$(PYTHONPM.EXE)= $(DESCRIPTION.$(PYTHON.EXE))
248 DESCRIPTION.$(PGEN.EXE)= Python object-oriented programming language parser generator for OS/2
250 # Module descriptions
251 DESCRIPTION.zlib$(MODULE.EXT)= Python Extension DLL for accessing the InfoZip compression library
252 DESCRIPTION.crypt$(MODULE.EXT)= Python Extension DLL implementing the crypt$(BRO)$(BRC) function
253 DESCRIPTION._tkinter$(MODULE.EXT)= Python Extension DLL for access to Tcl/Tk Environment
254 DESCRIPTION.mpz$(MODULE.EXT)= Python Extension DLL for access to GNU multi-precision library
255 DESCRIPTION.readline$(MODULE.EXT)= Python Extension DLL for access to GNU ReadLine library
256 DESCRIPTION.bsddb185$(MODULE.EXT)= Python Extension DLL for access to BSD DB (v1.85) library
257 DESCRIPTION._curses$(MODLIB.EXT)= Python Extension DLL for access to ncurses library
258 DESCRIPTION.pyexpat$(MODULE.EXT)= Python Extension DLL for access to expat library
259 DESCRIPTION.bz2$(MODULE.EXT)= Python Extension DLL for accessing the bz2 compression library
262 SRC.OS2EMX= config.c dlfcn.c getpathp.c
263 SRC.MAIN= $(addprefix $(TOP), \
264 Modules/getbuildinfo.c \
266 SRC.MODULES= $(addprefix $(TOP), \
268 Modules/signalmodule.c \
269 Modules/posixmodule.c \
270 Modules/threadmodule.c \
271 Modules/arraymodule.c \
273 Modules/cmathmodule.c \
274 Modules/_codecsmodule.c \
276 Modules/cStringIO.c \
278 Modules/datetimemodule.c \
280 Modules/errnomodule.c \
281 Modules/fcntlmodule.c \
283 Modules/itertoolsmodule.c \
284 Modules/_localemodule.c \
285 Modules/mathmodule.c \
287 Modules/md5module.c \
289 Modules/pcremodule.c \
291 Modules/_randommodule.c \
292 Modules/regexmodule.c \
294 Modules/rgbimgmodule.c \
295 Modules/shamodule.c \
297 Modules/stropmodule.c \
298 Modules/structmodule.c \
299 Modules/symtablemodule.c \
301 Modules/timemodule.c \
302 Modules/timingmodule.c \
304 Modules/xreadlinesmodule.c \
305 Modules/xxsubtype.c \
307 SRC.PARSE1= $(addprefix $(TOP), \
315 Parser/metagrammar.c)
316 SRC.PARSE2= $(addprefix $(TOP), \
319 SRC.PARSER= $(SRC.PARSE1) \
321 SRC.PYTHON= $(addprefix $(TOP), \
322 Python/bltinmodule.c \
323 Python/exceptions.c \
329 Python/frozenmain.c \
332 Python/getcompiler.c \
333 Python/getcopyright.c \
335 Python/getplatform.c \
336 Python/getversion.c \
341 Python/modsupport.c \
342 Python/mysnprintf.c \
347 Python/structmember.c \
352 Python/dynload_shlib.c \
354 SRC.OBJECT= $(addprefix $(TOP), \
356 Objects/boolobject.c \
357 Objects/bufferobject.c \
358 Objects/cellobject.c \
359 Objects/classobject.c \
361 Objects/complexobject.c \
362 Objects/descrobject.c \
363 Objects/dictobject.c \
364 Objects/enumobject.c \
365 Objects/fileobject.c \
366 Objects/floatobject.c \
367 Objects/frameobject.c \
368 Objects/funcobject.c \
369 Objects/intobject.c \
370 Objects/iterobject.c \
371 Objects/listobject.c \
372 Objects/longobject.c \
373 Objects/methodobject.c \
374 Objects/moduleobject.c \
377 Objects/rangeobject.c \
378 Objects/sliceobject.c \
379 Objects/stringobject.c \
380 Objects/structseq.c \
381 Objects/tupleobject.c \
382 Objects/typeobject.c \
383 Objects/unicodeobject.c \
384 Objects/unicodectype.c \
385 Objects/weakrefobject.c)
387 SRC.LIB= $(SRC.OS2EMX) \
393 OBJ.LIB= $(addprefix $(OUT),$(notdir $(SRC.LIB:.c=$O)))
395 SRC.PGEN= $(SRC.PARSE1) \
396 $(addprefix $(TOP), \
397 Objects/obmalloc.c) \
398 $(addprefix $(TOP), \
399 Python/mysnprintf.c) \
400 $(addprefix $(TOP), \
401 Parser/tokenizer_pgen.c \
404 Parser/printgrammar.c \
406 Parser/firstsets.c) \
408 OBJ.PGEN= $(addprefix $(OUT),$(notdir $(SRC.PGEN:.c=$O)))
410 SRC.EXE= $(TOP)Modules/python.c
411 SRC.PMEXE= pythonpm.c
413 # Python modules to be dynamically loaded that:
414 # 1) have only single source file and require no extra libs
415 # 2) use the standard module naming convention
416 # (the 'module' in ?????module.c is assumed)
417 # - these can be built with implicit rules
418 EASYEXTMODULES= fpectl \
425 # Python modules to be dynamically loaded that need explicit build rules
426 # (either multiple source files and/or non-standard module naming)
427 # (NOTE: use shortened names for modules affected by 8 char name limit)
428 HARDEXTMODULES= _hotshot \
433 # Python modules that are used as libraries and therefore must use
437 # Python external ($(MODULE.EXT)) modules - can be EASY or HARD
438 ifeq ($(HAVE_ZLIB),yes)
439 HARDEXTMODULES+= zlib
441 ifeq ($(HAVE_UFC),yes)
442 HARDEXTMODULES+= crypt
444 ifeq ($(HAVE_TCLTK),yes)
445 HARDEXTMODULES+= _tkinter
446 CFLAGS+= -DHAS_DIRENT -I/TclTk80/include
447 TK_LIBS+= -L/TclTk80/lib -ltcl80 -ltk80
449 ifeq ($(HAVE_GMPZ),yes)
452 ifeq ($(HAVE_GREADLINE),yes)
453 HARDEXTMODULES+= readline
455 ifeq ($(HAVE_BSDDB),yes)
456 HARDEXTMODULES+= bsddb185
458 ifeq ($(HAVE_NCURSES),yes)
459 LIBEXTMODULES+= _curses
460 HARDEXTMODULES+= _curses_
462 ifeq ($(HAVE_GDBM),yes)
463 HARDEXTMODULES+= gdbm dbm
465 ifeq ($(HAVE_BZ2),yes)
469 # Expat is now distributed with the Python source
470 HARDEXTMODULES+= pyexpat
471 EXPAT.INC= -I../../Modules/expat
472 EXPAT.DEF= -DHAVE_EXPAT_H -DXML_NS=1 -DXML_DTD=1 -DXML_BYTE_ORDER=12 \
473 -DXML_CONTENT_BYTES=1024 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1
474 EXPAT.SRC= $(addprefix ../../Modules/expat/, \
479 # all the external modules
480 EXTERNDLLS= $(addsuffix $(MODULE.EXT),$(patsubst %module,%,$(EASYEXTMODULES)))
481 EXTERNDLLS+= $(addsuffix $(MODULE.EXT),$(patsubst %module,%,$(HARDEXTMODULES)))
482 EXTERNDLLS+= $(addsuffix $(MODLIB.EXT),$(patsubst %module,%,$(LIBEXTMODULES)))
485 all: $(OUT) $(PYTHON.LIB) $(PYTHON.DEF) $(PYTHON.IMPLIB) $(PYTHON.DLL) \
489 make PY_DEF= $(PYTHON.EXE) $(PYTHONPM.EXE) $(PGEN.EXE) $(EXTERNDLLS)
493 rm -f $(PYTHON.LIB) $(PYTHON.IMPLIB) $(PYTHON.EXEIMP) $(PYTHON.DLL) \
494 $(PYTHON.EXE) $(PYTHONPM.EXE) $(PGEN.EXE) *$(MODULE.EXT)
495 find ../../Lib -name "*.py
[co]" -exec rm {} ";"
498 @echo Packing everything with lxLite...
499 lxlite $(PYTHON.DLL) $(PYTHON.EXE) $(PYTHONPM.EXE) $(PGEN.EXE)
502 makedep -f $(OUTBASE)python.dep -o $(BUCK)O -p $(BUCK)\(OUT\) \
503 -r -c $(INCLUDE) $(SRC.LIB) $(SRC.PGEN)
510 $(PYTHON.LIB): $(OBJ.LIB)
512 $(AR) $(ARFLAGS) $@ $^
514 # the Python core DLL .def file needs to have a number of non-static
515 # symbols that aren't part of the Python C API removed (commented out)
516 # from the DLL export list.
517 $(PYTHON.DEF): $(PYTHON.LIB)
518 @echo Creating .DEF file: $@
519 @echo LIBRARY $(PYTHON_LIB) INITINSTANCE TERMINSTANCE >$@
520 @echo DESCRIPTION $(DQUOTE)Python $(PYTHON_VER) Core DLL$(DQUOTE) >>$@
522 @echo DATA MULTIPLE NONSHARED >>$@
524 $(EXPLIB) -u $(PYTHON.LIB) |\
525 sed -e "/^ .init.
*/s
/^
/; /" \
526 -e "/^ .pcre_.
*/s
/^
/; /" \
527 -e "/^ .array_methods
/s
/^
/; /" \
528 -e "/^ .fast_save_leave
/s
/^
/; /" \
529 -e "/^ .dlopen
/s
/^
/; /" \
530 -e "/^ .dlsym
/s
/^
/; /" \
531 -e "/^ .dlclose
/s
/^
/; /" \
532 -e "/^ .dlerror
/s
/^
/; /" \
533 -e "/^ ._Py_re_.
*/s
/^
/; /" \
534 -e "/^ ._Py_MD5.
*/s
/^
/; /" >>$@
536 $(PYTHON.IMPLIB): $(PYTHON.DEF)
539 $(PYTHON.EXEIMP): $(PYTHON.DEF)
542 $(PYTHON.DLL): $(OUT)dllentry$O $(PYTHON.LIB) $(PYTHON.DEF)
544 # Explicit make targets for the .EXEs to be able to use LD to link
545 # (so that fork() will work if required)
547 $(PYTHON.EXE): $(SRC.EXE) $(PYTHON.EXEIMP) $(OUT)python.def
548 $(CC) -Zmt $(LDMODE.EXE) -Zcrtdll -Wall $(INCLUDE) -L. -lgcc -o $@ $(SRC.EXE) $(PYTHON.EXEIMP) $(LIBS) $(OUT)python.def
549 $(EXEOPT) -aq $(PYTHON.EXE) -h$(NFILES)
551 $(PYTHONPM.EXE): $(SRC.PMEXE) $(PYTHON.EXEIMP) $(OUT)pythonpm.def
552 $(CC) -Zmt $(LDMODE.EXE) -Zcrtdll -Wall $(INCLUDE) -L. -lgcc -o $@ $(SRC.PMEXE) $(PYTHON.EXEIMP) $(LIBS) $(OUT)pythonpm.def
553 $(EXEOPT) -aq $(PYTHONPM.EXE) -h$(NFILES)
555 $(PGEN.EXE): $(OBJ.PGEN) $(OUT)pgen.def
557 # Explicit building instructions for those external modules that require
558 # awkward handling (due e.g. to non-std naming, or multiple source files)
561 _hotshot$(MODULE.EXT): $(OUT)_hotshot$O $(OUT)_hotshot_m.def $(PYTHON.IMPLIB)
562 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
564 _socket$(MODULE.EXT): $(OUT)socketmodule$O $(OUT)_socket_m.def $(PYTHON.IMPLIB)
565 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
567 # _testcapi needs to be renamed to be useful
568 _testcapi$(MODULE.EXT): $(OUT)_testcapimodule$O $(OUT)_testcapi_m.def $(PYTHON.IMPLIB)
569 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
571 _testcap$(MODULE.EXT): _testcapi$(MODULE.EXT)
574 # unicodedata needs to be renamed to be useful
575 unicodedata$(MODULE.EXT): $(OUT)unicodedata$O $(OUT)unicodedata_m.def $(PYTHON.IMPLIB)
576 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) $(MODULE_LIBS)
578 unicoded$(MODULE.EXT): unicodedata$(MODULE.EXT)
581 # - optional modules (requiring other software to be installed)
582 bsddb185$(MODULE.EXT): $(OUT)bsddbmodule$O $(OUT)bsddb185_m.def $(PYTHON.IMPLIB)
583 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) -ldb $(LIBS)
585 crypt$(MODULE.EXT): $(OUT)cryptmodule$O $(OUT)crypt_m.def $(PYTHON.IMPLIB)
586 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) -lufc $(LIBS)
588 # The _curses_panel module requires a couple of ncurses library entry
589 # points, which are best exposed as exports from the _curses module DLL
591 @echo Creating .DEF file: $@
592 @echo LIBRARY $(notdir $*) INITINSTANCE TERMINSTANCE >$@
593 @echo DESCRIPTION $(DQUOTE)$(DESCRIPTION.$(notdir $*)$(MODLIB.EXT))$(DQUOTE) >>$@
594 @echo DATA MULTIPLE NONSHARED >>$@
596 @echo init_curses >>$@
597 @echo wnoutrefresh >>$@
598 @echo _nc_panelhook >>$@
599 @echo is_linetouched >>$@
604 $(OUT)_curses_panel_m.def:
605 @echo Creating .DEF file: $@
606 @echo LIBRARY $(notdir $*) INITINSTANCE TERMINSTANCE >$@
607 @echo DESCRIPTION $(DQUOTE)Python standard module $(notdir $*)$(DQUOTE) >>$@
608 @echo DATA MULTIPLE NONSHARED >>$@
610 @echo _curses.wnoutrefresh >>$@
611 @echo _curses._nc_panelhook >>$@
612 @echo _curses.is_linetouched >>$@
613 @echo _curses.mvwin >>$@
614 @echo _curses.stdscr >>$@
615 @echo _curses.wtouchln >>$@
617 @echo init_curses_panel >>$@
619 _curses$(MODLIB.EXT): $(OUT)_cursesmodule$O $(OUT)_curses_m.def $(PYTHON.IMPLIB)
620 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lncurses
622 # curses_panel needs to be renamed to be useful
623 _curses_panel$(MODULE.EXT): $(OUT)_curses_panel$O $(OUT)_curses_panel_m.def $(PYTHON.IMPLIB)
624 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lpanel
626 _curses_$(MODULE.EXT): _curses_panel$(MODULE.EXT)
629 dbm$(MODULE.EXT): $(OUT)dbmmodule$O $(OUT)dbm_m.def $(PYTHON.IMPLIB)
630 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lgdbm
632 gdbm$(MODULE.EXT): $(OUT)gdbmmodule$O $(OUT)gdbm_m.def $(PYTHON.IMPLIB)
633 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lgdbm
635 mpz$(MODULE.EXT): $(OUT)mpzmodule$O $(OUT)mpz_m.def $(PYTHON.IMPLIB)
636 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lgmp
638 # Expat is now distributed with Python, so use the included version
639 $(OUT)pyexpat$O: ../../Modules/pyexpat.c
640 $(CC) $(CFLAGS) $(EXPAT.INC) -c -o $@ $^
641 $(OUT)xmlparse$O: ../../Modules/expat/xmlparse.c
642 $(CC) $(CFLAGS) $(EXPAT.INC) $(EXPAT.DEF) -c -o $@ $^
643 $(OUT)xmlrole$O: ../../Modules/expat/xmlrole.c
644 $(CC) $(CFLAGS) $(EXPAT.INC) $(EXPAT.DEF) -c -o $@ $^
645 $(OUT)xmltok$O: ../../Modules/expat/xmltok.c
646 $(CC) $(CFLAGS) $(EXPAT.INC) $(EXPAT.DEF) -c -o $@ $^
647 pyexpat$(MODULE.EXT): $(OUT)pyexpat$O $(OUT)xmlparse$O $(OUT)xmlrole$O \
648 $(OUT)xmltok$O $(OUT)pyexpat_m.def $(PYTHON.IMPLIB)
649 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS)
651 readline$(MODULE.EXT): $(OUT)readline$O $(OUT)readline_m.def $(PYTHON.IMPLIB)
652 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lreadline -lncurses
654 #_tkinter$(MODULE.EXT): $(OUT)_tkinter$O $(OUT)tclNotify$O $(OUT)tkappinit$O
655 _tkinter$(MODULE.EXT): $(OUT)_tkinter$O $(OUT)tclNotify$O \
656 $(OUT)_tkinter_m.def $(PYTHON.IMPLIB)
657 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) $(TK_LIBS)
659 zlib$(MODULE.EXT): $(OUT)zlibmodule$O $(OUT)zlib_m.def $(PYTHON.IMPLIB)
660 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lz
662 bz2$(MODULE.EXT): $(OUT)bz2module$O $(OUT)bz2_m.def $(PYTHON.IMPLIB)
663 $(LD) $(LDFLAGS.DLL) -o $@ $(^^) $(L^) $(LIBS) -lbz2
667 -find ../../Lib -name "*.py
[co]" -exec rm {} ";"
668 -./python -E -tt ../../lib/test/regrtest.py -l -u "network
"
669 ./python -E -tt ../../lib/test/regrtest.py -l -u "network
"
671 -include $(OUTBASE)python.dep