]>
Commit | Line | Data |
---|---|---|
5148fc8e RD |
1 | # -*- python -*- |
2 | import sys | |
3 | ||
4 | MODULE = 'wxc' | |
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', | |
9 | ] | |
10 | ||
11 | PYFILES = ['__init__.py'] | |
12 | ||
13 | ||
14 | if sys.platform == 'win32': | |
15 | RESFILE = 1 | |
16 | SOURCES = ['helpers.cpp', 'libpy.c'] | |
17 | LIBS = '$(PYTHONLIB)' | |
18 | OTHERRULES = """ | |
19 | dist: | |
20 | cd ..\.. | |
21 | wxPython\distrib\zipit.bat $(VERSION) | |
22 | """ | |
23 | ||
24 | else: | |
25 | DEFAULTRULE = 'default: $(GENCODEDIR) lib$(HELPERLIB)$(SO) $(TARGET)' | |
fd4ff3bf | 26 | OTHERINSTALLTARGETS = 'installLibDemo installHelpers ' |
efc5f224 | 27 | OTHERUNINSTALLTARGETS = 'uninstallLibDemo uninstallHelpers ' |
5148fc8e RD |
28 | |
29 | ||
30 | OTHERRULES = """ | |
31 | lib$(HELPERLIB)$(SO) : helpers.o libpy.o | |
32 | $(LDSHARED) helpers.o libpy.o $(LFLAGS) -o $@ | |
33 | ||
efc5f224 | 34 | |
5148fc8e RD |
35 | installHelpers: $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) |
36 | ||
efc5f224 | 37 | |
5148fc8e RD |
38 | $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) : lib$(HELPERLIB)$(SO) |
39 | cp $< $@ | |
40 | @echo --------------------------------------------------------- | |
41 | @echo You may have to run ldconfig, or set an environment | |
42 | @echo variable in order for $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) | |
43 | @echo to be found at runtime. See your man pages for ld.so or | |
44 | @echo equivalent. | |
45 | @echo --------------------------------------------------------- | |
46 | ||
47 | ||
48 | installLibDemo: | |
a35c9761 | 49 | @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\ |
5148fc8e RD |
50 | mkdir $(TARGETDIR)/lib; \\ |
51 | mkdir $(TARGETDIR)/lib/sizers; \\ | |
52 | mkdir $(TARGETDIR)/demo; \\ | |
53 | mkdir $(TARGETDIR)/demo/bitmaps; \\ | |
54 | cp ../lib/*.py $(TARGETDIR)/lib; \\ | |
55 | cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \\ | |
56 | cp ../demo/*.py $(TARGETDIR)/demo; \\ | |
57 | cp ../lib/*.txt $(TARGETDIR)/lib; \\ | |
58 | cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \\ | |
59 | cp ../demo/*.txt $(TARGETDIR)/demo; \\ | |
60 | cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \\ | |
fd4ff3bf RD |
61 | $(EXECPREFIX)/bin/python $(PYLIB)/compileall.py $(TARGETDIR); \\ |
62 | $(EXECPREFIX)/bin/python -O $(PYLIB)/compileall.py $(TARGETDIR); \\ | |
5148fc8e RD |
63 | fi |
64 | ||
65 | ||
efc5f224 RD |
66 | |
67 | uninstallLibDemo: | |
68 | @if [ "$(TARGETDIR)" != ".." -a "$(TARGETDIR)" != "$(WXWIN)/utils/wxPython" ]; then \\ | |
69 | rm -rf $(TARGETDIR)/lib; \\ | |
70 | rm -rf $(TARGETDIR)/demo; \\ | |
71 | fi | |
72 | ||
73 | ||
74 | uninstallHelpers: | |
75 | rm -f $(HELPERLIBDIR)/lib$(HELPERLIB)$(SO) | |
76 | ||
77 | ||
78 | #---------------------------------------------------------------------- | |
79 | ||
5148fc8e RD |
80 | dist: tgz rpm |
81 | ||
82 | tgz: | |
83 | cd ../..; wxPython/distrib/maketgz $(VERSION) | |
84 | ||
85 | rpm: | |
86 | cd ../distrib; ./makerpm $(VERSION) | |
87 | ||
88 | ||
89 | ||
90 | """ | |
91 | ||
92 | ||
93 | ||
94 | ||
95 |