… | |
… | |
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
22 | # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
23 | # |
23 | # |
24 | # The author can be reached via e-mail to mwedel@sonic.net |
24 | # The author can be reached via e-mail to mwedel@sonic.net |
25 | |
25 | |
26 | plugindir=$(pkglibdir)/plugins |
26 | plugindir=$(pkglibdir)/plugins |
27 | noinst_HEADERS = include/cfpython.h ../common/include/plugin_common.h |
27 | |
|
|
28 | SUBDIRS = include |
|
|
29 | |
28 | if PYTHON_PLUGIN |
30 | if PYTHON_PLUGIN |
29 | plugin_LTLIBRARIES = cfpython.la |
31 | plugin_LTLIBRARIES = cfpython.la |
30 | else |
32 | else |
31 | plugin_LTLIBRARIES = |
33 | plugin_LTLIBRARIES = |
32 | endif |
34 | endif |
… | |
… | |
45 | cfpython_region.c\ |
47 | cfpython_region.c\ |
46 | cfpython_map.c |
48 | cfpython_map.c |
47 | |
49 | |
48 | cfpython_la_LIBADD = @PYTHON_LIB@ @PY_LIBS@ |
50 | cfpython_la_LIBADD = @PYTHON_LIB@ @PY_LIBS@ |
49 | cfpython_la_LDFLAGS = -module -avoid-version -Xlinker -export-dynamic -rdynamic -Xlinker -Bsymbolic |
51 | cfpython_la_LDFLAGS = -module -avoid-version -Xlinker -export-dynamic -rdynamic -Xlinker -Bsymbolic |
50 | AM_CPPFLAGS = -I$(srcdir)/include -I../common/include -I$(top_srcdir)/include @PY_INCLUDES@ |
52 | AM_CPPFLAGS = -I$(srcdir)/include -I$(top_srcdir)/plugins/common/include -I$(top_srcdir)/include @PY_INCLUDES@ |
51 | |
53 | |
52 | proto: |
54 | proto: |
53 | cproto -D__CEXTRACT__ -o include/cfpython_proto.h $(CPPFLAGS) $(AM_CPPFLAGS) \ |
55 | cproto -D__CEXTRACT__ -o include/cfpython_proto.h $(CPPFLAGS) $(AM_CPPFLAGS) \ |
54 | `echo $(cfpython_la_CPSOURCES) " " | $(AWK) -v RS=" " '/.c$$/ { print }'` |
56 | `echo $(cfpython_la_CPSOURCES) " " | $(AWK) -v RS=" " '/.c$$/ { print }'` |
55 | chmod 644 include/cfpython_proto.h |
57 | chmod 644 include/cfpython_proto.h |