5 SWIGFILES = ['wx.i', 'windows.i', 'windows2.i', 'windows3.i', 'events.i',
6 'misc.i', 'misc2.i', 'utils.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', 'grid.i',
9 'html.i', 'htmlhelp.i', 'calendar.i'
12 PYFILES = ['__init__.py', '__version__.py']
14 SWIGDEPS = '_defs.i my_typemaps.i'
15 OTHERDEPS = 'helpers.h'
17 if sys.platform == 'win32':
19 SOURCES = ['helpers.cpp', 'libpy.c']
24 distrib\zipit.bat $(VERSION)
28 makedbg.bat $(VERSION)
32 makedev.bat $(VERSION)
34 __version__.py: ../distrib/build.py build.cfg
35 echo ver = '$(VERSION)' > __version__.py
40 DEFAULTRULE = 'default: $(GENCODEDIR) helperlib $(TARGET) $(BUILDDIR)/$(TARGET) bldpycfiles'
41 OTHERINSTALLTARGETS = 'installLib installDemo installHelpers '
42 OTHERUNINSTALLTARGETS = 'uninstallLib uninstallDemo uninstallHelpers '
44 OTHERCFLAGS = '`gtk-config --cflags`'
46 HELPERLIBNAME = lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER).0.0
47 helperlib: $(HELPERLIBNAME)
49 $(HELPERLIBNAME) : helpers.o libpy.o
50 $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@
51 ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
52 ln -s $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO)
53 ln -s $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
56 installHelpers: $(HELPERLIBDIR)/$(HELPERLIBNAME)
59 $(HELPERLIBDIR)/$(HELPERLIBNAME) : $(HELPERLIBNAME)
60 cp $(HELPERLIBNAME) $(HELPERLIBDIR)
62 ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER); \
63 ln -sf $(HELPERLIBNAME) lib$(HELPERLIB).$(MAJVER)$(SO); \
64 ln -sf $(HELPERLIBNAME) lib$(HELPERLIB)$(SO)
65 @echo ---------------------------------------------------------
66 @echo You may have to run ldconfig, or set an environment
67 @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
68 @echo to be found at runtime. See your man pages for ld.so or
70 @echo ---------------------------------------------------------
74 mkdir $(TARGETDIR)/lib; \\
75 mkdir $(TARGETDIR)/lib/sizers; \\
76 mkdir $(TARGETDIR)/lib/editor; \\
77 cp ../wxPython/lib/*.py $(TARGETDIR)/lib; \\
78 cp ../wxPython/lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\
79 cp ../wxPython/lib/editor/*.py $(TARGETDIR)/lib/editor; \\
80 cp ../wxPython/lib/*.txt $(TARGETDIR)/lib; \\
81 cp ../wxPython/lib/sizers/*.txt $(TARGETDIR)/lib/sizers;\\
82 cp ../wxPython/lib/editor/*.txt $(TARGETDIR)/lib/editor;\\
83 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\
84 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR);
87 mkdir $(TARGETDIR)/demo; \\
88 mkdir $(TARGETDIR)/demo/bitmaps; \\
89 mkdir $(TARGETDIR)/demo/data; \\
90 cp ../demo/*.py $(TARGETDIR)/demo; \\
91 cp ../demo/*.xml $(TARGETDIR)/demo; \\
92 cp ../demo/*.txt $(TARGETDIR)/demo; \\
93 cp ../demo/bitmaps/*.bmp $(TARGETDIR)/demo/bitmaps; \\
94 cp ../demo/bitmaps/*.ico $(TARGETDIR)/demo/bitmaps; \\
95 cp ../demo/bitmaps/*.gif $(TARGETDIR)/demo/bitmaps; \\
96 cp ../demo/bitmaps/*.png $(TARGETDIR)/demo/bitmaps; \\
97 cp ../demo/bitmaps/*.jpg $(TARGETDIR)/demo/bitmaps; \\
98 cp ../demo/data/*.png $(TARGETDIR)/demo/data; \\
99 cp ../demo/data/*.htm $(TARGETDIR)/demo/data; \\
100 cp ../demo/data/*.bmp $(TARGETDIR)/demo/data; \\
101 cp ../demo/data/*.txt $(TARGETDIR)/demo/data; \\
102 cp ../demo/data/*.i $(TARGETDIR)/demo/data; \\
103 cp ../demo/data/*.h $(TARGETDIR)/demo/data; \\
104 echo "(1,0)" > $(TARGETDIR)/demo/data/showTips; \\
105 chmod 666 $(TARGETDIR)/demo/data/showTips; \\
106 $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR)/demo;\\
107 $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR)/demo;
111 rm -rf $(TARGETDIR)/lib;
114 rm -rf $(TARGETDIR)/demo;
118 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
119 rm -f $(HELPERLIBDIR)/$(HELPERLIBNAME)
120 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO).$(BLDVER)
121 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB).$(MAJVER)$(SO)
122 rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO)
125 __version__.py: ../distrib/build.py build.cfg
126 echo ver = \\'$(VERSION)\\' > __version__.py
129 #----------------------------------------------------------------------
134 cd ..; distrib/maketgz $(VERSION)
137 cd ../distrib; ./makerpm $(VERSION)
146 OTHERRULES = OTHERRULES + """
148 $(GENCODEDIR)/wx.py : _extras.py
149 $(GENCODEDIR)/grid.py : _gridextras.py
150 $(GENCODEDIR)/html.py : _htmlextras.py
151 $(GENCODEDIR)/calendar.py : _calextras.py