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',
11 PYFILES = ['__init__.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 DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)'
28 OTHERINSTALLTARGETS = 'installLibDemo installHelpers '
29 OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers '
33 lib$(HELPERLIB)$(SO) : helpers.o libpy.o
34 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
37 installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
40 $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO)
42 @echo ---------------------------------------------------------
43 @echo You may have to run ldconfig, or set an environment
44 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
45 @echo to be found at runtime. See your man pages for ld.so or
47 @echo ---------------------------------------------------------
51 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
52 mkdir $(TARGETDIR)/lib; \\
53 mkdir $(TARGETDIR)/lib/sizers; \\
54 mkdir $(TARGETDIR)/demo; \\
55 mkdir $(TARGETDIR)/demo/bitmaps; \\
56 cp ../lib/*.py $(TARGETDIR)/lib; \\
57 cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
58 cp ../demo/*.py $(TARGETDIR)/demo; \\
59 cp ../lib/*.txt $(TARGETDIR)/lib; \\
60 cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\
61 cp ../demo/*.txt $(TARGETDIR)/demo; \\
62 cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \\
63 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
64 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\
70 @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\
71 rm -rf $(TARGETDIR)/lib; \\
72 rm -rf $(TARGETDIR)/demo; \\
77 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
80 #----------------------------------------------------------------------
85 cd ../..; wxPython/distrib/maketgz $(VERSION)
88 cd ../distrib; ./makerpm $(VERSION)