]>
Commit | Line | Data |
---|---|---|
6bddd8c5 | 1 | # -*- makefile -*- |
cf694132 RD |
2 | ## This file gives the details of what is needed to build this extension |
3 | ## module so the Makefile can be created. | |
7bf85405 | 4 | |
cf694132 RD |
5 | ## If you have not done "make install" for wxWindows then see Setup.in.linux |
6 | ## for a more verbose version of this file. | |
f57d7932 | 7 | |
08127323 | 8 | *shared* |
7bf85405 RD |
9 | |
10 | CCC=c++ | |
ab9bc19b | 11 | WXWIN=../../.. |
b62bdb48 | 12 | GENCODEDIR=gtk |
9d358552 | 13 | srcdir=$(GENCODEDIR) |
cf694132 RD |
14 | WX_CONFIG_CFLAGS=`wx-config --cflags` |
15 | WX_CONFIG_LIBS=`wx-config --libs` | |
9d358552 | 16 | |
cf694132 | 17 | |
6bddd8c5 | 18 | |
cf694132 RD |
19 | ## Depending on how your Python was built, you may have to set this |
20 | ## value to use the C++ driver to link with instead of the default | |
21 | ## C driver. For example: | |
08127323 | 22 | MY_LDSHARED=$(CCC) -shared |
0d6f9504 | 23 | |
cf694132 RD |
24 | ## Same as above, but for statically linking Python and wxPython together, |
25 | ## in other words, if you comment out the *shared* above. If this is the | |
26 | ## case then you should ensure that the main() function is Python's, not | |
27 | ## wxWindows'. You can rebuild $(WXWIN)/src/gtk/app.cpp with NOMAIN defined | |
28 | ## to force this... | |
0d6f9504 | 29 | MY_LINKCC=$(CCC) |
9d358552 | 30 | |
fb5e0af0 | 31 | |
cf694132 | 32 | ## Pick one of these, or set your own. This is where the wxPython module |
ab9bc19b | 33 | ## should be installed. It should be a subdirectory named wxPython. |
e6c95f27 RD |
34 | #TARGETDIR=.. |
35 | TARGETDIR=$(BINLIBDEST)/site-packages/wxPython | |
cf694132 | 36 | |
f57d7932 | 37 | |
6bddd8c5 RD |
38 | ##---------------------------------------------------------------------- |
39 | ## To build wxPython as separate extension modules, uncomment and use | |
40 | ## these variable definitions and Setup rules. | |
41 | ## | |
42 | WXPYLIB = wxPyHelpers | |
43 | WXPYLIBDIR = /usr/local/lib | |
44 | HELPERLIB = lib$(WXPYLIB)$(SO) | |
45 | C_DEFINES = -DSWIG_GLOBAL -DWXP_USE_THREAD -DSEPARATE | |
46 | C_FLAGS = -I. $(WX_CONFIG_CFLAGS) | |
47 | C_LIBS = -L. -l$(WXPYLIB) $(WX_CONFIG_LIBS) | |
48 | ||
49 | wxc wx.cpp windows.cpp events.cpp misc.cpp misc2.cpp gdi.cpp \ | |
f57d7932 | 50 | mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \ |
d24a34bb | 51 | frames.cpp stattool.cpp windows3.cpp image.cpp printfw.cpp \ |
6bddd8c5 RD |
52 | $(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS) |
53 | ||
54 | utilsc utils.cpp \ | |
55 | $(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS) | |
56 | ||
57 | glcanvasc _glcanvas.cpp glcanvas.cpp -DWITH_GLCANVAS -lMesaGL -lMesaGLU \ | |
58 | $(C_DEFINES) $(C_FLAGS) -Xlinker $(C_LIBS) | |
59 | ||
60 | ||
61 | ##---------------------------------------------------------------------- | |
62 | ## To build wxPython as one big extension module, comment out the above | |
63 | ## rules and definitions, and then uncomment this single Setup rule. | |
64 | ## | |
65 | #wxc helpers.cpp libpy.c libptr.c \ | |
66 | # wx.cpp windows.cpp events.cpp misc.cpp misc2.cpp gdi.cpp \ | |
67 | # mdi.cpp controls.cpp controls2.cpp windows2.cpp cmndlgs.cpp \ | |
68 | # frames.cpp stattool.cpp windows3.cpp image.cpp printfw.cpp \ | |
69 | # utils.cpp \ | |
70 | # ## comment out the next line to disable wxGLCanvas | |
71 | # _glcanvas.cpp glcanvas.cpp -DWITH_GLCANVAS -lGL -lGLU \ | |
72 | # -I. $(WX_CONFIG_CFLAGS) -I/usr/local/lib/glib/include \ | |
73 | # -DSWIG_GLOBAL -DWXP_USE_THREAD $(SEPARATE) -Xlinker $(WX_CONFIG_LIBS) | |
cf694132 | 74 |