+# -*- makefile -*-
#----------------------------------------------------------------------------
# Name: makefile.nt
# Purpose: Win32, VC++ 5/6 makefile for wxPython
# Copyright: (c) 1998 by Total Control Software
# Licence: wxWindows license
#----------------------------------------------------------------------------
-VERSION=2.0b9
+VERSION=2.1b2
# Set WXDIR to the root wxWindows directory for your system
WXDIR = $(WXWIN)
# If your wxWindows is built as a DLL, set this to 1. Using 0 or unset
# means that wxWindows will be staticaly linked with wxPython.
-#WXUSINGDLL=1
+WXUSINGDLL=1
# If you want to compile in code to aquire/release the Python
# Interpreter Lock at the appropriate places
WITH_GLCANVAS=1
# (experimental)
-SEPARATE=0
+SEPARATE=1
#----------------------------------------------------------------------
GENCODEDIR=msw
-!include $(WXDIR)\src\ntwxwin.mak
+!include $(WXDIR)\src\makevc.env
#----------------------------------------------------------------------
OBJECTS = wx.obj helpers.obj windows.obj events.obj \
misc.obj gdi.obj mdi.obj controls.obj \
controls2.obj windows2.obj cmndlgs.obj stattool.obj \
- frames.obj windows3.obj image.obj \
+ frames.obj windows3.obj image.obj printfw.obj \
+ misc2.obj \
!if "$(SEPARATE)" == "0"
- utils.obj \
+ utils.obj \
!if "$(WITH_GLCANVAS)" == "1"
glcanvas.obj
!endif
TARGET3 = glcanvasc
OBJECTS3 = glcanvas.obj
target3=$(TARGETDIR)\$(TARGET3).pyd
+
+TARGET4 = oglcc
+OBJECTS4 = ogl.obj
+target4=$(TARGETDIR)\$(TARGET4).pyd
!endif
PYMODULES = $(TARGETDIR)\wx.py $(TARGETDIR)\events.py \
$(TARGETDIR)\stattool.py $(TARGETDIR)\frames.py \
$(TARGETDIR)\windows3.py $(TARGETDIR)\__init__.py \
$(TARGETDIR)\utils.py $(TARGETDIR)\image.py \
+ $(TARGETDIR)\printfw.py $(TARGETDIR)\misc2.py \
!if "$(WITH_GLCANVAS)" == "1"
$(TARGETDIR)\glcanvas.py
!endif
<<
+$(TARGETDIR)\$(TARGET4).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS4)
+ $(link) @<<
+/out:$@ /dll
+$(LFLAGS) /def:$(TARGET4).def /implib:./$(TARGET4).lib
+$(DUMMYOBJ) $(OBJECTS4)
+$(LIBS) wxc.lib $(WXDIR)\lib\ogl$(LIBEXT).lib
+<<
+
+
$(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
$(rc) -r /i$(WXDIR)\include -fo$@ $(TARGET).rc
-erase $(TARGET3).exp
-erase $(TARGET3).lib
-erase $(TARGETDIR)\$(TARGET3).*
+ -erase $(TARGET4).exp
+ -erase $(TARGET4).lib
+ -erase $(TARGETDIR)\$(TARGET4).*
!endif
-erase $(TARGETDIR)\$(TARGET).pyd
-erase $(TARGETDIR)\*.py
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py : windows3.i my_typemaps.i _defs.i
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py : events.i my_typemaps.i _defs.i
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py : misc.i my_typemaps.i _defs.i
+$(GENCODEDIR)/misc2.cpp $(GENCODEDIR)/misc2.py : misc2.i my_typemaps.i _defs.i
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py : gdi.i my_typemaps.i _defs.i
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py : mdi.i my_typemaps.i _defs.i
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py : controls.i my_typemaps.i _defs.i
$(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py : stattool.i my_typemaps.i _defs.i
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py : frames.i my_typemaps.i _defs.i
$(GENCODEDIR)/image.cpp $(GENCODEDIR)/image.py : image.i my_typemaps.i _defs.i
+$(GENCODEDIR)/printfw.cpp $(GENCODEDIR)/printfw.py : printfw.i my_typemaps.i _defs.i
!if "$(SEPARATE)" == "1"
$(GENCODEDIR)\utils.cpp $(GENCODEDIR)\utils.py : utils.i my_typemaps.i
swig $(SWIGFLAGS) -o $(GENCODEDIR)/utils.cpp utils.i
+$(GENCODEDIR)\ogl.cpp $(GENCODEDIR)\ogl.py : ogl.i my_typemaps.i
+ swig $(SWIGFLAGS) -o $(GENCODEDIR)/ogl.cpp ogl.i
+
!if "$(WITH_GLCANVAS)" == "1"
$(GENCODEDIR)\glcanvas.cpp $(GENCODEDIR)\glcanvas.py : glcanvas.i my_typemaps.i
swig $(SWIGFLAGS) -c -o $(GENCODEDIR)/glcanvas.cpp glcanvas.i
!endif
!else
-$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
+$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i
!if "$(WITH_GLCANVAS)" == "1"
$(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/glcanvas.py : glcanvas.i my_typemaps.i _defs.i
!endif
$(TARGETDIR)\windows3.py : $(GENCODEDIR)\windows3.py
$(TARGETDIR)\events.py : $(GENCODEDIR)\events.py
$(TARGETDIR)\misc.py : $(GENCODEDIR)\misc.py
+$(TARGETDIR)\misc2.py : $(GENCODEDIR)\misc2.py
$(TARGETDIR)\gdi.py : $(GENCODEDIR)\gdi.py
$(TARGETDIR)\mdi.py : $(GENCODEDIR)\mdi.py
$(TARGETDIR)\controls.py : $(GENCODEDIR)\controls.py
$(TARGETDIR)\stattool.py : $(GENCODEDIR)\stattool.py
$(TARGETDIR)\__init__.py : __init__.py
$(TARGETDIR)\utils.py : $(GENCODEDIR)\utils.py
-$(TARGETDIR)\image.py : $(GENCODEDIR)\utils.py
+$(TARGETDIR)\image.py : $(GENCODEDIR)\image.py
+$(TARGETDIR)\printfw.py : $(GENCODEDIR)\printfw.py
+
!if "$(WITH_GLCANVAS)" == "1"
$(TARGETDIR)\glcanvas.py : $(GENCODEDIR)\glcanvas.py
!endif
$(GENCODEDIR)/windows3.cpp $(GENCODEDIR)/windows3.py \
$(GENCODEDIR)/events.cpp $(GENCODEDIR)/events.py \
$(GENCODEDIR)/misc.cpp $(GENCODEDIR)/misc.py \
+ $(GENCODEDIR)/misc2.cpp $(GENCODEDIR)/misc2.py \
$(GENCODEDIR)/gdi.cpp $(GENCODEDIR)/gdi.py \
$(GENCODEDIR)/mdi.cpp $(GENCODEDIR)/mdi.py \
$(GENCODEDIR)/controls.cpp $(GENCODEDIR)/controls.py \
$(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py \
$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py \
$(GENCODEDIR)/image.cpp $(GENCODEDIR)/image.py \
+ $(GENCODEDIR)/printfw.cpp $(GENCODEDIR)/printfw.py \
!if "$(WITH_GLCANVAS)" == "1"
$(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/glcanvas.py \
!endif