bring OS/2 EMX port build environment up to date
This commit is contained in:
parent
ee5e4cd899
commit
378d3c0e51
|
@ -1,16 +1,16 @@
|
||||||
#####################==================----------------
|
#####################==================----------------
|
||||||
#
|
#
|
||||||
# Top-Level Makefile for Building Python 2.3 for OS/2 using GCC/EMX
|
# Top-Level Makefile for Building Python 2.4 for OS/2 using GCC/EMX
|
||||||
# Originally written by Andrew Zabolotny, <bit@eltech.ru> for Python 1.5.2
|
# Originally written by Andrew Zabolotny, <bit@eltech.ru> for Python 1.5.2
|
||||||
# Modified by Andrew MacIntyre, <andymac@pcug.org.au> for Python 2.3
|
# Modified by Andrew MacIntyre, <andymac@pcug.org.au> for Python 2.4
|
||||||
#
|
#
|
||||||
# This makefile was developed for use with [P]GCC/EMX compiler any
|
# This makefile was developed for use with [P]GCC/EMX compiler any
|
||||||
# version and GNU Make.
|
# version and GNU Make.
|
||||||
#
|
#
|
||||||
# The output of the build is a largish Python23.DLL containing the
|
# The output of the build is a largish Python24.DLL containing the
|
||||||
# essential modules of Python and a small Python.exe program to start
|
# essential modules of Python and a small Python.exe program to start
|
||||||
# the interpreter. When embedding Python within another program, only
|
# the interpreter. When embedding Python within another program, only
|
||||||
# Python23.DLL is needed. We also build python_s.a static library (which
|
# Python24.DLL is needed. We also build python_s.a static library (which
|
||||||
# can be converted into OMF (.lib) format using emxomf tool) and both
|
# can be converted into OMF (.lib) format using emxomf tool) and both
|
||||||
# python.a and python.lib import libraries. Then the optional
|
# python.a and python.lib import libraries. Then the optional
|
||||||
# extension modules, which are OS/2 DLLs renamed with a PYD file extension.
|
# extension modules, which are OS/2 DLLs renamed with a PYD file extension.
|
||||||
|
@ -64,7 +64,7 @@ HAVE_BZ2= no
|
||||||
|
|
||||||
# === install locations ===
|
# === install locations ===
|
||||||
# default value of PYTHONHOME
|
# default value of PYTHONHOME
|
||||||
LIB_DIR=C:/Python23
|
LIB_DIR=C:/Python24
|
||||||
# default is to have everything in or under PYTHONHOME
|
# default is to have everything in or under PYTHONHOME
|
||||||
EXE_DIR=$(LIB_DIR)
|
EXE_DIR=$(LIB_DIR)
|
||||||
DLL_DIR=$(EXE_DIR)
|
DLL_DIR=$(EXE_DIR)
|
||||||
|
@ -220,8 +220,8 @@ $(OUT)%$O: %.c
|
||||||
@echo STACKSIZE 1572864 >>$@
|
@echo STACKSIZE 1572864 >>$@
|
||||||
|
|
||||||
# Output file names
|
# Output file names
|
||||||
PYTHON_VER= 2.3
|
PYTHON_VER= 2.4
|
||||||
PYTHON_LIB= python23
|
PYTHON_LIB= python24
|
||||||
PYTHON.LIB= $(PYTHON_LIB)_s$A
|
PYTHON.LIB= $(PYTHON_LIB)_s$A
|
||||||
PYTHON.IMPLIB= $(PYTHON_LIB)$A
|
PYTHON.IMPLIB= $(PYTHON_LIB)$A
|
||||||
ifeq ($(EXEOMF),yes)
|
ifeq ($(EXEOMF),yes)
|
||||||
|
@ -272,6 +272,7 @@ SRC.MODULES= $(addprefix $(TOP), \
|
||||||
Modules/binascii.c \
|
Modules/binascii.c \
|
||||||
Modules/cmathmodule.c \
|
Modules/cmathmodule.c \
|
||||||
Modules/_codecsmodule.c \
|
Modules/_codecsmodule.c \
|
||||||
|
Modules/collectionsmodule.c \
|
||||||
Modules/cPickle.c \
|
Modules/cPickle.c \
|
||||||
Modules/cStringIO.c \
|
Modules/cStringIO.c \
|
||||||
Modules/_csv.c \
|
Modules/_csv.c \
|
||||||
|
@ -279,6 +280,7 @@ SRC.MODULES= $(addprefix $(TOP), \
|
||||||
Modules/dlmodule.c \
|
Modules/dlmodule.c \
|
||||||
Modules/errnomodule.c \
|
Modules/errnomodule.c \
|
||||||
Modules/fcntlmodule.c \
|
Modules/fcntlmodule.c \
|
||||||
|
Modules/_heapqmodule.c \
|
||||||
Modules/imageop.c \
|
Modules/imageop.c \
|
||||||
Modules/itertoolsmodule.c \
|
Modules/itertoolsmodule.c \
|
||||||
Modules/_localemodule.c \
|
Modules/_localemodule.c \
|
||||||
|
@ -286,8 +288,6 @@ SRC.MODULES= $(addprefix $(TOP), \
|
||||||
Modules/md5c.c \
|
Modules/md5c.c \
|
||||||
Modules/md5module.c \
|
Modules/md5module.c \
|
||||||
Modules/operator.c \
|
Modules/operator.c \
|
||||||
Modules/pcremodule.c \
|
|
||||||
Modules/pypcre.c \
|
|
||||||
Modules/_randommodule.c \
|
Modules/_randommodule.c \
|
||||||
Modules/regexmodule.c \
|
Modules/regexmodule.c \
|
||||||
Modules/regexpr.c \
|
Modules/regexpr.c \
|
||||||
|
@ -343,6 +343,7 @@ SRC.PYTHON= $(addprefix $(TOP), \
|
||||||
Python/mystrtoul.c \
|
Python/mystrtoul.c \
|
||||||
Python/pyfpe.c \
|
Python/pyfpe.c \
|
||||||
Python/pystate.c \
|
Python/pystate.c \
|
||||||
|
Python/pystrtod.c \
|
||||||
Python/pythonrun.c \
|
Python/pythonrun.c \
|
||||||
Python/structmember.c \
|
Python/structmember.c \
|
||||||
Python/symtable.c \
|
Python/symtable.c \
|
||||||
|
@ -366,6 +367,7 @@ SRC.OBJECT= $(addprefix $(TOP), \
|
||||||
Objects/floatobject.c \
|
Objects/floatobject.c \
|
||||||
Objects/frameobject.c \
|
Objects/frameobject.c \
|
||||||
Objects/funcobject.c \
|
Objects/funcobject.c \
|
||||||
|
Objects/genobject.c \
|
||||||
Objects/intobject.c \
|
Objects/intobject.c \
|
||||||
Objects/iterobject.c \
|
Objects/iterobject.c \
|
||||||
Objects/listobject.c \
|
Objects/listobject.c \
|
||||||
|
@ -375,6 +377,7 @@ SRC.OBJECT= $(addprefix $(TOP), \
|
||||||
Objects/object.c \
|
Objects/object.c \
|
||||||
Objects/obmalloc.c \
|
Objects/obmalloc.c \
|
||||||
Objects/rangeobject.c \
|
Objects/rangeobject.c \
|
||||||
|
Objects/setobject.c \
|
||||||
Objects/sliceobject.c \
|
Objects/sliceobject.c \
|
||||||
Objects/stringobject.c \
|
Objects/stringobject.c \
|
||||||
Objects/structseq.c \
|
Objects/structseq.c \
|
||||||
|
@ -491,7 +494,7 @@ python_noncore:
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OUT)*
|
rm -f $(OUT)*
|
||||||
rm -f $(PYTHON.LIB) $(PYTHON.IMPLIB) $(PYTHON.EXEIMP) $(PYTHON.DLL) \
|
rm -f $(PYTHON.LIB) $(PYTHON.IMPLIB) $(PYTHON.EXEIMP) $(PYTHON.DLL) \
|
||||||
$(PYTHON.EXE) $(PYTHONPM.EXE) $(PGEN.EXE) *$(MODULE.EXT)
|
$(PYTHON.EXE) $(PYTHONPM.EXE) $(PGEN.EXE) *$(MODULE.EXT) *.dll
|
||||||
find ../../Lib -name "*.py[co]" -exec rm {} ";"
|
find ../../Lib -name "*.py[co]" -exec rm {} ";"
|
||||||
|
|
||||||
lx:
|
lx:
|
||||||
|
|
|
@ -52,17 +52,18 @@ extern void initarray();
|
||||||
extern void initbinascii();
|
extern void initbinascii();
|
||||||
extern void initcPickle();
|
extern void initcPickle();
|
||||||
extern void initcStringIO();
|
extern void initcStringIO();
|
||||||
|
extern void initcollections();
|
||||||
extern void initcmath();
|
extern void initcmath();
|
||||||
extern void initdatetime();
|
extern void initdatetime();
|
||||||
extern void initdl();
|
extern void initdl();
|
||||||
extern void initerrno();
|
extern void initerrno();
|
||||||
extern void initfcntl();
|
extern void initfcntl();
|
||||||
|
extern void init_heapq();
|
||||||
extern void initimageop();
|
extern void initimageop();
|
||||||
extern void inititertools();
|
extern void inititertools();
|
||||||
extern void initmath();
|
extern void initmath();
|
||||||
extern void initmd5();
|
extern void initmd5();
|
||||||
extern void initoperator();
|
extern void initoperator();
|
||||||
extern void initpcre();
|
|
||||||
extern void initregex();
|
extern void initregex();
|
||||||
extern void initrgbimg();
|
extern void initrgbimg();
|
||||||
extern void initsha();
|
extern void initsha();
|
||||||
|
@ -117,17 +118,18 @@ struct _inittab _PyImport_Inittab[] = {
|
||||||
{"binascii", initbinascii},
|
{"binascii", initbinascii},
|
||||||
{"cPickle", initcPickle},
|
{"cPickle", initcPickle},
|
||||||
{"cStringIO", initcStringIO},
|
{"cStringIO", initcStringIO},
|
||||||
|
{"collections", initcollections},
|
||||||
{"cmath", initcmath},
|
{"cmath", initcmath},
|
||||||
{"datetime", initdatetime},
|
{"datetime", initdatetime},
|
||||||
{"dl", initdl},
|
{"dl", initdl},
|
||||||
{"errno", initerrno},
|
{"errno", initerrno},
|
||||||
{"fcntl", initfcntl},
|
{"fcntl", initfcntl},
|
||||||
|
{"_heapq", init_heapq},
|
||||||
{"imageop", initimageop},
|
{"imageop", initimageop},
|
||||||
{"itertools", inititertools},
|
{"itertools", inititertools},
|
||||||
{"math", initmath},
|
{"math", initmath},
|
||||||
{"md5", initmd5},
|
{"md5", initmd5},
|
||||||
{"operator", initoperator},
|
{"operator", initoperator},
|
||||||
{"pcre", initpcre},
|
|
||||||
{"regex", initregex},
|
{"regex", initregex},
|
||||||
{"rgbimg", initrgbimg},
|
{"rgbimg", initrgbimg},
|
||||||
{"sha", initsha},
|
{"sha", initsha},
|
||||||
|
|
Loading…
Reference in New Issue