X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b62bdb487fd31b63cc8c5e2e20014814a378a469..1f2f0331455e0a91fdbc57afefe8f8c7c0db9392:/utils/wxPython/src/makefile.nt diff --git a/utils/wxPython/src/makefile.nt b/utils/wxPython/src/makefile.nt index 4929e3e9b8..5bdbf2fb7f 100644 --- a/utils/wxPython/src/makefile.nt +++ b/utils/wxPython/src/makefile.nt @@ -20,7 +20,8 @@ PYTHONDIR=e:\Tools\Python15 FINAL=0 # Set this to where you want the stuff installed at. It should -# be a directory contained in a PYTHONPATH directory. +# be a directory contained in a PYTHONPATH directory, and should be +# named wxPython TARGETDIR=.. # Set this to 1 for make to pre-compile the Python modules, 0 to @@ -28,6 +29,8 @@ TARGETDIR=.. # runtime. COMPILEPY=0 +SEPARATE=0 + #---------------------------------------------------------------------- WXUSINGDLL=0 @@ -37,6 +40,8 @@ THISDIR=$(WXDIR)\utils\wxPython EXTRALIBS=$(PYTHONDIR)\libs\python15.lib EXTRAINC=-I$(PYTHONDIR)\include -I. EXTRAFLAGS=/Fpwxp.pch /YXhelpers.h -DSWIG_GLOBAL -DHAVE_CONFIG_H +OVERRIDEFLAGS=/GX- + SWIGFLAGS=-c++ -shadow -python -dnone -D__WXMSW__ GENCODEDIR=msw @@ -46,18 +51,29 @@ GENCODEDIR=msw #---------------------------------------------------------------------- -TARGET = wxpc +TARGET = wxc -OBJECTS = wxp.obj helpers.obj windows.obj events.obj \ +OBJECTS = wx.obj helpers.obj windows.obj events.obj \ misc.obj gdi.obj mdi.obj controls.obj \ - controls2.obj windows2.obj cmndlgs.obj + controls2.obj windows2.obj cmndlgs.obj stattool.obj \ + frames.obj \ +!if "$(SEPARATE)" == "0" + utils.obj +!else + +TARGET2 = utilsc +OBJECTS2 = utils.obj +target2=$(TARGETDIR)\$(TARGET2).pyd +!endif -PYMODULES = $(TARGETDIR)\wxp.py $(TARGETDIR)\events.py \ +PYMODULES = $(TARGETDIR)\wx.py $(TARGETDIR)\events.py \ $(TARGETDIR)\windows.py $(TARGETDIR)\misc.py \ $(TARGETDIR)\gdi.py $(TARGETDIR)\mdi.py \ $(TARGETDIR)\controls.py $(TARGETDIR)\controls2.py \ $(TARGETDIR)\windows2.py $(TARGETDIR)\cmndlgs.py \ - $(TARGETDIR)\__init__.py + $(TARGETDIR)\stattool.py $(TARGETDIR)\frames.py \ + $(TARGETDIR)\utils.py $(TARGETDIR)\__init__.py + #---------------------------------------------------------------------- @@ -70,11 +86,14 @@ DEBUGLFLAGS = /INCREMENTAL:NO LFLAGS= $(DEBUGLFLAGS) /DLL /def:$(TARGET).def /subsystem:windows,3.50 \ /machine:I386 /implib:./$(TARGET).lib /nologo +LFLAGS2=$(DEBUGLFLAGS) /DLL /def:$(TARGET2).def /subsystem:windows,3.50 \ + /machine:I386 /implib:./$(TARGET2).lib /nologo + #---------------------------------------------------------------------- -default: $(TARGETDIR)\$(TARGET).pyd pycfiles +default: $(TARGETDIR)\$(TARGET).pyd $(target2) pycfiles -all: wx $(TARGET) +all: wx $(TARGET) $(TARGET2) wx: cd $(WXDIR)\src\msw @@ -103,6 +122,14 @@ $(DUMMYOBJ) $(OBJECTS) $(TARGET).res $(LIBS) << +$(TARGETDIR)\$(TARGET2).pyd : $(DUMMYOBJ) $(WXLIB) $(OBJECTS2) + $(link) @<< +/out:$@ /dll +$(LFLAGS2) +$(DUMMYOBJ) $(OBJECTS2) +$(LIBS) +<< + $(TARGET).res : $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc $(rc) -r /i$(WXDIR)\include -fo$@ $(TARGET).rc @@ -131,11 +158,16 @@ clean: -erase *.pch -erase $(TARGET).exp -erase $(TARGET).lib + -erase $(TARGETDIR)\$(TARGET).* +!if "$(SEPARATE)" != "0" + -erase $(TARGET2).exp + -erase $(TARGET2).lib + -erase $(TARGETDIR)\$(TARGET2).* +!endif -erase $(TARGETDIR)\$(TARGET).pyd -erase $(TARGETDIR)\*.py -erase $(TARGETDIR)\*.pyc -erase $(TARGETDIR)\*.pyo - -erase $(TARGETDIR)\$(TARGET).* @@ -146,11 +178,9 @@ clean: # Implicit rules to run SWIG {}.i{$(GENCODEDIR)}.cpp: swig $(SWIGFLAGS) -c -o $@ $< - move $(@B).py $(GENCODEDIR) {}.i{$(GENCODEDIR)}.py: swig $(SWIGFLAGS) -c -o $@ $< - move $(@B).py $(GENCODEDIR) {$(GENCODEDIR)}.py{$(TARGETDIR)}.py: @@ -166,24 +196,33 @@ clean: # This one must leave out the -c flag so we define the whole rule -$(GENCODEDIR)\wxp.cpp $(GENCODEDIR)\wxp.py : wxp.i my_typemaps.i _defs.i _extras.py - swig $(SWIGFLAGS) -o $(GENCODEDIR)\wxp.cpp wxp.i - move wxp.py $(GENCODEDIR)\wxp.py - - -# define some dependencies -$(GENCODEDIR)\windows.cpp $(GENCODEDIR)\windows.py : windows.i my_typemaps.i _defs.i -$(GENCODEDIR)\windows2.cpp $(GENCODEDIR)\windows2.py : windows2.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)\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)\controls2.cpp $(GENCODEDIR)\controls2.py : controls2.i my_typemaps.i _defs.i -$(GENCODEDIR)\cmndlgs.cpp $(GENCODEDIR)\cmndlgs.py : cmndlgs.i my_typemaps.i _defs.i +$(GENCODEDIR)\wx.cpp $(GENCODEDIR)\wx.py : wx.i my_typemaps.i _defs.i _extras.py + swig $(SWIGFLAGS) -o $(GENCODEDIR)/wx.cpp wx.i + + +# Define some dependencies. These MUST use forward slashes so SWIG +# will write the shadow file to the right directory. +$(GENCODEDIR)/windows.cpp $(GENCODEDIR)/windows.py : windows.i my_typemaps.i _defs.i +$(GENCODEDIR)/windows2.cpp $(GENCODEDIR)/windows2.py : windows2.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)/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)/controls2.cpp $(GENCODEDIR)/controls2.py : controls2.i my_typemaps.i _defs.i +$(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py : cmndlgs.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 + +!if "$(SEPARATE)" == "1" +$(GENCODEDIR)\utils.cpp $(GENCODEDIR)\utils.py : utils.i my_typemaps.i + swig $(SWIGFLAGS) -o $(GENCODEDIR)/utils.cpp utils.i +!else +$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i +!endif -$(TARGETDIR)\wxp.py : $(GENCODEDIR)\wxp.py +$(TARGETDIR)\wx.py : $(GENCODEDIR)\wx.py $(TARGETDIR)\windows.py : $(GENCODEDIR)\windows.py $(TARGETDIR)\windows2.py : $(GENCODEDIR)\windows2.py $(TARGETDIR)\events.py : $(GENCODEDIR)\events.py @@ -193,13 +232,47 @@ $(TARGETDIR)\mdi.py : $(GENCODEDIR)\mdi.py $(TARGETDIR)\controls.py : $(GENCODEDIR)\controls.py $(TARGETDIR)\controls2.py : $(GENCODEDIR)\controls2.py $(TARGETDIR)\cmndlgs.py : $(GENCODEDIR)\cmndlgs.py +$(TARGETDIR)\frames.py : $(GENCODEDIR)\frames.py +$(TARGETDIR)\stattool.py : $(GENCODEDIR)\stattool.py +$(TARGETDIR)\utils.py : $(GENCODEDIR)\utils.py $(TARGETDIR)\__init__.py : __init__.py #------------------------------------------------------------------------ # # $Log$ +# Revision 1.8 1998/12/21 19:58:06 RD +# Now compiles with /GX- on MSW. +# +# Revision 1.7 1998/12/15 20:41:20 RD +# Changed the import semantics from "from wxPython import *" to "from +# wxPython.wx import *" This is for people who are worried about +# namespace pollution, they can use "from wxPython import wx" and then +# prefix all the wxPython identifiers with "wx." +# +# Added wxTaskbarIcon for wxMSW. +# +# Made the events work for wxGrid. +# +# Added wxConfig. +# +# Added wxMiniFrame for wxGTK, (untested.) +# +# Changed many of the args and return values that were pointers to gdi +# objects to references to reflect changes in the wxWindows API. +# +# Other assorted fixes and additions. +# +# Revision 1.6 1998/10/02 06:40:41 RD +# +# Version 0.4 of wxPython for MSW. +# +# Revision 1.5 1998/08/19 00:38:23 RD +# +# A few tweaks +# # Revision 1.4 1998/08/18 21:55:10 RD +# # New build directory structure # # Revision 1.3 1998/08/15 07:36:37 RD