]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | ## This file gives the details of what is needed to build this extension |
2 | ## module so the Makefile can be created. | |
7bf85405 | 3 | |
cf694132 RD |
4 | ## If you have not done "make install" for wxWindows then see Setup.in.linux |
5 | ## for a more verbose version of this file. | |
f57d7932 | 6 | |
08127323 | 7 | *shared* |
7bf85405 RD |
8 | |
9 | CCC=c++ | |
ab9bc19b | 10 | WXWIN=../../.. |
b62bdb48 | 11 | GENCODEDIR=gtk |
9d358552 | 12 | srcdir=$(GENCODEDIR) |
cf694132 RD |
13 | WX_CONFIG_CFLAGS=`wx-config --cflags` |
14 | WX_CONFIG_LIBS=`wx-config --libs` | |
9d358552 | 15 | |
cf694132 RD |
16 | |
17 | ## Depending on how your Python was built, you may have to set this | |
18 | ## value to use the C++ driver to link with instead of the default | |
19 | ## C driver. For example: | |
08127323 | 20 | MY_LDSHARED=$(CCC) -shared |
0d6f9504 | 21 | |
cf694132 RD |
22 | ## Same as above, but for statically linking Python and wxPython together, |
23 | ## in other words, if you comment out the *shared* above. If this is the | |
24 | ## case then you should ensure that the main() function is Python's, not | |
25 | ## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined | |
26 | ## to force this... | |
0d6f9504 | 27 | MY_LINKCC=$(CCC) |
9d358552 | 28 | |
fb5e0af0 | 29 | |
cf694132 | 30 | ## Pick one of these, or set your own. This is where the wxPython module |
ab9bc19b | 31 | ## should be installed. It should be a subdirectory named wxPython. |
e6c95f27 RD |
32 | #TARGETDIR=.. |
33 | TARGETDIR=$(BINLIBDEST)/site-packages/wxPython | |
cf694132 | 34 | |
f57d7932 | 35 | |
08127323 | 36 | wxc wx.cpp helpers.cpp windows.cpp events.cpp misc.cpp gdi.cpp \ |
f57d7932 | 37 | mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \ |
ab9bc19b RD |
38 | frames.cpp stattool.cpp windows3.cpp image.cpp \ |
39 | utils.cpp \ | |
40 | ## comment out the next line to disable wxGLCanvas | |
41 | _glcanvas.cpp glcanvas.cpp -DWITH_GLCANVAS -lGL -lGLU \ | |
cf694132 RD |
42 | -I. $(WX_CONFIG_CFLAGS) -I/usr/local/lib/glib/include \ |
43 | -DSWIG_GLOBAL -DWXP_WITH_THREAD $(SEPARATE) -Xlinker $(WX_CONFIG_LIBS) | |
44 | ||
ab9bc19b | 45 | ##-Xlinker -Bstatic |