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)
25 __version__.py: ../distrib/build.py build.cfg
26 echo ver = '$(VERSION)' > __version__.py
31 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
32 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
33 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
37 lib$(HELPERLIB)$(SO) : helpers.o libpy.o
38 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
41 installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
44 $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
46 @echo ---------------------------------------------------------
47 @echo You may have to run ldconfig, or set an environment
48 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
49 @echo to be found at runtime. See your man pages for ld.so or
51 @echo ---------------------------------------------------------
55 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
56 mkdir $(TARGETDIR)/lib; \\
57 mkdir $(TARGETDIR)/lib/sizers; \\
58 mkdir $(TARGETDIR)/demo; \\
59 mkdir $(TARGETDIR)/demo/bitmaps; \\
60 mkdir $(TARGETDIR)/demo/data; \\
61 cp ../lib/*.py $(TARGETDIR)/lib; \\
62 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
63 cp ../demo/*.py $(TARGETDIR)/demo; \\
64 cp ../lib/*.txt $(TARGETDIR)/lib; \\
65 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
66 cp ../demo/*.txt $(TARGETDIR)/demo; \\
67 cp ../demo/bitmaps/* $(TARGETDIR)/demo/bitmaps; \\
68 cp ../demo/data/* $(TARGETDIR)/demo/data; \\
69 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
70 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
76 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
77 rm -rf $(TARGETDIR)/lib; \\
78 rm -rf $(TARGETDIR)/demo; \\
83 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
86 __version__.py: ../distrib/build.py build.cfg
87 echo ver = \\'$(VERSION)\\' > __version__.py
90 #----------------------------------------------------------------------
95 cd ../..; wxPython/distrib/maketgz $(VERSION)
98 cd ../distrib; ./makerpm $(VERSION)
108 OTHERRULES = OTHERRULES + """
110 $(GENCODEDIR)/wx.py : _extras.py