X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b26e2dc41d9f5b387897a6cc6fba58d6957fd5cd..76784eecd960198bc54429a6e16d5bd7af458fce:/utils/wxPython/src/Makefile.pre.in diff --git a/utils/wxPython/src/Makefile.pre.in b/utils/wxPython/src/Makefile.pre.in index 2c8c46ed7b..8f2cc086ef 100644 --- a/utils/wxPython/src/Makefile.pre.in +++ b/utils/wxPython/src/Makefile.pre.in @@ -324,17 +324,21 @@ distclean: clobber # Custom rules and dependencies added for wxPython # +WXP_VERSION=2.1b1 -SWIGFLAGS=-c++ -shadow -python -dnone -D__WXGTK__ +SWIGFLAGS=-c++ -shadow -python -dnone -D__WXGTK__ $(SEPARATE) -PYMODULES = $(GENCODEDIR)/wxp.py $(GENCODEDIR)/events.py \ - $(GENCODEDIR)/windows.py $(GENCODEDIR)/misc.py \ - $(GENCODEDIR)/gdi.py $(GENCODEDIR)/mdi.py \ - $(GENCODEDIR)/controls.py $(GENCODEDIR)/controls2.py \ - $(GENCODEDIR)/windows2.py $(GENCODEDIR)/cmndlgs.py \ - $(GENCODEDIR)/frames.py $(GENCODEDIR)/stattool.py \ - __init__.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)\stattool.py $(TARGETDIR)\frames.py \ + $(TARGETDIR)\windows3.py $(TARGETDIR)\__init__.py \ + $(TARGETDIR)\utils.py $(TARGETDIR)\image.py \ + $(TARGETDIR)\printfw.py $(TARGETDIR)\misc2.py \ + $(TARGETDIR)\glcanvas.py # Implicit rules to run SWIG @@ -346,15 +350,17 @@ $(GENCODEDIR)/%.py : %.i # 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 +$(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 $(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)/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 @@ -362,21 +368,56 @@ $(GENCODEDIR)/controls2.cpp $(GENCODEDIR)/controls2.py : controls2.i my_typemap $(GENCODEDIR)/cmndlgs.cpp $(GENCODEDIR)/cmndlgs.py : cmndlgs.i my_typemaps.i _defs.i $(GENCODEDIR)/frames.cpp $(GENCODEDIR)/frames.py : frames.i my_typemaps.i _defs.i $(GENCODEDIR)/stattool.cpp $(GENCODEDIR)/stattool.py : stattool.i my_typemaps.i _defs.i +$(GENCODEDIR)/image.cpp $(GENCODEDIR)/image.py : image.i my_typemaps.i _defs.i +$(GENCODEDIR)/utils.cpp $(GENCODEDIR)/utils.py : utils.i my_typemaps.i _defs.i +$(GENCODEDIR)/glcanvas.cpp $(GENCODEDIR)/glcanvas.py : glcanvas.i my_typemaps.i _defs.i $(GENCODEDIR)/helpers.cpp: ln -s `pwd`/helpers.cpp $@ +$(GENCODEDIR)/_glcanvas.cpp: + -cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.cpp $@ + -cp $(WXWIN)/utils/glcanvas/$(GENCODEDIR)/glcanvas.h ./glcanvas.h + wxInstall : sharedmods $(PYMODULES) if test ! -d $(TARGETDIR) ; then \ mkdir $(TARGETDIR) ; else true ; fi if [ "$(SHAREDMODS)" != "" ]; then \ - -chmod 755 $(SHAREDMODS); \ + chmod 755 $(SHAREDMODS); \ cp $(SHAREDMODS) $(TARGETDIR); fi -for i in $(PYMODULES); do \ cp $$i $(TARGETDIR); \ done - python $(LIBDEST)/compileall.py -l $(TARGETDIR) - python -O $(LIBDEST)/compileall.py -l $(TARGETDIR) + if [ "$(TARGETDIR)" != ".." ]; then \ + mkdir $(TARGETDIR)/lib; \ + mkdir $(TARGETDIR)/demo; \ + cp ../lib/*.py $(TARGETDIR)/lib; \ + cp ../demo/*.py $(TARGETDIR)/demo; \ + cp ../lib/*.txt $(TARGETDIR)/lib; \ + cp ../demo/*.txt $(TARGETDIR)/demo;\ + fi + if [ "$(TARGETDIR)" != ".." ]; then \ + python $(LIBDEST)/compileall.py $(TARGETDIR); \ + python -O $(LIBDEST)/compileall.py $(TARGETDIR); \ + else \ + python $(LIBDEST)/compileall.py -l $(TARGETDIR); \ + python -O $(LIBDEST)/compileall.py -l $(TARGETDIR);\ + fi + + + + +lib : libwxPython.a + +libwxPython.a : lib.a + cp $< $@ + +dist: tgz rpm + +tgz: + cd ../..; wxPython/distrib/maketgz $(WXP_VERSION) +rpm: + cd ../distrib; ./makerpm $(WXP_VERSION)