… | |
… | |
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 | |
|
|
30 | MAINTAINERCLEANFILES = Makefile.in |
|
|
31 | |
28 | if PYTHON_PLUGIN |
32 | if PYTHON_PLUGIN |
29 | plugin_LTLIBRARIES = cfpython.la |
33 | plugin_LTLIBRARIES = cfpython.la |
30 | else |
34 | else |
31 | plugin_LTLIBRARIES = |
35 | plugin_LTLIBRARIES = |
32 | endif |
36 | endif |
33 | cfpython_la_SOURCES = cfpython.c\ |
37 | cfpython_la_SOURCES = cfpython.C\ |
34 | cfpython_archetype.c\ |
38 | cfpython_archetype.C\ |
35 | cfpython_object.c\ |
39 | cfpython_object.C\ |
36 | cfpython_map.c\ |
40 | cfpython_map.C\ |
37 | cfpython_party.c\ |
41 | cfpython_party.C\ |
38 | cfpython_region.c\ |
42 | cfpython_region.C\ |
39 | ../common/plugin_common.c |
43 | ../common/plugin_common.C |
40 | |
44 | |
41 | cfpython_la_CPSOURCES = cfpython.c\ |
45 | cfpython_la_CPSOURCES = cfpython.C\ |
42 | cfpython_archetype.c\ |
46 | cfpython_archetype.C\ |
43 | cfpython_object.c\ |
47 | cfpython_object.C\ |
44 | cfpython_party.c\ |
48 | cfpython_party.C\ |
45 | cfpython_region.c\ |
49 | cfpython_region.C\ |
46 | cfpython_map.c |
50 | cfpython_map.C |
47 | |
51 | |
48 | cfpython_la_LIBADD = @PYTHON_LIB@ @PY_LIBS@ |
52 | cfpython_la_LIBADD = @PYTHON_LIB@ @PY_LIBS@ |
49 | cfpython_la_LDFLAGS = -module -avoid-version -Xlinker -export-dynamic -rdynamic -Xlinker -Bsymbolic |
53 | 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@ |
54 | AM_CPPFLAGS = -I$(srcdir)/include -I$(top_srcdir)/plugins/common/include -I$(top_srcdir)/include @PY_INCLUDES@ |
51 | |
55 | |
52 | proto: |
56 | proto: |
53 | cproto -D__CEXTRACT__ -o include/cfpython_proto.h $(CPPFLAGS) $(AM_CPPFLAGS) \ |
57 | cproto -D__CEXTRACT__ -o include/cfpython_proto.h $(CPPFLAGS) $(AM_CPPFLAGS) \ |
54 | `echo $(cfpython_la_CPSOURCES) " " | $(AWK) -v RS=" " '/.c$$/ { print }'` |
58 | `echo $(cfpython_la_CPSOURCES) " " | $(AWK) -v RS=" " '/.C$$/ { print }'` |
55 | chmod 644 include/cfpython_proto.h |
59 | chmod 644 include/cfpython_proto.h |