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)
23 ###################################
24 # murphy common library
27 lib_LTLIBRARIES += libmurphy-common.la
28 EXTRA_DIST += common/murphy-common.pc
29 pkgconfig_DATA += common/murphy-common.pc
32 libmurphy_commonh_ladir = \
35 libmurphy_commonh_la_HEADERS = \
39 libmurphy_common_ladir = \
40 $(includedir)/murphy/common
42 libmurphy_common_la_HEADERS = \
57 libmurphy_common_la_REGULAR_SOURCES = \
67 common/stream-transport.c \
68 common/internal-transport.c \
69 common/dgram-transport.c
71 libmurphy_common_la_SOURCES = \
72 $(libmurphy_common_la_REGULAR_SOURCES) \
75 libmurphy_common_la_CFLAGS = \
78 libmurphy_common_la_LDFLAGS = \
79 -Wl,-version-script=linker-script.common \
80 -version-info @MURPHY_VERSION_INFO@
82 libmurphy_common_la_LIBADD = \
85 libmurphy_common_la_DEPENDENCIES = linker-script.common
87 libcommonincludedir = $(includedir)/murphy/common
88 libcommoninclude_HEADERS = $(libmurphy_common_la_HEADERS)
90 # linker script generation
91 linker-script.common: $(libmurphy_common_la_HEADERS)
92 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
95 -rm -f linker-script.common
97 # debug file:line-function mapping generation
98 common-func-info.c: $(libmurphy_common_la_REGULAR_SOURCES)
99 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
102 -rm common-func-info.c
104 ###################################
105 # murphy lua utilities
108 lib_LTLIBRARIES += libmurphy-lua-utils.la
109 EXTRA_DIST += core/lua-utils/murphy-lua-utils.pc
110 pkgconfig_DATA += core/lua-utils/murphy-lua-utils.pc
112 libmurphy_lua_utils_ladir = \
113 $(includedir)/murphy/core/lua-utils
115 libmurphy_lua_utils_la_HEADERS = \
116 core/lua-utils/strarray.h \
117 core/lua-utils/funcbridge.h \
118 core/lua-utils/object.h
120 libmurphy_lua_utils_la_REGULAR_SOURCES = \
121 core/lua-utils/strarray.c \
122 core/lua-utils/funcbridge.c \
123 core/lua-utils/object.c
125 libmurphy_lua_utils_la_SOURCES = \
126 $(libmurphy_lua_utils_la_REGULAR_SOURCES) \
127 lua-utils-func-info.c
129 libmurphy_lua_utils_la_CFLAGS = \
133 libmurphy_lua_utils_la_LDFLAGS = \
134 -Wl,-version-script=linker-script.lua-utils \
135 -version-info @MURPHY_VERSION_INFO@
137 libmurphy_lua_utils_la_LIBADD = \
140 libmurphy_lua_utils_la_DEPENDENCIES = linker-script.lua-utils
142 # debug file:line-function mapping generation
143 lua-utils-func-info.c: $(libmurphy_lua_utils_la_REGULAR_SOURCES)
144 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
147 -rm lua-utils-func-info.c
149 # lua-utils linker script generation
150 linker-script.lua-utils: $(libmurphy_lua_utils_la_HEADERS)
151 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
153 clean-linker-script::
154 -rm -f linker-script.lua-utils
157 ###################################
158 # murphy lua decision network
161 lib_LTLIBRARIES += libmurphy-lua-decision.la
162 EXTRA_DIST += core/lua-decision/murphy-lua-decision.pc
163 pkgconfig_DATA += core/lua-decision/murphy-lua-decision.pc
165 libmurphy_lua_decision_ladir = \
166 $(includedir)/murphy/core/lua-decision
168 libmurphy_lua_decision_la_HEADERS = \
169 core/lua-decision/mdb.h \
170 core/lua-decision/element.h
172 libmurphy_lua_decision_la_REGULAR_SOURCES = \
173 core/lua-decision/mdb.c \
174 core/lua-decision/element.c
176 libmurphy_lua_decision_la_SOURCES = \
177 $(libmurphy_lua_decision_la_REGULAR_SOURCES) \
178 lua-decision-func-info.c
180 libmurphy_lua_decision_la_CFLAGS = \
184 libmurphy_lua_decision_la_LDFLAGS = \
185 -Wl,-version-script=linker-script.lua-decision \
186 -version-info @MURPHY_VERSION_INFO@
188 libmurphy_lua_decision_la_LIBADD = \
191 libmurphy_lua_decision_la_DEPENDENCIES = linker-script.lua-decision
193 # debug file:line-function mapping generation
194 lua-decision-func-info.c: $(libmurphy_lua_decision_la_REGULAR_SOURCES)
195 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
198 -rm lua-decision-func-info.c
200 # lua-decision linker script generation
201 linker-script.lua-decision: $(libmurphy_lua_decision_la_HEADERS)
202 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
204 clean-linker-script::
205 -rm -f linker-script.lua-decision
208 ###################################
209 # murphy core library
212 lib_LTLIBRARIES += libmurphy-core.la
213 EXTRA_DIST += core/murphy-core.pc
214 pkgconfig_DATA += core/murphy-core.pc
216 LUA_BINDINGS_SOURCES = \
217 core/lua-bindings/lua-murphy.c \
218 core/lua-bindings/lua-plugin.c \
219 core/lua-bindings/lua-log.c \
220 core/lua-bindings/lua-console.c
222 libmurphy_core_lua_bindings_ladir = \
223 $(includedir)/murphy/core/lua-bindings
225 libmurphy_core_lua_bindings_la_HEADERS = \
226 core/lua-bindings/murphy.h
228 libmurphy_coreh_ladir = \
231 libmurphy_coreh_la_HEADERS = \
234 libmurphy_core_ladir = \
235 $(includedir)/murphy/core
237 libmurphy_core_la_HEADERS = \
240 core/console-command.h \
246 libmurphy_core_la_REGULAR_SOURCES = \
253 $(LUA_BINDINGS_SOURCES)
255 libmurphy_core_la_SOURCES = \
256 $(libmurphy_core_la_REGULAR_SOURCES) \
259 libmurphy_core_la_CFLAGS = \
263 libmurphy_core_la_LDFLAGS = \
264 -Wl,-version-script=linker-script.core \
265 -version-info @MURPHY_VERSION_INFO@
267 libmurphy_core_la_LIBADD = \
268 libmurphy-common.la \
269 libmurphy-lua-decision.la \
270 libmurphy-lua-utils.la \
274 libmurphy_core_la_DEPENDENCIES = linker-script.core \
275 $(filter %.la, $(libmurphy_core_la_LIBADD))
277 # core linker script generation
278 linker-script.core: $(libmurphy_core_la_HEADERS) \
279 $(libmurphy_core_lua_bindings_la_HEADERS)
280 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
282 clean-linker-script::
283 -rm -f linker-script.core
285 # debug file:line-function mapping generation
286 core-func-info.c: $(libmurphy_core_la_REGULAR_SOURCES)
287 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
292 ###################################
293 # murphy dbus library
297 lib_LTLIBRARIES += libmurphy-dbus.la
298 EXTRA_DIST += common/murphy-dbus.pc
299 pkgconfig_DATA += common/murphy-dbus.pc
301 libmurphy_dbus_ladir = \
302 $(includedir)/murphy/common
304 libmurphy_dbus_la_HEADERS = \
306 common/dbus-transport.h
308 libmurphy_dbus_la_REGULAR_SOURCES = \
311 common/dbus-transport.c
313 libmurphy_dbus_la_SOURCES = \
314 $(libmurphy_dbus_la_REGULAR_SOURCES) \
317 libmurphy_dbus_la_CFLAGS = \
321 libmurphy_dbus_la_LDFLAGS = \
322 -Wl,-version-script=linker-script.dbus \
323 -version-info @MURPHY_VERSION_INFO@
325 libmurphy_dbus_la_LIBADD = \
328 libmurphy_dbus_la_DEPENDENCIES = linker-script.dbus
330 libdbusincludedir = $(includedir)/murphy/dbus
331 libdbusinclude_HEADERS = $(libmurphy_dbus_la_HEADERS)
333 # linker script generation
334 linker-script.dbus: $(libmurphy_dbus_la_HEADERS)
335 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
337 clean-linker-script::
338 -rm -f linker-script.dbus
340 # debug file:line-function mapping generation
341 dbus-func-info.c: $(libmurphy_dbus_la_REGULAR_SOURCES)
342 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
348 ###################################
349 # murphy pulse glue library
353 lib_LTLIBRARIES += libmurphy-pulse.la
354 EXTRA_DIST += common/murphy-pulse.pc
355 pkgconfig_DATA += common/murphy-pulse.pc
357 libmurphy_pulse_ladir = \
358 $(includedir)/murphy/common
360 libmurphy_pulse_la_HEADERS = \
363 libmurphy_pulse_la_SOURCES = \
366 libmurphy_pulse_la_CFLAGS = \
370 libmurphy_pulse_la_LDFLAGS = \
371 -Wl,-version-script=linker-script.pulse \
372 -version-info @MURPHY_VERSION_INFO@
374 libmurphy_pulse_la_LIBADD =
376 libmurphy_pulse_la_DEPENDENCIES = linker-script.pulse
378 libpulseincludedir = $(includedir)/murphy/pulse
379 libpulseinclude_HEADERS = $(libmurphy_pulse_la_HEADERS)
381 # linker script generation
382 linker-script.pulse: $(libmurphy_pulse_la_HEADERS)
383 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
385 clean-linker-script::
386 -rm -f linker-script.pulse
389 ###################################
390 # murphy ecore glue library
394 lib_LTLIBRARIES += libmurphy-ecore.la
395 EXTRA_DIST += common/murphy-ecore.pc
396 pkgconfig_DATA += common/murphy-ecore.pc
398 libmurphy_ecore_ladir = \
399 $(includedir)/murphy/common
401 libmurphy_ecore_la_HEADERS = \
404 libmurphy_ecore_la_SOURCES = \
407 libmurphy_ecore_la_CFLAGS = \
411 libmurphy_ecore_la_LDFLAGS = \
412 -Wl,-version-script=linker-script.ecore \
413 -version-info @MURPHY_VERSION_INFO@
415 libmurphy_ecore_la_LIBADD =
417 libmurphy_ecore_la_DEPENDENCIES = linker-script.ecore
419 libecoreincludedir = $(includedir)/murphy/ecore
420 libecoreinclude_HEADERS = $(libmurphy_ecore_la_HEADERS)
422 # linker script generation
423 linker-script.ecore: $(libmurphy_ecore_la_HEADERS)
424 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
426 clean-linker-script::
427 -rm -f linker-script.ecore
430 ###################################
431 # murphy glib glue library
435 lib_LTLIBRARIES += libmurphy-glib.la
436 EXTRA_DIST += common/murphy-glib.pc
437 pkgconfig_DATA += common/murphy-glib.pc
439 libmurphy_glib_ladir = \
440 $(includedir)/murphy/common
442 libmurphy_glib_la_HEADERS = \
445 libmurphy_glib_la_SOURCES = \
448 libmurphy_glib_la_CFLAGS = \
452 libmurphy_glib_la_LDFLAGS = \
453 -Wl,-version-script=linker-script.glib \
454 -version-info @MURPHY_VERSION_INFO@
456 libmurphy_glib_la_LIBADD =
458 libmurphy_glib_la_DEPENDENCIES = linker-script.glib
460 libglibincludedir = $(includedir)/murphy/glib
461 libglibinclude_HEADERS = $(libmurphy_glib_la_HEADERS)
463 # linker script generation
464 linker-script.glib: $(libmurphy_glib_la_HEADERS)
465 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
467 clean-linker-script::
468 -rm -f linker-script.glib
471 ###################################
472 # murphy resolver library
475 lib_LTLIBRARIES += libmurphy-resolver.la
476 EXTRA_DIST += resolver/murphy-resolver.pc
477 pkgconfig_DATA += resolver/murphy-resolver.pc
479 BUILT_SOURCES += resolver/scanner.c resolver/parser.c
481 libmurphy_resolver_ladir = \
482 $(includedir)/murphy/resolver
484 libmurphy_resolver_la_HEADERS = \
487 SIMPLE_SCRIPT_SOURCES = \
488 resolver/scripting/simple/simple-script.c \
489 resolver/scripting/simple/simple-scanner.c \
490 resolver/scripting/simple/simple-parser.c \
491 resolver/scripting/simple/call.c \
492 resolver/scripting/simple/builtins.c
494 libmurphy_resolver_la_REGULAR_SOURCES = \
495 resolver/resolver.c \
499 resolver/target-sorter.c \
502 $(SIMPLE_SCRIPT_SOURCES)
504 libmurphy_resolver_la_SOURCES = \
505 $(libmurphy_resolver_la_REGULAR_SOURCES) \
508 libmurphy_resolver_la_CFLAGS = \
512 libmurphy_resolver_la_LDFLAGS = \
513 -Wl,-version-script=linker-script.resolver \
514 -version-info @MURPHY_VERSION_INFO@
516 libmurphy_resolver_la_LIBADD = \
518 libmurphy-common.la \
519 murphy-db/mql/libmql.la \
520 murphy-db/mqi/libmqi.la \
521 murphy-db/mdb/libmdb.la
523 libmurphy_resolver_la_DEPENDENCIES = linker-script.resolver \
524 $(filter %.la, $(libmurphy_resolver_la_LIBADD))
526 # resolver lexical analyser and parser generation
527 RESOLVER_PARSER_PREFIX = yy_res_
529 resolver/scanner.c: resolver/scanner.l resolver/parser.c
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) $< -o resolver/parser.c
536 # debug file:line-function mapping generation
537 resolver-func-info.c: $(libmurphy_resolver_la_REGULAR_SOURCES)
538 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
541 -rm resolver-func-info.c
543 # resolver linker script generation
544 linker-script.resolver: $(libmurphy_resolver_la_HEADERS)
545 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
547 clean-linker-script::
548 -rm -f linker-script.resolver
550 # simple interpreter lexical analyser and parser generation
551 SIMPLE_PARSER_PREFIX = yy_smpl_
552 BUILT_SOURCES += resolver/scripting/simple/simple-scanner.c \
553 resolver/scripting/simple/simple-parser.c
555 resolver/scripting/simple/simple-scanner.c: \
556 resolver/scripting/simple/simple-scanner.l \
557 resolver/scripting/simple/simple-parser.c
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) $< -o \
566 resolver/scripting/simple/simple-parser.c
568 ###################################
569 # murphy resource library
572 lib_LTLIBRARIES += libmurphy-resource.la
573 EXTRA_DIST += resource/murphy-resource.pc
574 pkgconfig_DATA += resource/murphy-resource.pc
576 libmurphy_resource_ladir = \
577 $(includedir)/murphy/resource
579 libmurphy_resource_la_HEADERS = \
580 resource/data-types.h \
581 resource/common-api.h \
582 resource/client-api.h \
583 resource/manager-api.h \
584 resource/config-api.h \
585 resource/protocol.h \
586 resource/config-lua.h
588 libmurphy_resource_la_REGULAR_SOURCES = \
589 resource/attribute.c \
590 resource/resource.c \
591 resource/resource-set.c \
592 resource/application-class.c \
593 resource/resource-owner.c \
594 resource/resource-client.c \
596 resource/config-lua.c
598 libmurphy_resource_la_SOURCES = \
599 $(libmurphy_resource_la_REGULAR_SOURCES) \
602 libmurphy_resource_la_CFLAGS = \
607 libmurphy_resource_la_LDFLAGS = \
608 -Wl,-version-script=linker-script.resource \
609 -version-info @MURPHY_VERSION_INFO@
611 libmurphy_resource_la_LIBADD = \
613 libmurphy-common.la \
614 murphy-db/mql/libmql.la \
615 murphy-db/mqi/libmqi.la \
616 murphy-db/mdb/libmdb.la \
619 libmurphy_resource_la_DEPENDENCIES = linker-script.resource \
620 $(filter %.la, $(libmurphy_resource_la_LIBADD))
622 # debug file:line-function mapping generation
623 resource-func-info.c: $(libmurphy_resource_la_REGULAR_SOURCES)
624 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
627 -rm resource-func-info.c
629 # resource linker script generation
630 linker-script.resource: $(libmurphy_resource_la_HEADERS)
631 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
633 clean-linker-script::
634 -rm -f linker-script.resource
637 ##########################
638 # readline replacement
640 lib_LTLIBRARIES += libbreedline.la
641 EXTRA_DIST += breedline/breedline.pc
642 pkgconfig_DATA += breedline/breedline.pc
644 libbreedline_ladir = \
645 $(includedir)/breedline
647 libbreedline_la_HEADERS = \
648 breedline/breedline.h \
651 libbreedline_la_SOURCES = \
652 breedline/breedline.c
654 libbreedline_la_CFLAGS = \
657 libbreedline_la_LDFLAGS = \
658 -Wl,-version-script=linker-script.breedline \
659 -version-info @MURPHY_VERSION_INFO@
661 libbreedline_la_LIBADD =
663 libbreedline_la_DEPENDENCIES = linker-script.breedline
665 libbreedlineincludedir = $(includedir)/breedline
666 libbreedlineinclude_HEADERS = $(libbreedline_la_HEADERS)
668 # linker script generation
669 linker-script.breedline: $(libbreedline_la_HEADERS)
670 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
673 clean-linker-script::
674 -rm -f linker-script.breedline
676 ##########################
677 # breedline murphy glue library
679 lib_LTLIBRARIES += libbreedline-murphy.la
680 EXTRA_DIST += breedline/breedline-murphy.pc
681 pkgconfig_DATA += breedline/breedline-murphy.pc
683 libbreedline_murphy_ladir = $(includedir)/breedline
685 libbreedline_murphy_la_HEADERS = breedline/breedline-murphy.h
686 libbreedline_murphy_la_SOURCES = breedline/breedline-murphy.c
687 libbreedline_murphy_la_CFLAGS = $(AM_CFLAGS)
689 libbreedline_murphy_la_LDFLAGS = \
690 -Wl,-version-script=linker-script.breedline-murphy \
691 -version-info @MURPHY_VERSION_INFO@
693 libbreedline_murphy_la_LIBADD = libmurphy-common.la
695 libbreedline_murphy_la_DEPENDENCIES = linker-script.breedline-murphy \
696 $(filter %.la,$(libbreedline_murphy_la_LIBADD))
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
715 lib_LTLIBRARIES += libbreedline-glib.la
716 EXTRA_DIST += breedline/breedline-glib.pc
717 pkgconfig_DATA += breedline/breedline-glib.pc
719 libbreedline_glib_ladir = $(includedir)/breedline
721 libbreedline_glib_la_HEADERS = breedline/breedline-glib.h
722 libbreedline_glib_la_SOURCES = breedline/breedline-glib.c
723 libbreedline_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
725 libbreedline_glib_la_LDFLAGS = \
726 -Wl,-version-script=linker-script.breedline-glib \
727 -version-info @MURPHY_VERSION_INFO@
729 libbreedline_glib_la_LIBADD = $(GLIB_LIBS)
731 libbreedline_glib_la_DEPENDENCIES = linker-script.breedline-glib
733 libbreedline_glibincludedir = $(includedir)/breedline
734 libbreedline_glibinclude_HEADERS = $(libbreedline_glib_la_HEADERS)
736 # linker script generation
737 linker-script.breedline-glib: $(libbreedline_glib_la_HEADERS)
738 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
741 clean-linker-script::
742 -rm -f linker-script.breedline-glib
745 ###################################
750 BUILTIN_CFLAGS = -D__MURPHY_BUILTIN_PLUGIN__ $(AM_CFLAGS)
756 plugindir = $(libdir)/murphy/plugins
760 TEST_PLUGIN_SOURCES = plugins/plugin-test.c
764 if !DISABLED_PLUGIN_TEST
765 if BUILTIN_PLUGIN_TEST
766 BUILTIN_PLUGINS += $(TEST_PLUGIN_SOURCES)
767 BUILTIN_CFLAGS += $(TEST_PLUGIN_CFLAGS)
768 BUILTIN_LIBS += $(TEST_PLUGIN_LIBS)
770 plugin_test_la_SOURCES = $(TEST_PLUGIN_SOURCES)
771 plugin_test_la_CFLAGS = $(TEST_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
772 plugin_test_la_LDFLAGS = -module -avoid-version
773 plugin_test_la_LIBADD = $(TEST_PLUGIN_LIBS)
775 plugin_LTLIBRARIES += plugin-test.la
781 DBUS_PLUGIN_SOURCES = plugins/plugin-dbus.c
782 DBUS_PLUGIN_CFLAGS = $(DBUS_CFLAGS)
783 DBUS_PLUGIN_LIBS = libmurphy-dbus.la
785 if !DISABLED_PLUGIN_DBUS
786 if BUILTIN_PLUGIN_DBUS
787 BUILTIN_PLUGINS += $(DBUS_PLUGIN_SOURCES)
788 BUILTIN_CFLAGS += $(DBUS_PLUGIN_CFLAGS)
789 BUILTIN_LIBS += $(DBUS_PLUGIN_LIBS)
791 plugin_dbus_la_SOURCES = $(DBUS_PLUGIN_SOURCES)
792 plugin_dbus_la_CFLAGS = $(DBUS_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
793 plugin_dbus_la_LDFLAGS = -module -avoid-version
794 plugin_dbus_la_LIBADD = $(DBUS_PLUGIN_LIBS)
796 plugin_LTLIBRARIES += plugin-dbus.la
803 GLIB_PLUGIN_SOURCES = plugins/plugin-glib.c
804 GLIB_PLUGIN_CFLAGS = $(GLIB_CFLAGS)
805 GLIB_PLUGIN_LIBS = $(GLIB_LIBS)
807 if !DISABLED_PLUGIN_GLIB
808 if BUILTIN_PLUGIN_GLIB
809 BUILTIN_PLUGINS += $(GLIB_PLUGIN_SOURCES)
810 BUILTIN_CFLAGS += $(GLIB_PLUGIN_CFLAGS)
811 BUILTIN_LIBS += $(GLIB_PLUGIN_LIBS)
813 plugin_glib_la_SOURCES = $(GLIB_PLUGIN_SOURCES)
814 plugin_glib_la_CFLAGS = $(GLIB_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
815 plugin_glib_la_LDFLAGS = -module -avoid-version
816 plugin_glib_la_LIBADD = $(GLIB_PLUGIN_LIBS)
818 plugin_LTLIBRARIES += plugin-glib.la
823 # resource-dbus plugin
826 RESOURCE_DBUS_PLUGIN_SOURCES = plugins/plugin-resource-dbus.c
827 RESOURCE_DBUS_PLUGIN_CFLAGS = $(DBUS_CFLAGS)
828 RESOURCE_DBUS_PLUGIN_LIBS = libmurphy-resource.la libmurphy-dbus.la
830 if !DISABLED_PLUGIN_RESOURCE_DBUS
831 if BUILTIN_PLUGIN_RESOURCE_DBUS
832 BUILTIN_PLUGINS += $(RESOURCE_DBUS_PLUGIN_SOURCES)
833 BUILTIN_CFLAGS += $(RESOURCE_DBUS_PLUGIN_CFLAGS)
834 BUILTIN_LIBS += $(RESOURCE_DBUS_PLUGIN_LIBS)
836 plugin_resource_dbus_la_SOURCES = $(RESOURCE_DBUS_PLUGIN_SOURCES)
837 plugin_resource_dbus_la_CFLAGS = $(RESOURCE_DBUS_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
838 plugin_resource_dbus_la_LDFLAGS = -module -avoid-version
839 plugin_resource_dbus_la_LIBADD = $(RESOURCE_DBUS_PLUGIN_LIBS)
841 plugin_LTLIBRARIES += plugin-resource-dbus.la
848 CONSOLE_PLUGIN_REGULAR_SOURCES = plugins/plugin-console.c
849 CONSOLE_PLUGIN_SOURCES = $(CONSOLE_PLUGIN_REGULAR_SOURCES) \
850 plugin-console-func-info.c
851 CONSOLE_PLUGIN_CFLAGS =
852 CONSOLE_PLUGIN_LIBS =
855 if !DISABLED_PLUGIN_CONSOLE
856 if BUILTIN_PLUGIN_CONSOLE
857 BUILTIN_PLUGINS += $(CONSOLE_PLUGIN_SOURCES)
858 BUILTIN_CFLAGS += $(CONSOLE_PLUGIN_CFLAGS)
859 BUILTIN_LIBS += $(CONSOLE_PLUGIN_LIBS)
861 plugin_console_la_SOURCES = $(CONSOLE_PLUGIN_SOURCES)
862 plugin_console_la_CFLAGS = $(CONSOLE_PLUGIN_CFLAGS) \
863 $(MURPHY_CFLAGS) $(AM_CFLAGS)
864 plugin_console_la_LDFLAGS = -module -avoid-version
865 plugin_console_la_LIBADD = $(CONSOLE_PLUGIN_LIBS)
867 plugin_LTLIBRARIES += plugin-console.la
870 # debug file:line-function mapping generation
871 plugin-console-func-info.c: $(CONSOLE_PLUGIN_REGULAR_SOURCES)
872 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
875 -rm plugin-console-func-info.c
879 SIGNALLING_PLUGIN_SOURCES = plugins/plugin-signalling.c \
880 plugins/signalling/transaction.c \
881 plugins/signalling/util.c \
882 plugins/signalling/client.c \
883 plugins/signalling/info.c \
884 plugins/signalling/endpoint.c \
885 plugins/signalling/plugin.h \
886 plugins/signalling/transaction.h \
887 plugins/signalling/util.h \
888 plugins/signalling/client.h \
889 plugins/signalling/info.h \
890 plugins/signalling/endpoint.h
891 SIGNALLING_PLUGIN_HEADERS = plugins/signalling/signalling.h
892 SIGNALLING_PLUGIN_CFLAGS =
893 SIGNALLING_PLUGIN_LIBS =
894 SIGNALLING_PLUGINdir = $(includedir)/murphy/plugins/signalling
897 if BUILTIN_PLUGIN_SIGNALLING
898 BUILTIN_PLUGINS += $(SIGNALLING_PLUGIN_SOURCES)
899 BUILTIN_CFLAGS += $(SIGNALLING_PLUGIN_CFLAGS)
900 BUILTIN_LIBS += $(SIGNALLING_PLUGIN_LIBS)
902 plugin_signalling_la_SOURCES = $(SIGNALLING_PLUGIN_SOURCES)
903 plugin_signalling_la_HEADERS = $(SIGNALLING_PLUGIN_HEADERS)
904 plugin_signalling_la_CFLAGS = $(SIGNALLING_PLUGIN_CFLAGS) \
905 $(MURPHY_CFLAGS) $(AM_CFLAGS)
906 plugin_signalling_la_LDFLAGS = -module -avoid-version
907 plugin_signalling_la_LIBADD = $(SIGNALLING_PLUGIN_LIBS)
908 plugin_signalling_ladir = $(SIGNALLING_PLUGINdir)
910 plugin_LTLIBRARIES += plugin-signalling.la
913 # native resource plugin
915 PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES = \
916 plugins/resource-native/plugin-resource-native.c
917 PLUGIN_RESOURCE_NATIVE_SOURCES = \
918 $(PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES) \
919 plugin-resource-native-func-info.c
920 PLUGIN_RESOURCE_NATIVE_CFLAGS = \
923 PLUGIN_RESOURCE_NATIVE_LIBS = \
925 libmurphy-common.la \
926 murphy-db/mqi/libmqi.la \
927 murphy-db/mdb/libmdb.la \
928 libmurphy-resource.la \
931 plugin_resource_native_la_SOURCES = $(PLUGIN_RESOURCE_NATIVE_SOURCES)
932 plugin_resource_native_la_CFLAGS = $(PLUGIN_RESOURCE_NATIVE_CFLAGS) \
933 $(MURPHY_CFLAGS) $(AM_CFLAGS)
934 plugin_resource_native_la_LDFLAGS = -module -avoid-version
935 plugin_resource_native_la_LIBADD = $(PLUGIN_RESOURCE_NATIVE_LIBS)
937 plugin_LTLIBRARIES += plugin-resource-native.la
940 bin_PROGRAMS += resource-client
942 resource_client_SOURCES = plugins/resource-native/resource-client.c
943 resource_client_CFLAGS = $(AM_CFLAGS)
944 resource_client_LDADD = libmurphy-common.la
946 # debug file:line-function mapping generation
947 plugin-resource-native-func-info.c: $(PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES)
948 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
951 -rm plugin-resource-native-func-info.c
954 # domain control plugin
955 DOMAIN_CONTROL_PLUGIN_SOURCES = plugins/domain-control/plugin-domain-control.c \
956 plugins/domain-control/domain-control.c \
957 plugins/domain-control/proxy.c \
958 plugins/domain-control/table.c \
959 plugins/domain-control/message.c \
960 plugins/domain-control/notify.c
962 DOMAIN_CONTROL_PLUGIN_CFLAGS =
963 DOMAIN_CONTROL_PLUGIN_LIBS =
965 if !DISABLED_PLUGIN_DOMAIN_CONTROL
966 if BUILTIN_PLUGIN_DOMAIN_CONTROL
967 LINKEDIN_PLUGINS += libmurphy-plugin-domain-control.la
968 lib_LTLIBRARIES += libmurphy-plugin-domain-control.la
969 DOMAIN_CONTROL_PLUGIN_LOADER = linkedin-domain-control-loader.c
970 DOMAIN_CONTROL_PLUGIN_CFLAGS += $(BUILTIN_CFLAGS)
973 libmurphy_plugin_domain_control_ladir = \
974 $(includedir)/murphy/domain-control
976 libmurphy_plugin_domain_control_la_SOURCES = \
977 $(DOMAIN_CONTROL_PLUGIN_SOURCES) \
978 $(DOMAIN_CONTROL_PLUGIN_LOADER)
980 libmurphy_plugin_domain_control_la_CFLAGS = \
981 $(DOMAIN_CONTROL_PLUGIN_CFLAGS) \
984 libmurphy_plugin_domain_control_la_LDFLAGS = \
985 -Wl,-version-script=linker-script.domain-control \
986 -version-info @MURPHY_VERSION_INFO@
988 libmurphy_plugin_domain_control_la_LIBADD = \
990 libmurphy-common.la \
991 murphy-db/mql/libmql.la \
992 murphy-db/mqi/libmqi.la \
993 murphy-db/mdb/libmdb.la
995 libmurphy_plugin_domain_control_la_DEPENDENCIES = \
996 linker-script.domain-control \
997 $(filter %.la, $(libmurphy_plugin_domain_control_la_LIBADD))
999 # linkedin domain control plugin linker script generation
1000 linker-script.domain-control: $(DOMAIN_CONTROL_PLUGIN_LOADER:%.c=%.h)
1001 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
1003 clean-linker-script::
1004 -rm -f linker-script.domain-control
1006 plugin_domain_control_la_SOURCES = $(DOMAIN_CONTROL_PLUGIN_SOURCES)
1007 plugin_domain_control_la_CFLAGS = $(DOMAIN_CONTROL_PLUGIN_CFLAGS) \
1008 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1009 plugin_domain_control_la_LDFLAGS = -module -avoid-version
1010 plugin_domain_control_la_LIBADD = $(DOMAIN_CONTROL_PLUGIN_LIBS)
1011 plugin_LTLIBRARIES += plugin-domain-control.la
1014 # domain controller client library
1015 lib_LTLIBRARIES += libmurphy-domain-controller.la
1016 EXTRA_DIST += plugins/domain-control/murphy-domain-controller.pc
1017 pkgconfig_DATA += plugins/domain-control/murphy-domain-controller.pc
1019 libmurphy_domain_controller_ladir = \
1020 $(includedir)/murphy/domain-control
1022 libmurphy_domain_controller_la_HEADERS = \
1023 plugins/domain-control/client.h
1025 libmurphy_domain_controller_la_SOURCES = plugins/domain-control/client.c \
1026 plugins/domain-control/table-common.c\
1027 plugins/domain-control/message.c
1028 libmurphy_domain_controller_la_CFLAGS =
1029 libmurphy_domain_controller_la_LIBADD = libmurphy-common.la \
1030 murphy-db/mql/libmql.la \
1031 murphy-db/mqi/libmqi.la \
1032 murphy-db/mdb/libmdb.la
1034 # test domain controller (disabled until we have a readline replacement)
1035 bin_PROGRAMS += test-domain-controller
1037 test_domain_controller_SOURCES = plugins/domain-control/test-client.c
1038 test_domain_controller_CFLAGS = $(AM_CFLAGS)
1039 test_domain_controller_LDADD = libmurphy-domain-controller.la \
1040 libbreedline-murphy.la \
1047 LUA_PLUGIN_SOURCES = plugins/plugin-lua.c
1048 LUA_PLUGIN_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
1052 if BUILTIN_PLUGIN_LUA
1053 BUILTIN_PLUGINS += $(LUA_PLUGIN_SOURCES)
1054 BUILTIN_CFLAGS += $(LUA_PLUGIN_CFLAGS)
1055 BUILTIN_LIBS += $(LUA_PLUGIN_LIBS)
1057 plugin_lua_la_SOURCES = plugins/plugin-lua.c
1058 plugin_lua_la_CFLAGS = $(LUA_PLUGIN_CFLAGS) \
1059 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1060 plugin_lua_la_LDFLAGS = -module -avoid-version
1061 plugin_lua_la_LIBADD = $(LUA_PLUGIN_LIBS) $(LUA_LIBS)
1063 plugin_LTLIBRARIES += plugin-lua.la
1067 ###################################
1071 RESOURCE_LIBRARY = libmurphy-resource.la
1076 bin_PROGRAMS += murphyd
1077 EXTRA_DIST += $(config_DATA)
1078 configdir = $(sysconfdir)/murphy
1079 config_DATA = daemon/murphy.conf
1084 $(BUILTIN_PLUGINS) \
1085 load-linkedin-plugins.c
1093 $(LINKEDIN_PLUGINS) \
1094 $(RESOURCE_LIBRARY) \
1095 libmurphy-resolver.la \
1096 libmurphy-lua-decision.la \
1098 libmurphy-lua-utils.la \
1101 murphyd_LDFLAGS = -rdynamic
1105 ###################################
1106 # linkedin (DSO) loader generation
1109 linkedin-%-loader.c:
1110 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1111 -p $(shell echo $@ | \
1112 sed 's/linkedin-//g;s/-loader.c//g') -o $@
1114 linkedin-%-loader.h:
1115 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1116 -p $(shell echo $@ | \
1117 sed 's/linkedin-//g;s/-loader.h//g') -o $@
1119 load-linkedin-plugins.c:
1120 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1121 -o $@ -d $(shell echo $(LINKEDIN_PLUGINS) | \
1122 sed 's/.*plugin-//g;s/\.[^\.]*$$//g')
1125 -rm -f linkedin-*-loader.[hc] load-linkedin-plugins.c
1127 ###################################
1128 # murphy console client
1132 bin_PROGRAMS += murphy-console
1134 murphy_console_SOURCES = \
1135 console-client/client.c
1137 murphy_console_CFLAGS = \
1140 murphy_console_LDADD = \
1141 libbreedline-murphy.la \
1146 murphy_console_LDADD += libmurphy-dbus.la
1149 murphy_console_LDFLAGS = -rdynamic
1153 clean-local:: # clean-linker-script clean-func-infos