#.HDRPATH.c := $(PROJINCLUDE,;= ) $(.HDRPATH.c)
#.PATH.c = .;$(PY_MODULES);$(PY_OBJECTS);$(PY_PARSER);$(PY_PYTHON)
-OTHERLIBS = $(OS2TCPIP)\lib\so32dll.lib $(OS2TCPIP)\lib\tcp32dll.lib \
- $(TCLTK)\Lib\Tcl76.lib $(TCLTK)\Lib\Tk42.lib
+OTHERLIBS = so32dll.lib tcp32dll.lib # Tcl76.lib Tk42.lib
#################
# Inference Rules
$(PATHOBJ)\SysModule.obj \
$(PATHOBJ)\Thread.obj \
$(PATHOBJ)\TraceBack.obj \
- $(PATHOBJ)\FrozenMain.obj
+ $(PATHOBJ)\FrozenMain.obj \
+ $(PATHOBJ)\exceptions.obj \
+ $(PATHOBJ)\symtable.obj \
+ $(PATHOBJ)\codecs.obj \
+ $(PATHOBJ)\future.obj \
+ $(PATHOBJ)\dynload_os2.obj \
+ $(PATHOBJ)\mysnprintf.obj \
+ $(PATHOBJ)\iterobject.obj
# Python's Internal Parser
PARSER = \
$(PATHOBJ)\SliceObject.obj \
$(PATHOBJ)\StringObject.obj \
$(PATHOBJ)\TupleObject.obj \
- $(PATHOBJ)\TypeObject.obj
+ $(PATHOBJ)\TypeObject.obj \
+ $(PATHOBJ)\unicodeobject.obj \
+ $(PATHOBJ)\unicodectype.obj \
+ $(PATHOBJ)\cellobject.obj \
+ $(PATHOBJ)\descrobject.obj \
+ $(PATHOBJ)\weakrefobject.obj \
+ $(PATHOBJ)\structseq.obj
# Extension Modules (Built-In or as Separate DLLs)
MODULES = \
$(PATHOBJ)\SelectModule.obj \
$(PATHOBJ)\SignalModule.obj \
$(PATHOBJ)\SocketModule.obj \
- $(PATHOBJ)\SoundEx.obj \
$(PATHOBJ)\StropModule.obj \
$(PATHOBJ)\StructModule.obj \
$(PATHOBJ)\TimeModule.obj \
$(PATHOBJ)\ThreadModule.obj \
- $(PATHOBJ)\YUVConvert.obj
+ $(PATHOBJ)\YUVConvert.obj \
+ $(PATHOBJ)\bufferobject.obj \
+ $(PATHOBJ)\gcmodule.obj
# Standalone Parser Generator Program (Shares Some of Python's Modules)
PGEN = \
# /Gm = Use Multithread Runtime
# /Gd = Dynamically Load Runtime
# /Ms = Use _System Calling Convention (vs _Optlink)
- # (to allow non-VAC++ code to call into Python15.dll)
+ # (to allow non-VAC++ code to call into Python22.dll)
_OPT = /O /Gl
# /O = Enable Speed-Optimizations
###################
# Primary Target(s)
###################
-All: obj noise PyCore.lib Python15.lib PGen.exe \
- Python.exe PythonPM.exe Python15.dll _tkinter.dll
+All: obj noise PyCore.lib Python22.lib PGen.exe \
+ Python.exe PythonPM.exe Python22.dll # _tkinter.dll
Modules: $(MODULES)
Objects: $(OBJECTS)
##############
# Python Extension DLL: Tcl/Tk Interface
-_tkinter.dll: $(PATHOBJ)\_tkinter.obj Python15.lib _tkinter.def
- @ Echo Linking $@ As DLL
- @ $(CC) $(CFLAGS) /B"/NOE" $(_DLL) /Fe$@ $(_MAP) $** $(OTHERLIBS) >>$(ERRS)
+#_tkinter.dll: $(PATHOBJ)\_tkinter.obj Python22.lib _tkinter.def
+# @ Echo Linking $@ As DLL
+# @ $(CC) $(CFLAGS) /B"/NOE" $(_DLL) /Fe$@ $(_MAP) $** $(OTHERLIBS) >>$(ERRS)
-$(PATHOBJ)\_tkinter.obj: $(PY_MODULES)\_tkinter.c
- @ Echo Compiling $**
- @ $(CC) -c $(CFLAGS) $(_DLL) -Fo$@ $** >>$(ERRS)
+#$(PATHOBJ)\_tkinter.obj: $(PY_MODULES)\_tkinter.c
+# @ Echo Compiling $**
+# @ $(CC) -c $(CFLAGS) $(_DLL) -Fo$@ $** >>$(ERRS)
# Object Library of All Essential Python Routines
PyCore.lib: $(MODULES) $(OBJECTS) $(PARSER) $(PYTHON) $(PATHOBJ)\Config.obj
@ Echo Adding Updated Object Files to Link Library $@
@ ! ILIB $@ /NOLOGO /NOBACKUP -+$? ; >>$(ERRS)
-Python15.dll: $(PATHOBJ)\Compile.obj PyCore.lib Python.def
+Python22.dll: $(PATHOBJ)\Compile.obj PyCore.lib Python.def
@ Echo Linking $@ As DLL
@ $(CC) $(CFLAGS) /B"/NOE" $(_DLL) /Fe$@ $(_MAP) $** $(OTHERLIBS) >>$(ERRS)
- @ Echo Compressing $@ with LxLite
- @ lxlite $@
+# @ Echo Compressing $@ with LxLite
+# @ lxlite $@
# IBM Linker Requires One Explicit .OBJ To Build a .DLL from a .LIB
$(PATHOBJ)\Compile.obj: $(PY_PYTHON)\Compile.c
@ Echo Compiling $**
@ $(CC) -c $(CFLAGS) $(_DLL) -Fo$@ $** >>$(ERRS)
-# Import Library for Using the Python15.dll
-Python15.lib: Python.def
+# Import Library for Using the Python22.dll
+Python22.lib: Python.def
@ Echo Making $@
@ IMPLIB /NOLOGO /NOIGNORE $@ $** >>$(ERRS)
@ ILIB /NOLOGO /CONVFORMAT /NOEXTDICTIONARY /NOBROWSE /NOBACKUP $@; >>$(ERRS)
-# Small Command-Line Program to Start Interpreter in Python15.dll
-Python.exe: $(PATHOBJ)\Python.obj Python15.lib
+# Small Command-Line Program to Start Interpreter in Python22.dll
+Python.exe: $(PATHOBJ)\Python.obj Python22.lib
@ Echo Linking $@ As EXE
@ $(CC) $(CFLAGS) $(_EXE) /B"/PM:VIO /STACK:360000" /Fe$@ $(_MAP) $** $(OTHERLIBS) >>$(ERRS)
-# Small PM-GUI Program to Start Interpreter in Python15.dll
-PythonPM.exe: $(PATHOBJ)\Python.obj Python15.lib
+# Small PM-GUI Program to Start Interpreter in Python22.dll
+PythonPM.exe: $(PATHOBJ)\Python.obj Python22.lib
@ Echo Linking $@ As EXE
@ $(CC) $(CFLAGS) $(_EXE) /B"/PM:PM /STACK:360000" /Fe$@ $(_MAP) $** $(OTHERLIBS) >>$(ERRS)
# Remove All Targets, Including Final Binaries
distclean: clean
- -- Del /Q PyCore.lib Python15.lib >NUL 2>&1
- -- Del /Q Python15.dll Python.exe PGen.exe >NUL 2>&1
+ -- Del /Q PyCore.lib Python22.lib >NUL 2>&1
+ -- Del /Q Python22.dll Python.exe PGen.exe >NUL 2>&1
-release: Python.exe Python15.dll Python15.lib
+release: Python.exe Python22.dll Python22.lib
-- @Echo Y | copy /U Python.exe D:\EXEs
- -- @Echo Y | copy /U Python15.dll D:\DLLs
- -- @Echo Y | copy /U Python15.lib E:\Tau\Lib
+ -- @Echo Y | copy /U Python22.dll D:\DLLs
+ -- @Echo Y | copy /U Python22.lib E:\Tau\Lib
-- @Echo Y | copy /U _tkinter.dll D:\Python
test:
/* Provide a default library so writers of extension modules
* won't have to explicitly specify it anymore
*/
-#pragma library("Python15.lib")
+#pragma library("Python22.lib")
/***************************************************/
/* 32-Bit IBM VisualAge C/C++ v3.0 for OS/2 */
/* #define HAVE_LONG_LONG 1 */ /* VAC++ does not support (long long) */
/* #define SIZEOF_LONG_LONG 8 */ /* Count of Bytes in a (long long) */
+/* unicode definines */
+#define Py_USING_UNICODE
+#define PY_UNICODE_TYPE wchar_t
+#define Py_UNICODE_SIZE SIZEOF_SHORT
+
+/* dynamic loading */
+#define HAVE_DYNAMIC_LOADING 1
+
/* Define if type char is unsigned and you are not using gcc. */
#ifndef __CHAR_UNSIGNED__
/* #undef __CHAR_UNSIGNED__ */
/* #define HAVE_GETUID 1 */
/* Unix-Specific */
-#define HAVE_SYS_UN_H 1 /* #include <sys/un.h> */
+/* #define HAVE_SYS_UN_H 1 /* #include <sys/un.h> */
/* #define HAVE_SYS_UTSNAME_H 1 */ /* #include <sys/utsname.h> */
/* #define HAVE_SYS_WAIT_H 1 */ /* #include <sys/wait.h> */
/* #define HAVE_UNISTD_H 1 */ /* #include <unistd.h> */