]>
Commit | Line | Data |
---|---|---|
144247ac HH |
1 | ## This file gives the details of what is needed to build this extension |
2 | ## module so the Makefile can be created. | |
3 | ||
4 | ## If you have not done "make install" for wxWindows then see Setup.in.linux | |
5 | ## for a more verbose version of this file. | |
6 | ||
7 | *shared* | |
8 | ||
9 | CCC=c++ | |
10 | WXWIN=../../.. | |
11 | GENCODEDIR=gtk | |
12 | # srcdir=$(GENCODEDIR) | |
13 | WX_CONFIG_CFLAGS=`wx-config --cflags` | |
14 | WX_CONFIG_LIBS=`wx-config --libs` | |
15 | ||
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: | |
20 | MY_LDSHARED=$(CCC) -shared | |
21 | ||
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... | |
27 | MY_LINKCC=$(CCC) | |
28 | ||
29 | #-------------------------------------------------------------------- | |
30 | # | |
31 | # Below follow settings that may be specific for a wxPython module | |
32 | # | |
33 | #-------------------------------------------------------------------- | |
34 | ||
35 | ## Pick one of these, or set your own. This is where the wxPython module | |
36 | ## should be installed. It should be a subdirectory named wxPython. | |
37 | #TARGETDIR=../.. | |
38 | TARGETDIR=$(BINLIBDEST)/site-packages/wxPython | |
39 | ||
40 | # The location of the wxPython source dir | |
41 | WXP_SRCDIR=../../src | |
42 | ||
43 | # These defines are usually best left alone | |
44 | C_DEFINES = -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE | |
45 | C_FLAGS = -I. -I$(WXP_SRCDIR) $(WX_CONFIG_CFLAGS) | |
46 | C_LIBS = -lwxPyHelpers $(WX_CONFIG_LIBS) | |
47 | ||
48 | PYMODULES = $(GENCODEDIR)/sample.py | |
49 | ||
50 | samplec $(GENCODEDIR)/sample.cpp mywidget.cpp \ | |
51 | $(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS) |