5 SWIGFILES = ['wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
6 'misc.i', 'misc2.i', 'gdi.i', 'mdi.i', 'controls.i',
7 'controls2.i', 'cmndlgs.i', 'stattool.i', 'frames.i',
8 'image.i', 'printfw.i', 'sizers.i', 'clip_dnd.i'
11 PYFILES = ['__init__.py', '__version__.py']
13 SWIGDEPS = '_defs.i my_typemaps.i'
14 OTHERDEPS = 'helpers.h'
16 if sys.platform == 'win32':
18 SOURCES = ['helpers.cpp', 'libpy.c']
23 wxPython\distrib\zipit.bat $(VERSION)
27 makedbg.bat $(VERSION)
31 makedev.bat $(VERSION)
33 __version__.py: ../distrib/build.py build.cfg
34 echo ver = '$(VERSION)' > __version__.py
39 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
40 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
41 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
45 lib$(HELPERLIB)$(SO) : helpers.o libpy.o
46 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
49 installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
52 $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
54 @echo ---------------------------------------------------------
55 @echo You may have to run ldconfig, or set an environment
56 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
57 @echo to be found at runtime. See your man pages for ld.so or
59 @echo ---------------------------------------------------------
63 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
64 mkdir $(TARGETDIR)/lib; \\
65 mkdir $(TARGETDIR)/lib/sizers; \\
66 mkdir $(TARGETDIR)/demo; \\
67 mkdir $(TARGETDIR)/demo/bitmaps; \\
68 mkdir $(TARGETDIR)/demo/data; \\
69 cp ../lib/*.py $(TARGETDIR)/lib; \\
70 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
71 cp ../demo/*.py $(TARGETDIR)/demo; \\
72 cp ../lib/*.txt $(TARGETDIR)/lib; \\
73 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
74 cp ../demo/*.txt $(TARGETDIR)/demo; \\
75 cp ../demo/bitmaps/* $(TARGETDIR)/demo/bitmaps; \\
76 cp ../demo/data/* $(TARGETDIR)/demo/data; \\
77 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
78 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
84 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
85 rm -rf $(TARGETDIR)/lib; \\
86 rm -rf $(TARGETDIR)/demo; \\
91 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
94 __version__.py: ../distrib/build.py build.cfg
95 echo ver = \\'$(VERSION)\\' > __version__.py
98 #----------------------------------------------------------------------
103 cd ../..; wxPython/distrib/maketgz $(VERSION)
106 cd ../distrib; ./makerpm $(VERSION)
116 OTHERRULES = OTHERRULES + """
118 $(GENCODEDIR)/wx.py : _extras.py