1 SUBDIRS = murphy-db . \
2 common/tests breedline/tests core/tests \
3 core/lua-decision/tests resolver/tests \
4 daemon/tests plugins/tests
6 AM_CFLAGS = $(WARNING_CFLAGS) -I$(top_builddir) -DLIBDIR=\"@LIBDIR@\"
8 pkgconfigdir = ${libdir}/pkgconfig
15 QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
17 LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
18 YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
20 INCLUDES = -I$(top_builddir)/src/murphy-db/include -I$(top_builddir)
22 ###################################
23 # murphy common library
26 lib_LTLIBRARIES += libmurphy-common.la
27 EXTRA_DIST += common/murphy-common.pc
28 pkgconfig_DATA += common/murphy-common.pc
31 libmurphy_commonh_ladir = \
34 libmurphy_commonh_la_HEADERS = \
38 libmurphy_common_ladir = \
39 $(includedir)/murphy/common
41 libmurphy_common_la_HEADERS = \
56 libmurphy_common_la_REGULAR_SOURCES = \
66 common/stream-transport.c \
67 common/internal-transport.c \
68 common/dgram-transport.c
70 libmurphy_common_la_SOURCES = \
71 $(libmurphy_common_la_REGULAR_SOURCES) \
74 libmurphy_common_la_CFLAGS = \
77 libmurphy_common_la_LDFLAGS = \
78 -Wl,-version-script=linker-script.common \
79 -version-info @MURPHY_VERSION_INFO@
81 libmurphy_common_la_LIBADD = \
84 libmurphy_common_la_DEPENDENCIES = linker-script.common
86 libcommonincludedir = $(includedir)/murphy/common
87 libcommoninclude_HEADERS = $(libmurphy_common_la_HEADERS)
89 # linker script generation
90 linker-script.common: $(libmurphy_common_la_HEADERS)
91 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
94 -rm -f linker-script.common
96 # debug file:line-function mapping generation
97 common-func-info.c: $(libmurphy_common_la_REGULAR_SOURCES)
98 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
101 -rm common-func-info.c
103 ###################################
104 # murphy lua utilities
107 lib_LTLIBRARIES += libmurphy-lua-utils.la
108 EXTRA_DIST += core/lua-utils/murphy-lua-utils.pc
109 pkgconfig_DATA += core/lua-utils/murphy-lua-utils.pc
111 libmurphy_lua_utils_ladir = \
112 $(includedir)/murphy/core/lua-utils
114 libmurphy_lua_utils_la_HEADERS = \
115 core/lua-utils/strarray.h \
116 core/lua-utils/funcbridge.h \
117 core/lua-utils/object.h
119 libmurphy_lua_utils_la_REGULAR_SOURCES = \
120 core/lua-utils/strarray.c \
121 core/lua-utils/funcbridge.c \
122 core/lua-utils/object.c
124 libmurphy_lua_utils_la_SOURCES = \
125 $(libmurphy_lua_utils_la_REGULAR_SOURCES) \
126 lua-utils-func-info.c
128 libmurphy_lua_utils_la_CFLAGS = \
132 libmurphy_lua_utils_la_LDFLAGS = \
133 -Wl,-version-script=linker-script.lua-utils \
134 -version-info @MURPHY_VERSION_INFO@
136 libmurphy_lua_utils_la_LIBADD = \
139 libmurphy_lua_utils_la_DEPENDENCIES = linker-script.lua-utils
141 # debug file:line-function mapping generation
142 lua-utils-func-info.c: $(libmurphy_lua_utils_la_REGULAR_SOURCES)
143 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
146 -rm lua-utils-func-info.c
148 # lua-utils linker script generation
149 linker-script.lua-utils: $(libmurphy_lua_utils_la_HEADERS)
150 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
152 clean-linker-script::
153 -rm -f linker-script.lua-utils
156 ###################################
157 # murphy lua decision network
160 lib_LTLIBRARIES += libmurphy-lua-decision.la
161 EXTRA_DIST += core/lua-decision/murphy-lua-decision.pc
162 pkgconfig_DATA += core/lua-decision/murphy-lua-decision.pc
164 libmurphy_lua_decision_ladir = \
165 $(includedir)/murphy/core/lua-decision
167 libmurphy_lua_decision_la_HEADERS = \
168 core/lua-decision/mdb.h \
169 core/lua-decision/element.h
171 libmurphy_lua_decision_la_REGULAR_SOURCES = \
172 core/lua-decision/mdb.c \
173 core/lua-decision/element.c
175 libmurphy_lua_decision_la_SOURCES = \
176 $(libmurphy_lua_decision_la_REGULAR_SOURCES) \
177 lua-decision-func-info.c
179 libmurphy_lua_decision_la_CFLAGS = \
183 libmurphy_lua_decision_la_LDFLAGS = \
184 -Wl,-version-script=linker-script.lua-decision \
185 -version-info @MURPHY_VERSION_INFO@
187 libmurphy_lua_decision_la_LIBADD = \
190 libmurphy_lua_decision_la_DEPENDENCIES = linker-script.lua-decision
192 # debug file:line-function mapping generation
193 lua-decision-func-info.c: $(libmurphy_lua_decision_la_REGULAR_SOURCES)
194 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
197 -rm lua-decision-func-info.c
199 # lua-decision linker script generation
200 linker-script.lua-decision: $(libmurphy_lua_decision_la_HEADERS)
201 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
203 clean-linker-script::
204 -rm -f linker-script.lua-decision
207 ###################################
208 # murphy core library
211 lib_LTLIBRARIES += libmurphy-core.la
212 EXTRA_DIST += core/murphy-core.pc
213 pkgconfig_DATA += core/murphy-core.pc
215 LUA_BINDINGS_SOURCES = \
216 core/lua-bindings/lua-murphy.c \
217 core/lua-bindings/lua-plugin.c \
218 core/lua-bindings/lua-log.c \
219 core/lua-bindings/lua-console.c
221 libmurphy_core_lua_bindings_ladir = \
222 $(includedir)/murphy/core/lua-bindings
224 libmurphy_core_lua_bindings_la_HEADERS = \
225 core/lua-bindings/murphy.h
227 libmurphy_coreh_ladir = \
230 libmurphy_coreh_la_HEADERS = \
233 libmurphy_core_ladir = \
234 $(includedir)/murphy/core
236 libmurphy_core_la_HEADERS = \
239 core/console-command.h \
245 libmurphy_core_la_REGULAR_SOURCES = \
252 $(LUA_BINDINGS_SOURCES)
254 libmurphy_core_la_SOURCES = \
255 $(libmurphy_core_la_REGULAR_SOURCES) \
258 libmurphy_core_la_CFLAGS = \
262 libmurphy_core_la_LDFLAGS = \
263 -Wl,-version-script=linker-script.core \
264 -version-info @MURPHY_VERSION_INFO@
266 libmurphy_core_la_LIBADD = \
267 libmurphy-common.la \
268 libmurphy-lua-decision.la \
269 libmurphy-lua-utils.la \
273 libmurphy_core_la_DEPENDENCIES = linker-script.core libmurphy-common.la
275 # core linker script generation
276 linker-script.core: $(libmurphy_core_la_HEADERS) \
277 $(libmurphy_core_lua_bindings_la_HEADERS)
278 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
280 clean-linker-script::
281 -rm -f linker-script.core
283 # debug file:line-function mapping generation
284 core-func-info.c: $(libmurphy_core_la_REGULAR_SOURCES)
285 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
290 ###################################
291 # murphy dbus library
295 lib_LTLIBRARIES += libmurphy-dbus.la
296 EXTRA_DIST += common/murphy-dbus.pc
297 pkgconfig_DATA += common/murphy-dbus.pc
299 libmurphy_dbus_ladir = \
300 $(includedir)/murphy/common
302 libmurphy_dbus_la_HEADERS = \
304 common/dbus-transport.h
306 libmurphy_dbus_la_REGULAR_SOURCES = \
309 common/dbus-transport.c
311 libmurphy_dbus_la_SOURCES = \
312 $(libmurphy_dbus_la_REGULAR_SOURCES) \
315 libmurphy_dbus_la_CFLAGS = \
319 libmurphy_dbus_la_LDFLAGS = \
320 -Wl,-version-script=linker-script.dbus \
321 -version-info @MURPHY_VERSION_INFO@
323 libmurphy_dbus_la_LIBADD = \
326 libmurphy_dbus_la_DEPENDENCIES = linker-script.dbus
328 libdbusincludedir = $(includedir)/murphy/dbus
329 libdbusinclude_HEADERS = $(libmurphy_dbus_la_HEADERS)
331 # linker script generation
332 linker-script.dbus: $(libmurphy_dbus_la_HEADERS)
333 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
335 clean-linker-script::
336 -rm -f linker-script.dbus
338 # debug file:line-function mapping generation
339 dbus-func-info.c: $(libmurphy_dbus_la_REGULAR_SOURCES)
340 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
346 ###################################
347 # murphy pulse glue library
351 lib_LTLIBRARIES += libmurphy-pulse.la
352 EXTRA_DIST += common/murphy-pulse.pc
353 pkgconfig_DATA += common/murphy-pulse.pc
355 libmurphy_pulse_ladir = \
356 $(includedir)/murphy/common
358 libmurphy_pulse_la_HEADERS = \
361 libmurphy_pulse_la_SOURCES = \
364 libmurphy_pulse_la_CFLAGS = \
368 libmurphy_pulse_la_LDFLAGS = \
369 -Wl,-version-script=linker-script.pulse \
370 -version-info @MURPHY_VERSION_INFO@
372 libmurphy_pulse_la_LIBADD =
374 libmurphy_pulse_la_DEPENDENCIES = linker-script.pulse
376 libpulseincludedir = $(includedir)/murphy/pulse
377 libpulseinclude_HEADERS = $(libmurphy_pulse_la_HEADERS)
379 # linker script generation
380 linker-script.pulse: $(libmurphy_pulse_la_HEADERS)
381 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
383 clean-linker-script::
384 -rm -f linker-script.pulse
387 ###################################
388 # murphy ecore glue library
392 lib_LTLIBRARIES += libmurphy-ecore.la
393 EXTRA_DIST += common/murphy-ecore.pc
394 pkgconfig_DATA += common/murphy-ecore.pc
396 libmurphy_ecore_ladir = \
397 $(includedir)/murphy/common
399 libmurphy_ecore_la_HEADERS = \
402 libmurphy_ecore_la_SOURCES = \
405 libmurphy_ecore_la_CFLAGS = \
409 libmurphy_ecore_la_LDFLAGS = \
410 -Wl,-version-script=linker-script.ecore \
411 -version-info @MURPHY_VERSION_INFO@
413 libmurphy_ecore_la_LIBADD =
415 libmurphy_ecore_la_DEPENDENCIES = linker-script.ecore
417 libecoreincludedir = $(includedir)/murphy/ecore
418 libecoreinclude_HEADERS = $(libmurphy_ecore_la_HEADERS)
420 # linker script generation
421 linker-script.ecore: $(libmurphy_ecore_la_HEADERS)
422 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
424 clean-linker-script::
425 -rm -f linker-script.ecore
428 ###################################
429 # murphy glib glue library
433 lib_LTLIBRARIES += libmurphy-glib.la
434 EXTRA_DIST += common/murphy-glib.pc
435 pkgconfig_DATA += common/murphy-glib.pc
437 libmurphy_glib_ladir = \
438 $(includedir)/murphy/common
440 libmurphy_glib_la_HEADERS = \
443 libmurphy_glib_la_SOURCES = \
446 libmurphy_glib_la_CFLAGS = \
450 libmurphy_glib_la_LDFLAGS = \
451 -Wl,-version-script=linker-script.glib \
452 -version-info @MURPHY_VERSION_INFO@
454 libmurphy_glib_la_LIBADD =
456 libmurphy_glib_la_DEPENDENCIES = linker-script.glib
458 libglibincludedir = $(includedir)/murphy/glib
459 libglibinclude_HEADERS = $(libmurphy_glib_la_HEADERS)
461 # linker script generation
462 linker-script.glib: $(libmurphy_glib_la_HEADERS)
463 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
465 clean-linker-script::
466 -rm -f linker-script.glib
469 ###################################
470 # murphy resolver library
473 lib_LTLIBRARIES += libmurphy-resolver.la
474 EXTRA_DIST += resolver/murphy-resolver.pc
475 pkgconfig_DATA += resolver/murphy-resolver.pc
477 libmurphy_resolver_ladir = \
478 $(includedir)/murphy/resolver
480 libmurphy_resolver_la_HEADERS = \
483 SIMPLE_SCRIPT_SOURCES = \
484 resolver/scripting/simple/simple-script.c \
485 resolver/scripting/simple/simple-scanner.c \
486 resolver/scripting/simple/simple-parser.c \
487 resolver/scripting/simple/call.c \
488 resolver/scripting/simple/builtins.c
490 libmurphy_resolver_la_REGULAR_SOURCES = \
491 resolver/resolver.c \
495 resolver/target-sorter.c \
498 $(SIMPLE_SCRIPT_SOURCES)
500 libmurphy_resolver_la_SOURCES = \
501 $(libmurphy_resolver_la_REGULAR_SOURCES) \
504 libmurphy_resolver_la_CFLAGS = \
508 libmurphy_resolver_la_LDFLAGS = \
509 -Wl,-version-script=linker-script.resolver \
510 -version-info @MURPHY_VERSION_INFO@
512 libmurphy_resolver_la_LIBADD = \
514 libmurphy-common.la \
515 murphy-db/mql/libmql.la \
516 murphy-db/mqi/libmqi.la \
517 murphy-db/mdb/libmdb.la
519 libmurphy_resolver_la_DEPENDENCIES = linker-script.resolver \
521 libmurphy-common.la \
522 murphy-db/mql/libmql.la \
523 murphy-db/mqi/libmqi.la \
524 murphy-db/mdb/libmdb.la
526 # resolver lexical analyser and parser generation
527 RESOLVER_PARSER_PREFIX = yy_res_
529 resolver/scanner.c: resolver/scanner.l resolver/parser.h
530 $(LEXCOMPILE) -P $(RESOLVER_PARSER_PREFIX) $<
531 mv lex.$(RESOLVER_PARSER_PREFIX).c $@
533 resolver/parser.h resolver/parser.c: resolver/parser.y
534 $(YACCCOMPILE) -p $(RESOLVER_PARSER_PREFIX) $<
535 mv -f y.tab.h resolver/parser.h
536 mv -f y.tab.c resolver/parser.c
538 # debug file:line-function mapping generation
539 resolver-func-info.c: $(libmurphy_resolver_la_REGULAR_SOURCES)
540 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
543 -rm resolver-func-info.c
545 # resolver linker script generation
546 linker-script.resolver: $(libmurphy_resolver_la_HEADERS)
547 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
549 clean-linker-script::
550 -rm -f linker-script.resolver
552 # simple interpreter lexical analyser and parser generation
553 SIMPLE_PARSER_PREFIX = yy_smpl_
555 resolver/scripting/simple/simple-scanner.c: \
556 resolver/scripting/simple/simple-scanner.l \
557 resolver/scripting/simple/simple-parser.h
558 $(LEXCOMPILE) -P $(SIMPLE_PARSER_PREFIX) $<
559 mv lex.$(SIMPLE_PARSER_PREFIX).c $@
561 # simple interpreter parser generation
562 resolver/scripting/simple/simple-parser.h \
563 resolver/scripting/simple/simple-parser.c: \
564 resolver/scripting/simple/simple-parser.y
565 $(YACCCOMPILE) -p $(SIMPLE_PARSER_PREFIX) $<
566 mv -f y.tab.h resolver/scripting/simple/simple-parser.h
567 mv -f y.tab.c resolver/scripting/simple/simple-parser.c
569 ###################################
570 # murphy resource library
573 lib_LTLIBRARIES += libmurphy-resource.la
574 EXTRA_DIST += resource/murphy-resource.pc
575 pkgconfig_DATA += resource/murphy-resource.pc
577 libmurphy_resource_ladir = \
578 $(includedir)/murphy/resource
580 libmurphy_resource_la_HEADERS = \
581 resource/data-types.h \
582 resource/common-api.h \
583 resource/client-api.h \
584 resource/manager-api.h \
585 resource/config-api.h \
586 resource/protocol.h \
587 resource/config-lua.h
589 libmurphy_resource_la_REGULAR_SOURCES = \
590 resource/attribute.c \
591 resource/resource.c \
592 resource/resource-set.c \
593 resource/application-class.c \
594 resource/resource-owner.c \
595 resource/resource-client.c \
597 resource/config-lua.c
599 libmurphy_resource_la_SOURCES = \
600 $(libmurphy_resource_la_REGULAR_SOURCES) \
603 libmurphy_resource_la_CFLAGS = \
608 libmurphy_resource_la_LDFLAGS = \
609 -Wl,-version-script=linker-script.resource \
610 -version-info @MURPHY_VERSION_INFO@
612 libmurphy_resource_la_LIBADD = \
614 libmurphy-common.la \
615 murphy-db/mql/libmql.la \
616 murphy-db/mqi/libmqi.la \
617 murphy-db/mdb/libmdb.la \
620 libmurphy_resource_la_DEPENDENCIES = linker-script.resource \
623 # debug file:line-function mapping generation
624 resource-func-info.c: $(libmurphy_resource_la_REGULAR_SOURCES)
625 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
628 -rm resource-func-info.c
630 # resource linker script generation
631 linker-script.resource: $(libmurphy_resource_la_HEADERS)
632 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
634 clean-linker-script::
635 -rm -f linker-script.resource
638 ##########################
639 # readline replacement
641 lib_LTLIBRARIES += libbreedline.la
642 EXTRA_DIST += breedline/breedline.pc
643 pkgconfig_DATA += breedline/breedline.pc
645 libbreedline_ladir = \
646 $(includedir)/breedline
648 libbreedline_la_HEADERS = \
649 breedline/breedline.h \
652 libbreedline_la_SOURCES = \
653 breedline/breedline.c
655 libbreedline_la_CFLAGS = \
658 libbreedline_la_LDFLAGS = \
659 -Wl,-version-script=linker-script.breedline \
660 -version-info @MURPHY_VERSION_INFO@
662 libbreedline_la_LIBADD =
664 libbreedline_la_DEPENDENCIES = linker-script.breedline
666 libbreedlineincludedir = $(includedir)/breedline
667 libbreedlineinclude_HEADERS = $(libbreedline_la_HEADERS)
669 # linker script generation
670 linker-script.breedline: $(libbreedline_la_HEADERS)
671 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
674 clean-linker-script::
675 -rm -f linker-script.breedline
677 ##########################
678 # breedline murphy glue library
680 lib_LTLIBRARIES += libbreedline-murphy.la
681 EXTRA_DIST += breedline/breedline-murphy.pc
682 pkgconfig_DATA += breedline/breedline-murphy.pc
684 libbreedline_murphy_ladir = $(includedir)/breedline
686 libbreedline_murphy_la_HEADERS = breedline/breedline-murphy.h
687 libbreedline_murphy_la_SOURCES = breedline/breedline-murphy.c
688 libbreedline_murphy_la_CFLAGS = $(AM_CFLAGS)
690 libbreedline_murphy_la_LDFLAGS = \
691 -Wl,-version-script=linker-script.breedline-murphy \
692 -version-info @MURPHY_VERSION_INFO@
694 libbreedline_murphy_la_LIBADD = libmurphy-common.la
696 libbreedline_murphy_la_DEPENDENCIES = linker-script.breedline-murphy
698 libbreedline_murphyincludedir = $(includedir)/breedline
699 libbreedline_murphyinclude_HEADERS = $(libbreedline_murphy_la_HEADERS)
701 # linker script generation
702 linker-script.breedline-murphy: $(libbreedline_murphy_la_HEADERS)
703 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
706 clean-linker-script::
707 -rm -f linker-script.breedline-murphy
710 ##########################
711 # breedline glib glue library
713 lib_LTLIBRARIES += libbreedline-glib.la
714 EXTRA_DIST += breedline/breedline-glib.pc
715 pkgconfig_DATA += breedline/breedline-glib.pc
717 libbreedline_glib_ladir = $(includedir)/breedline
719 libbreedline_glib_la_HEADERS = breedline/breedline-glib.h
720 libbreedline_glib_la_SOURCES = breedline/breedline-glib.c
721 libbreedline_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
723 libbreedline_glib_la_LDFLAGS = \
724 -Wl,-version-script=linker-script.breedline-glib \
725 -version-info @MURPHY_VERSION_INFO@
727 libbreedline_glib_la_LIBADD = $(GLIB_LIBS)
729 libbreedline_glib_la_DEPENDENCIES = linker-script.breedline-glib
731 libbreedline_glibincludedir = $(includedir)/breedline
732 libbreedline_glibinclude_HEADERS = $(libbreedline_glib_la_HEADERS)
734 # linker script generation
735 linker-script.breedline-glib: $(libbreedline_glib_la_HEADERS)
736 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
739 clean-linker-script::
740 -rm -f linker-script.breedline-glib
742 ###################################
747 BUILTIN_CFLAGS = -D__MURPHY_BUILTIN_PLUGIN__ $(AM_CFLAGS)
753 plugindir = $(libdir)/murphy/plugins
757 TEST_PLUGIN_SOURCES = plugins/plugin-test.c
761 if !DISABLED_PLUGIN_TEST
762 if BUILTIN_PLUGIN_TEST
763 BUILTIN_PLUGINS += $(TEST_PLUGIN_SOURCES)
764 BUILTIN_CFLAGS += $(TEST_PLUGIN_CFLAGS)
765 BUILTIN_LIBS += $(TEST_PLUGIN_LIBS)
767 plugin_test_la_SOURCES = $(TEST_PLUGIN_SOURCES)
768 plugin_test_la_CFLAGS = $(TEST_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
769 plugin_test_la_LDFLAGS = -module -avoid-version
770 plugin_test_la_LIBADD = $(TEST_PLUGIN_LIBS)
772 plugin_LTLIBRARIES += plugin-test.la
778 DBUS_PLUGIN_SOURCES = plugins/plugin-dbus.c
779 DBUS_PLUGIN_CFLAGS = $(DBUS_CFLAGS)
780 DBUS_PLUGIN_LIBS = libmurphy-dbus.la
782 if !DISABLED_PLUGIN_DBUS
783 if BUILTIN_PLUGIN_DBUS
784 BUILTIN_PLUGINS += $(DBUS_PLUGIN_SOURCES)
785 BUILTIN_CFLAGS += $(DBUS_PLUGIN_CFLAGS)
786 BUILTIN_LIBS += $(DBUS_PLUGIN_LIBS)
788 plugin_dbus_la_SOURCES = $(DBUS_PLUGIN_SOURCES)
789 plugin_dbus_la_CFLAGS = $(DBUS_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
790 plugin_dbus_la_LDFLAGS = -module -avoid-version
791 plugin_dbus_la_LIBADD = $(DBUS_PLUGIN_LIBS)
793 plugin_LTLIBRARIES += plugin-dbus.la
800 GLIB_PLUGIN_SOURCES = plugins/plugin-glib.c
801 GLIB_PLUGIN_CFLAGS = $(GLIB_CFLAGS)
802 GLIB_PLUGIN_LIBS = $(GLIB_LIBS)
804 if !DISABLED_PLUGIN_GLIB
805 if BUILTIN_PLUGIN_GLIB
806 BUILTIN_PLUGINS += $(GLIB_PLUGIN_SOURCES)
807 BUILTIN_CFLAGS += $(GLIB_PLUGIN_CFLAGS)
808 BUILTIN_LIBS += $(GLIB_PLUGIN_LIBS)
810 plugin_glib_la_SOURCES = $(GLIB_PLUGIN_SOURCES)
811 plugin_glib_la_CFLAGS = $(GLIB_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
812 plugin_glib_la_LDFLAGS = -module -avoid-version
813 plugin_glib_la_LIBADD = $(GLIB_PLUGIN_LIBS)
815 plugin_LTLIBRARIES += plugin-glib.la
820 # resource-dbus plugin
823 RESOURCE_DBUS_PLUGIN_SOURCES = plugins/plugin-resource-dbus.c
824 RESOURCE_DBUS_PLUGIN_CFLAGS = $(DBUS_CFLAGS)
825 RESOURCE_DBUS_PLUGIN_LIBS = libmurphy-resource.la libmurphy-dbus.la
827 if !DISABLED_PLUGIN_RESOURCE_DBUS
828 if BUILTIN_PLUGIN_RESOURCE_DBUS
829 BUILTIN_PLUGINS += $(RESOURCE_DBUS_PLUGIN_SOURCES)
830 BUILTIN_CFLAGS += $(RESOURCE_DBUS_PLUGIN_CFLAGS)
831 BUILTIN_LIBS += $(RESOURCE_DBUS_PLUGIN_LIBS)
833 plugin_resource_dbus_la_SOURCES = $(RESOURCE_DBUS_PLUGIN_SOURCES)
834 plugin_resource_dbus_la_CFLAGS = $(RESOURCE_DBUS_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
835 plugin_resource_dbus_la_LDFLAGS = -module -avoid-version
836 plugin_resource_dbus_la_LIBADD = $(RESOURCE_DBUS_PLUGIN_LIBS)
838 plugin_LTLIBRARIES += plugin-resource-dbus.la
845 CONSOLE_PLUGIN_REGULAR_SOURCES = plugins/plugin-console.c
846 CONSOLE_PLUGIN_SOURCES = $(CONSOLE_PLUGIN_REGULAR_SOURCES) \
847 plugin-console-func-info.c
848 CONSOLE_PLUGIN_CFLAGS =
849 CONSOLE_PLUGIN_LIBS =
852 if !DISABLED_PLUGIN_CONSOLE
853 if BUILTIN_PLUGIN_CONSOLE
854 BUILTIN_PLUGINS += $(CONSOLE_PLUGIN_SOURCES)
855 BUILTIN_CFLAGS += $(CONSOLE_PLUGIN_CFLAGS)
856 BUILTIN_LIBS += $(CONSOLE_PLUGIN_LIBS)
858 plugin_console_la_SOURCES = $(CONSOLE_PLUGIN_SOURCES)
859 plugin_console_la_CFLAGS = $(CONSOLE_PLUGIN_CFLAGS) \
860 $(MURPHY_CFLAGS) $(AM_CFLAGS)
861 plugin_console_la_LDFLAGS = -module -avoid-version
862 plugin_console_la_LIBADD = $(CONSOLE_PLUGIN_LIBS)
864 plugin_LTLIBRARIES += plugin-console.la
867 # debug file:line-function mapping generation
868 plugin-console-func-info.c: $(CONSOLE_PLUGIN_REGULAR_SOURCES)
869 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
872 -rm plugin-console-func-info.c
876 SIGNALLING_PLUGIN_SOURCES = plugins/plugin-signalling.c \
877 plugins/signalling/transaction.c \
878 plugins/signalling/util.c \
879 plugins/signalling/client.c \
880 plugins/signalling/info.c \
881 plugins/signalling/endpoint.c \
882 plugins/signalling/plugin.h \
883 plugins/signalling/transaction.h \
884 plugins/signalling/util.h \
885 plugins/signalling/client.h \
886 plugins/signalling/info.h \
887 plugins/signalling/endpoint.h
888 SIGNALLING_PLUGIN_HEADERS = plugins/signalling/signalling.h
889 SIGNALLING_PLUGIN_CFLAGS =
890 SIGNALLING_PLUGIN_LIBS =
891 SIGNALLING_PLUGINdir = $(includedir)/murphy/plugins/signalling
894 if BUILTIN_PLUGIN_SIGNALLING
895 BUILTIN_PLUGINS += $(SIGNALLING_PLUGIN_SOURCES)
896 BUILTIN_CFLAGS += $(SIGNALLING_PLUGIN_CFLAGS)
897 BUILTIN_LIBS += $(SIGNALLING_PLUGIN_LIBS)
899 plugin_signalling_la_SOURCES = $(SIGNALLING_PLUGIN_SOURCES)
900 plugin_signalling_la_HEADERS = $(SIGNALLING_PLUGIN_HEADERS)
901 plugin_signalling_la_CFLAGS = $(SIGNALLING_PLUGIN_CFLAGS) \
902 $(MURPHY_CFLAGS) $(AM_CFLAGS)
903 plugin_signalling_la_LDFLAGS = -module -avoid-version
904 plugin_signalling_la_LIBADD = $(SIGNALLING_PLUGIN_LIBS)
905 plugin_signalling_ladir = $(SIGNALLING_PLUGINdir)
907 plugin_LTLIBRARIES += plugin-signalling.la
910 # native resource plugin
912 PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES = \
913 plugins/resource-native/plugin-resource-native.c
914 PLUGIN_RESOURCE_NATIVE_SOURCES = \
915 $(PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES) \
916 plugin-resource-native-func-info.c
917 PLUGIN_RESOURCE_NATIVE_CFLAGS = \
920 PLUGIN_RESOURCE_NATIVE_LIBS = \
922 libmurphy-common.la \
923 murphy-db/mqi/libmqi.la \
924 murphy-db/mdb/libmdb.la \
925 libmurphy-resource.la \
928 plugin_resource_native_la_SOURCES = $(PLUGIN_RESOURCE_NATIVE_SOURCES)
929 plugin_resource_native_la_CFLAGS = $(PLUGIN_RESOURCE_NATIVE_CFLAGS) \
930 $(MURPHY_CFLAGS) $(AM_CFLAGS)
931 plugin_resource_native_la_LDFLAGS = -module -avoid-version
932 plugin_resource_native_la_LIBADD = $(PLUGIN_RESOURCE_NATIVE_LIBS)
934 plugin_LTLIBRARIES += plugin-resource-native.la
937 bin_PROGRAMS += resource-client
939 resource_client_SOURCES = plugins/resource-native/resource-client.c
940 resource_client_CFLAGS = $(AM_CFLAGS)
941 resource_client_LDADD = libmurphy-common.la
943 # debug file:line-function mapping generation
944 plugin-resource-native-func-info.c: $(PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES)
945 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
948 -rm plugin-resource-native-func-info.c
951 # domain control plugin
952 DOMAIN_CONTROL_PLUGIN_SOURCES = plugins/domain-control/plugin-domain-control.c \
953 plugins/domain-control/domain-control.c \
954 plugins/domain-control/proxy.c \
955 plugins/domain-control/table.c \
956 plugins/domain-control/message.c \
957 plugins/domain-control/notify.c
959 DOMAIN_CONTROL_PLUGIN_CFLAGS =
960 DOMAIN_CONTROL_PLUGIN_LIBS =
962 if !DISABLED_PLUGIN_DOMAIN_CONTROL
963 if BUILTIN_PLUGIN_DOMAIN_CONTROL
964 LINKEDIN_PLUGINS += libmurphy-plugin-domain-control.la
965 lib_LTLIBRARIES += libmurphy-plugin-domain-control.la
966 DOMAIN_CONTROL_PLUGIN_LOADER = linkedin-domain-control-loader.c
967 DOMAIN_CONTROL_PLUGIN_CFLAGS += $(BUILTIN_CFLAGS)
970 libmurphy_plugin_domain_control_ladir = \
971 $(includedir)/murphy/domain-control
973 libmurphy_plugin_domain_control_la_SOURCES = \
974 $(DOMAIN_CONTROL_PLUGIN_SOURCES) \
975 $(DOMAIN_CONTROL_PLUGIN_LOADER)
977 libmurphy_plugin_domain_control_la_CFLAGS = \
978 $(DOMAIN_CONTROL_PLUGIN_CFLAGS) \
981 libmurphy_plugin_domain_control_la_LDFLAGS = \
982 -Wl,-version-script=linker-script.domain-control \
983 -version-info @MURPHY_VERSION_INFO@
985 libmurphy_plugin_domain_control_la_LIBADD = \
987 libmurphy-common.la \
988 murphy-db/mql/libmql.la \
989 murphy-db/mqi/libmqi.la \
990 murphy-db/mdb/libmdb.la
992 libmurphy_plugin_domain_control_la_DEPENDENCIES = \
993 linker-script.domain-control \
995 libmurphy-common.la \
996 murphy-db/mql/libmql.la \
997 murphy-db/mqi/libmqi.la \
998 murphy-db/mdb/libmdb.la
1000 # linkedin domain control plugin linker script generation
1001 linker-script.domain-control: $(DOMAIN_CONTROL_PLUGIN_LOADER:%.c=%.h)
1002 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
1004 clean-linker-script::
1005 -rm -f linker-script.domain-control
1007 plugin_domain_control_la_SOURCES = $(DOMAIN_CONTROL_PLUGIN_SOURCES)
1008 plugin_domain_control_la_CFLAGS = $(DOMAIN_CONTROL_PLUGIN_CFLAGS) \
1009 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1010 plugin_domain_control_la_LDFLAGS = -module -avoid-version
1011 plugin_domain_control_la_LIBADD = $(DOMAIN_CONTROL_PLUGIN_LIBS)
1012 plugin_LTLIBRARIES += plugin-domain-control.la
1015 # domain controller client library
1016 lib_LTLIBRARIES += libmurphy-domain-controller.la
1017 EXTRA_DIST += plugins/domain-control/murphy-domain-controller.pc
1018 pkgconfig_DATA += plugins/domain-control/murphy-domain-controller.pc
1020 libmurphy_domain_controller_ladir = \
1021 $(includedir)/murphy/domain-control
1023 libmurphy_domain_controller_la_HEADERS = \
1024 plugins/domain-control/client.h
1026 libmurphy_domain_controller_la_SOURCES = plugins/domain-control/client.c \
1027 plugins/domain-control/table-common.c\
1028 plugins/domain-control/message.c
1029 libmurphy_domain_controller_la_CFLAGS =
1030 libmurphy_domain_controller_la_LIBADD = libmurphy-common.la \
1031 murphy-db/mql/libmql.la \
1032 murphy-db/mqi/libmqi.la \
1033 murphy-db/mdb/libmdb.la
1035 # test domain controller (disabled until we have a readline replacement)
1036 bin_PROGRAMS += test-domain-controller
1038 test_domain_controller_SOURCES = plugins/domain-control/test-client.c
1039 test_domain_controller_CFLAGS = $(AM_CFLAGS)
1040 test_domain_controller_LDADD = libmurphy-domain-controller.la \
1041 libbreedline-murphy.la \
1048 LUA_PLUGIN_SOURCES = plugins/plugin-lua.c
1049 LUA_PLUGIN_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
1053 if BUILTIN_PLUGIN_LUA
1054 BUILTIN_PLUGINS += $(LUA_PLUGIN_SOURCES)
1055 BUILTIN_CFLAGS += $(LUA_PLUGIN_CFLAGS)
1056 BUILTIN_LIBS += $(LUA_PLUGIN_LIBS)
1058 plugin_lua_la_SOURCES = plugins/plugin-lua.c
1059 plugin_lua_la_CFLAGS = $(LUA_PLUGIN_CFLAGS) \
1060 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1061 plugin_lua_la_LDFLAGS = -module -avoid-version
1062 plugin_lua_la_LIBADD = $(LUA_PLUGIN_LIBS) $(LUA_LIBS)
1064 plugin_LTLIBRARIES += plugin-lua.la
1068 ###################################
1072 RESOURCE_LIBRARY = libmurphy-resource.la
1077 bin_PROGRAMS += murphyd
1078 EXTRA_DIST += $(config_DATA)
1079 configdir = $(sysconfdir)/murphy
1080 config_DATA = daemon/murphy.conf
1085 $(BUILTIN_PLUGINS) \
1086 load-linkedin-plugins.c
1094 $(LINKEDIN_PLUGINS) \
1095 $(RESOURCE_LIBRARY) \
1096 libmurphy-resolver.la \
1097 libmurphy-lua-decision.la \
1099 libmurphy-lua-utils.la \
1102 murphyd_LDFLAGS = -rdynamic
1106 ###################################
1107 # linkedin (DSO) loader generation
1110 linkedin-%-loader.c:
1111 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1112 -p $(shell echo $@ | \
1113 sed 's/linkedin-//g;s/-loader.c//g') -o $@
1115 linkedin-%-loader.h:
1116 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1117 -p $(shell echo $@ | \
1118 sed 's/linkedin-//g;s/-loader.h//g') -o $@
1120 load-linkedin-plugins.c:
1121 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1122 -o $@ -d $(shell echo $(LINKEDIN_PLUGINS) | \
1123 sed 's/.*plugin-//g;s/\.[^\.]*$$//g')
1126 -rm -f linkedin-*-loader.[hc] load-linkedin-plugins.c
1128 ###################################
1129 # murphy console client
1133 bin_PROGRAMS += murphy-console
1135 murphy_console_SOURCES = \
1136 console-client/client.c
1138 murphy_console_CFLAGS = \
1141 murphy_console_LDADD = \
1142 libbreedline-murphy.la \
1147 murphy_console_LDADD += libmurphy-dbus.la
1150 murphy_console_LDFLAGS = -rdynamic
1154 clean-local:: # clean-linker-script clean-func-infos