1 SUBDIRS = murphy-db . \
2 common/tests breedline/tests core/tests \
3 core/lua-decision/tests resolver/tests \
4 daemon/tests plugins/tests
8 AM_CFLAGS = $(WARNING_CFLAGS) -I$(top_builddir) -DLIBDIR=\"@LIBDIR@\"
10 pkgconfigdir = ${libdir}/pkgconfig
17 QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
19 LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
20 YACCCOMPILE = $(YACC) $(YFLAGS) $(AM_YFLAGS)
22 INCLUDES = -I$(top_builddir)/src/murphy-db/include -I$(top_builddir)
25 ###################################
26 # murphy common library
29 lib_LTLIBRARIES += libmurphy-common.la
30 EXTRA_DIST += common/murphy-common.pc
31 pkgconfig_DATA += common/murphy-common.pc
34 libmurphy_commonh_ladir = \
37 libmurphy_commonh_la_HEADERS = \
41 libmurphy_common_ladir = \
42 $(includedir)/murphy/common
44 libmurphy_common_la_HEADERS = \
59 libmurphy_common_la_REGULAR_SOURCES = \
69 common/stream-transport.c \
70 common/internal-transport.c \
71 common/dgram-transport.c
73 libmurphy_common_la_SOURCES = \
74 $(libmurphy_common_la_REGULAR_SOURCES) \
77 libmurphy_common_la_CFLAGS = \
80 libmurphy_common_la_LDFLAGS = \
81 -Wl,-version-script=linker-script.common \
82 -version-info @MURPHY_VERSION_INFO@
84 libmurphy_common_la_LIBADD = \
87 libmurphy_common_la_DEPENDENCIES = linker-script.common
89 libcommonincludedir = $(includedir)/murphy/common
90 libcommoninclude_HEADERS = $(libmurphy_common_la_HEADERS)
93 libmurphy_common_la_HEADERS += \
98 libmurphy_common_la_REGULAR_SOURCES += \
100 common/websocklib.c \
102 common/wsck-transport.c
104 libmurphy_common_la_CFLAGS += \
107 libmurphy_common_la_LIBADD += \
112 # linker script generation
113 linker-script.common: $(libmurphy_common_la_HEADERS)
114 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
116 clean-linker-script::
117 -rm -f linker-script.common
119 generate-linker-scripts: linker-script.common
121 # debug file:line-function mapping generation
122 common-func-info.c: $(libmurphy_common_la_REGULAR_SOURCES)
123 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
126 -rm common-func-info.c
128 ###################################
129 # murphy lua utilities
132 lib_LTLIBRARIES += libmurphy-lua-utils.la
133 EXTRA_DIST += core/lua-utils/murphy-lua-utils.pc
134 pkgconfig_DATA += core/lua-utils/murphy-lua-utils.pc
136 libmurphy_lua_utils_ladir = \
137 $(includedir)/murphy/core/lua-utils
139 libmurphy_lua_utils_la_HEADERS = \
140 core/lua-utils/strarray.h \
141 core/lua-utils/funcbridge.h \
142 core/lua-utils/object.h
144 libmurphy_lua_utils_la_REGULAR_SOURCES = \
145 core/lua-utils/strarray.c \
146 core/lua-utils/funcbridge.c \
147 core/lua-utils/object.c
149 libmurphy_lua_utils_la_SOURCES = \
150 $(libmurphy_lua_utils_la_REGULAR_SOURCES) \
151 lua-utils-func-info.c
153 libmurphy_lua_utils_la_CFLAGS = \
157 libmurphy_lua_utils_la_LDFLAGS = \
158 -Wl,-version-script=linker-script.lua-utils \
159 -version-info @MURPHY_VERSION_INFO@
161 libmurphy_lua_utils_la_LIBADD = \
164 libmurphy_lua_utils_la_DEPENDENCIES = linker-script.lua-utils
166 # debug file:line-function mapping generation
167 lua-utils-func-info.c: $(libmurphy_lua_utils_la_REGULAR_SOURCES)
168 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
171 -rm lua-utils-func-info.c
173 # lua-utils linker script generation
174 linker-script.lua-utils: $(libmurphy_lua_utils_la_HEADERS)
175 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
177 clean-linker-script::
178 -rm -f linker-script.lua-utils
180 generate-linker-scripts: linker-script.lua-utils
182 ###################################
183 # murphy lua decision network
186 lib_LTLIBRARIES += libmurphy-lua-decision.la
187 EXTRA_DIST += core/lua-decision/murphy-lua-decision.pc
188 pkgconfig_DATA += core/lua-decision/murphy-lua-decision.pc
190 libmurphy_lua_decision_ladir = \
191 $(includedir)/murphy/core/lua-decision
193 libmurphy_lua_decision_la_HEADERS = \
194 core/lua-decision/mdb.h \
195 core/lua-decision/element.h
197 libmurphy_lua_decision_la_REGULAR_SOURCES = \
198 core/lua-decision/mdb.c \
199 core/lua-decision/element.c
201 libmurphy_lua_decision_la_SOURCES = \
202 $(libmurphy_lua_decision_la_REGULAR_SOURCES) \
203 lua-decision-func-info.c
205 libmurphy_lua_decision_la_CFLAGS = \
209 libmurphy_lua_decision_la_LDFLAGS = \
210 -Wl,-version-script=linker-script.lua-decision \
211 -version-info @MURPHY_VERSION_INFO@
213 libmurphy_lua_decision_la_LIBADD = \
216 libmurphy_lua_decision_la_DEPENDENCIES = linker-script.lua-decision
218 # debug file:line-function mapping generation
219 lua-decision-func-info.c: $(libmurphy_lua_decision_la_REGULAR_SOURCES)
220 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
223 -rm lua-decision-func-info.c
225 # lua-decision linker script generation
226 linker-script.lua-decision: $(libmurphy_lua_decision_la_HEADERS)
227 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
229 clean-linker-script::
230 -rm -f linker-script.lua-decision
232 generate-linker-scripts: linker-script.lua-decision
234 ###################################
235 # murphy core library
238 lib_LTLIBRARIES += libmurphy-core.la
239 EXTRA_DIST += core/murphy-core.pc
240 pkgconfig_DATA += core/murphy-core.pc
242 LUA_BINDINGS_SOURCES = \
243 core/lua-bindings/lua-murphy.c \
244 core/lua-bindings/lua-lua.c \
245 core/lua-bindings/lua-plugin.c \
246 core/lua-bindings/lua-log.c \
247 core/lua-bindings/lua-console.c
249 libmurphy_core_lua_bindings_ladir = \
250 $(includedir)/murphy/core/lua-bindings
252 libmurphy_core_lua_bindings_la_HEADERS = \
253 core/lua-bindings/murphy.h
255 libmurphy_coreh_ladir = \
258 libmurphy_coreh_la_HEADERS = \
261 libmurphy_core_ladir = \
262 $(includedir)/murphy/core
264 libmurphy_core_la_HEADERS = \
267 core/console-command.h \
273 libmurphy_core_la_REGULAR_SOURCES = \
280 $(LUA_BINDINGS_SOURCES)
282 libmurphy_core_la_SOURCES = \
283 $(libmurphy_core_la_REGULAR_SOURCES) \
286 libmurphy_core_la_CFLAGS = \
290 libmurphy_core_la_LDFLAGS = \
291 -Wl,-version-script=linker-script.core \
292 -version-info @MURPHY_VERSION_INFO@
294 libmurphy_core_la_LIBADD = \
295 libmurphy-common.la \
296 libmurphy-lua-decision.la \
297 libmurphy-lua-utils.la \
301 libmurphy_core_la_DEPENDENCIES = linker-script.core \
302 $(filter %.la, $(libmurphy_core_la_LIBADD))
304 # core linker script generation
305 linker-script.core: $(libmurphy_core_la_HEADERS) \
306 $(libmurphy_core_lua_bindings_la_HEADERS)
307 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
309 clean-linker-script::
310 -rm -f linker-script.core
312 generate-linker-scripts: linker-script.core
314 # debug file:line-function mapping generation
315 core-func-info.c: $(libmurphy_core_la_REGULAR_SOURCES)
316 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
321 ###################################
322 # murphy dbus library
325 murphy_dbus_headers = \
327 common/dbus-transport.h
330 lib_LTLIBRARIES += libmurphy-dbus.la
331 EXTRA_DIST += common/murphy-dbus.pc
332 pkgconfig_DATA += common/murphy-dbus.pc
334 libmurphy_dbus_ladir = \
335 $(includedir)/murphy/common
337 libmurphy_dbus_la_HEADERS = $(murphy_dbus_headers)
340 libmurphy_dbus_la_REGULAR_SOURCES = \
343 common/dbus-transport.c
345 libmurphy_dbus_la_SOURCES = \
346 $(libmurphy_dbus_la_REGULAR_SOURCES) \
349 libmurphy_dbus_la_CFLAGS = \
353 libmurphy_dbus_la_LDFLAGS = \
354 -Wl,-version-script=linker-script.dbus \
355 -version-info @MURPHY_VERSION_INFO@
357 libmurphy_dbus_la_LIBADD = \
360 libmurphy_dbus_la_DEPENDENCIES = linker-script.dbus
362 libdbusincludedir = $(includedir)/murphy/dbus
363 libdbusinclude_HEADERS = $(libmurphy_dbus_la_HEADERS)
365 # debug file:line-function mapping generation
366 dbus-func-info.c: $(libmurphy_dbus_la_REGULAR_SOURCES)
367 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
373 # linker script generation
374 linker-script.dbus: $(murphy_dbus_headers)
375 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
377 clean-linker-script::
378 -rm -f linker-script.dbus
380 generate-linker-scripts: linker-script.dbus
383 ###################################
384 # murphy pulse glue library
387 murphy_pulse_headers = \
391 lib_LTLIBRARIES += libmurphy-pulse.la
392 EXTRA_DIST += common/murphy-pulse.pc
393 pkgconfig_DATA += common/murphy-pulse.pc
395 libmurphy_pulse_ladir = \
396 $(includedir)/murphy/common
398 libmurphy_pulse_la_HEADERS = $(murphy_pulse_headers)
400 libmurphy_pulse_la_SOURCES = \
403 libmurphy_pulse_la_CFLAGS = \
407 libmurphy_pulse_la_LDFLAGS = \
408 -Wl,-version-script=linker-script.pulse \
409 -version-info @MURPHY_VERSION_INFO@
411 libmurphy_pulse_la_LIBADD =
413 libmurphy_pulse_la_DEPENDENCIES = linker-script.pulse
415 libpulseincludedir = $(includedir)/murphy/pulse
416 libpulseinclude_HEADERS = $(libmurphy_pulse_la_HEADERS)
419 # linker script generation
420 linker-script.pulse: $(murphy_pulse_headers)
421 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
423 clean-linker-script::
424 -rm -f linker-script.pulse
426 generate-linker-scripts: linker-script.pulse
428 ###################################
429 # murphy ecore glue library
432 murphy_ecore_headers = \
436 lib_LTLIBRARIES += libmurphy-ecore.la
437 EXTRA_DIST += common/murphy-ecore.pc
438 pkgconfig_DATA += common/murphy-ecore.pc
440 libmurphy_ecore_ladir = \
441 $(includedir)/murphy/common
443 libmurphy_ecore_la_HEADERS = $(murphy_ecore_headers)
445 libmurphy_ecore_la_SOURCES = \
448 libmurphy_ecore_la_CFLAGS = \
452 libmurphy_ecore_la_LDFLAGS = \
453 -Wl,-version-script=linker-script.ecore \
454 -version-info @MURPHY_VERSION_INFO@
456 libmurphy_ecore_la_LIBADD =
458 libmurphy_ecore_la_DEPENDENCIES = linker-script.ecore
460 libecoreincludedir = $(includedir)/murphy/ecore
461 libecoreinclude_HEADERS = $(libmurphy_ecore_la_HEADERS)
464 # linker script generation
465 linker-script.ecore: $(murphy_ecore_headers)
466 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
468 clean-linker-script::
469 -rm -f linker-script.ecore
471 generate-linker-scripts: linker-script.ecore
473 ###################################
474 # murphy glib glue library
477 murphy_glib_headers = \
481 lib_LTLIBRARIES += libmurphy-glib.la
482 EXTRA_DIST += common/murphy-glib.pc
483 pkgconfig_DATA += common/murphy-glib.pc
485 libmurphy_glib_ladir = \
486 $(includedir)/murphy/common
488 libmurphy_glib_la_HEADERS = $(murphy_glib_headers)
490 libmurphy_glib_la_SOURCES = \
493 libmurphy_glib_la_CFLAGS = \
497 libmurphy_glib_la_LDFLAGS = \
498 -Wl,-version-script=linker-script.glib \
499 -version-info @MURPHY_VERSION_INFO@
501 libmurphy_glib_la_LIBADD =
503 libmurphy_glib_la_DEPENDENCIES = linker-script.glib
505 libglibincludedir = $(includedir)/murphy/glib
506 libglibinclude_HEADERS = $(libmurphy_glib_la_HEADERS)
509 # linker script generation
510 linker-script.glib: $(murphy_glib_headers)
511 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
513 clean-linker-script::
514 -rm -f linker-script.glib
516 generate-linker-scripts: linker-script.glib
518 ###################################
519 # murphy qt glue library
522 murphy_qt_headers = \
526 lib_LTLIBRARIES += libmurphy-qt.la
527 EXTRA_DIST += common/murphy-qt.pc
528 pkgconfig_DATA += common/murphy-qt.pc
530 BUILT_SOURCES += common/qt-glue-priv.moc.h
532 libmurphy_qt_ladir = \
533 $(includedir)/murphy/common
535 libmurphy_qt_la_HEADERS = $(murphy_qt_headers)
537 libmurphy_qt_la_SOURCES = \
540 libmurphy_qt_la_CPPFLAGS = \
544 libmurphy_qt_la_LDFLAGS = \
545 -Wl,-version-script=linker-script.qt \
546 -version-info @MURPHY_VERSION_INFO@
548 libmurphy_qt_la_LIBADD = $(QTCORE_LIBS)
550 libmurphy_qt_la_DEPENDENCIES = linker-script.qt
552 libqtincludedir = $(includedir)/murphy/qt
553 libqtinclude_HEADERS = $(libmurphy_qt_la_HEADERS)
555 # run moc to generate Qt meta objects
556 common/qt-glue-priv.moc.h: common/qt-glue-priv.h
557 $(QUIET_GEN)$(QT_MOC) -DQT_ENABLED=1 $< -o$@
560 # linker script generation
561 linker-script.qt: $(murphy_qt_headers)
562 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
564 clean-linker-script::
565 -rm -f linker-script.qt
567 generate-linker-scripts: linker-script.qt
569 ###################################
570 # murphy resolver library
573 lib_LTLIBRARIES += libmurphy-resolver.la
574 EXTRA_DIST += resolver/murphy-resolver.pc
575 pkgconfig_DATA += resolver/murphy-resolver.pc
577 BUILT_SOURCES += resolver/scanner.c resolver/parser.c
579 libmurphy_resolver_ladir = \
580 $(includedir)/murphy/resolver
582 libmurphy_resolver_la_HEADERS = \
585 SIMPLE_SCRIPT_SOURCES = \
586 resolver/scripting/simple/simple-script.c \
587 resolver/scripting/simple/simple-scanner.c \
588 resolver/scripting/simple/simple-parser.c \
589 resolver/scripting/simple/call.c \
590 resolver/scripting/simple/builtins.c
592 libmurphy_resolver_la_REGULAR_SOURCES = \
593 resolver/resolver.c \
597 resolver/target-sorter.c \
600 $(SIMPLE_SCRIPT_SOURCES)
602 libmurphy_resolver_la_SOURCES = \
603 $(libmurphy_resolver_la_REGULAR_SOURCES) \
606 libmurphy_resolver_la_CFLAGS = \
610 libmurphy_resolver_la_LDFLAGS = \
611 -Wl,-version-script=linker-script.resolver \
612 -version-info @MURPHY_VERSION_INFO@
614 libmurphy_resolver_la_LIBADD = \
616 libmurphy-common.la \
617 murphy-db/mql/libmql.la \
618 murphy-db/mqi/libmqi.la \
619 murphy-db/mdb/libmdb.la
621 libmurphy_resolver_la_DEPENDENCIES = linker-script.resolver \
622 $(filter %.la, $(libmurphy_resolver_la_LIBADD))
624 # resolver lexical analyser and parser generation
625 RESOLVER_PARSER_PREFIX = yy_res_
627 resolver/scanner.c: resolver/scanner.l resolver/parser.c
628 $(LEXCOMPILE) -P $(RESOLVER_PARSER_PREFIX) $<
629 mv lex.$(RESOLVER_PARSER_PREFIX).c $@
631 resolver/parser.h resolver/parser.c: resolver/parser.y
632 $(YACCCOMPILE) -p $(RESOLVER_PARSER_PREFIX) $< -o resolver/parser.c
634 # debug file:line-function mapping generation
635 resolver-func-info.c: $(libmurphy_resolver_la_REGULAR_SOURCES)
636 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
639 -rm resolver-func-info.c
641 # resolver linker script generation
642 linker-script.resolver: $(libmurphy_resolver_la_HEADERS)
643 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
645 clean-linker-script::
646 -rm -f linker-script.resolver
649 generate-linker-scripts: linker-script.resolver
650 # simple interpreter lexical analyser and parser generation
651 SIMPLE_PARSER_PREFIX = yy_smpl_
652 BUILT_SOURCES += resolver/scripting/simple/simple-scanner.c \
653 resolver/scripting/simple/simple-parser.c
655 resolver/scripting/simple/simple-scanner.c: \
656 resolver/scripting/simple/simple-scanner.l \
657 resolver/scripting/simple/simple-parser.c
658 $(LEXCOMPILE) -P $(SIMPLE_PARSER_PREFIX) $<
659 mv lex.$(SIMPLE_PARSER_PREFIX).c $@
661 # simple interpreter parser generation
662 resolver/scripting/simple/simple-parser.h \
663 resolver/scripting/simple/simple-parser.c: \
664 resolver/scripting/simple/simple-parser.y
665 $(YACCCOMPILE) -p $(SIMPLE_PARSER_PREFIX) $< -o \
666 resolver/scripting/simple/simple-parser.c
668 ###################################
669 # murphy backend resource library
673 RESOURCE_LIBRARY = libmurphy-resource-backend.la
679 lib_LTLIBRARIES += $(RESOURCE_LIBRARY)
681 libmurphy_resource_backend_ladir = \
682 $(includedir)/murphy/resource
684 libmurphy_resource_backend_la_HEADERS = \
685 resource/data-types.h \
686 resource/common-api.h \
687 resource/client-api.h \
688 resource/manager-api.h \
689 resource/config-api.h \
690 resource/protocol.h \
691 resource/config-lua.h
693 libmurphy_resource_backend_la_REGULAR_SOURCES = \
694 resource/attribute.c \
695 resource/resource.c \
696 resource/resource-set.c \
697 resource/application-class.c \
698 resource/resource-owner.c \
699 resource/resource-client.c \
701 resource/config-lua.c
703 libmurphy_resource_backend_la_SOURCES = \
704 $(libmurphy_resource_backend_la_REGULAR_SOURCES) \
707 libmurphy_resource_backend_la_CFLAGS = \
712 libmurphy_resource_backend_la_LDFLAGS = \
713 -Wl,-version-script=linker-script.resource_backend \
714 -version-info @MURPHY_VERSION_INFO@
716 libmurphy_resource_backend_la_LIBADD = \
718 libmurphy-common.la \
719 murphy-db/mql/libmql.la \
720 murphy-db/mqi/libmqi.la \
721 murphy-db/mdb/libmdb.la \
724 libmurphy_resource_backend_la_DEPENDENCIES = linker-script.resource_backend \
725 $(filter %.la, $(libmurphy_resource_backend_la_LIBADD))
727 # debug file:line-function mapping generation
728 resource-func-info.c: $(libmurphy_resource_backend_la_REGULAR_SOURCES)
729 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
732 -rm resource-func-info.c
735 # resource linker script generation
736 linker-script.resource_backend: $(libmurphy_resource_backend_la_HEADERS)
737 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
739 clean-linker-script::
740 -rm -f linker-script.resource_backend
742 generate-linker-scripts: linker-script.resource_backend
744 ##########################
745 # readline replacement
747 lib_LTLIBRARIES += libbreedline.la
748 EXTRA_DIST += breedline/breedline.pc
749 pkgconfig_DATA += breedline/breedline.pc
751 libbreedline_ladir = \
752 $(includedir)/breedline
754 libbreedline_la_HEADERS = \
755 breedline/breedline.h \
758 libbreedline_la_SOURCES = \
759 breedline/breedline.c
761 libbreedline_la_CFLAGS = \
764 libbreedline_la_LDFLAGS = \
765 -Wl,-version-script=linker-script.breedline \
766 -version-info @MURPHY_VERSION_INFO@
768 libbreedline_la_LIBADD =
770 libbreedline_la_DEPENDENCIES = linker-script.breedline
772 libbreedlineincludedir = $(includedir)/breedline
773 libbreedlineinclude_HEADERS = $(libbreedline_la_HEADERS)
775 # linker script generation
776 linker-script.breedline: $(libbreedline_la_HEADERS)
777 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
780 clean-linker-script::
781 -rm -f linker-script.breedline
783 generate-linker-scripts: linker-script.breedline
785 ##########################
786 # breedline murphy glue library
788 lib_LTLIBRARIES += libbreedline-murphy.la
789 EXTRA_DIST += breedline/breedline-murphy.pc
790 pkgconfig_DATA += breedline/breedline-murphy.pc
792 libbreedline_murphy_ladir = $(includedir)/breedline
794 libbreedline_murphy_la_HEADERS = breedline/breedline-murphy.h
795 libbreedline_murphy_la_SOURCES = breedline/breedline-murphy.c
796 libbreedline_murphy_la_CFLAGS = $(AM_CFLAGS)
798 libbreedline_murphy_la_LDFLAGS = \
799 -Wl,-version-script=linker-script.breedline-murphy \
800 -version-info @MURPHY_VERSION_INFO@
802 libbreedline_murphy_la_LIBADD = libmurphy-common.la
804 libbreedline_murphy_la_DEPENDENCIES = linker-script.breedline-murphy \
805 $(filter %.la,$(libbreedline_murphy_la_LIBADD))
807 libbreedline_murphyincludedir = $(includedir)/breedline
808 libbreedline_murphyinclude_HEADERS = $(libbreedline_murphy_la_HEADERS)
810 # linker script generation
811 linker-script.breedline-murphy: $(libbreedline_murphy_la_HEADERS)
812 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
815 clean-linker-script::
816 -rm -f linker-script.breedline-murphy
818 generate-linker-scripts: linker-script.breedline-murphy
820 ##########################
821 # breedline glib glue library
824 breedline_glib_headers = \
825 breedline/breedline-glib.h
828 lib_LTLIBRARIES += libbreedline-glib.la
829 EXTRA_DIST += breedline/breedline-glib.pc
830 pkgconfig_DATA += breedline/breedline-glib.pc
832 libbreedline_glib_ladir = $(includedir)/breedline
834 libbreedline_glib_la_HEADERS = $(breedline_glib_headers)
835 libbreedline_glib_la_SOURCES = breedline/breedline-glib.c
836 libbreedline_glib_la_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
838 libbreedline_glib_la_LDFLAGS = \
839 -Wl,-version-script=linker-script.breedline-glib \
840 -version-info @MURPHY_VERSION_INFO@
842 libbreedline_glib_la_LIBADD = $(GLIB_LIBS)
844 libbreedline_glib_la_DEPENDENCIES = linker-script.breedline-glib
846 libbreedline_glibincludedir = $(includedir)/breedline
847 libbreedline_glibinclude_HEADERS = $(libbreedline_glib_la_HEADERS)
850 # linker script generation
851 linker-script.breedline-glib: $(breedline_glib_headers)
852 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
855 clean-linker-script::
856 -rm -f linker-script.breedline-glib
858 generate-linker-scripts: linker-script.breedline-glib
860 ###################################
861 # murphy resource external library
863 # TODO: put this under conditional compilation
865 lib_LTLIBRARIES += libmurphy-resource.la
866 # EXTRA_DIST += resource/murphy-resource.pc
867 # pkgconfig_DATA += resource/murphy-resource.pc
869 libmurphy_resource_ladir = \
870 $(includedir)/murphy/plugins/resource-native/libmurphy-resource
872 libmurphy_resource_la_HEADERS = \
873 plugins/resource-native/libmurphy-resource/resource-api.h \
874 plugins/resource-native/libmurphy-resource/resource-private.h
876 libmurphy_resource_la_SOURCES = \
877 plugins/resource-native/libmurphy-resource/resource.c \
878 plugins/resource-native/libmurphy-resource/attribute.c \
879 plugins/resource-native/libmurphy-resource/rset.c \
880 plugins/resource-native/libmurphy-resource/string_array.c \
881 plugins/resource-native/libmurphy-resource/message.c
883 libmurphy_resource_la_CFLAGS = \
887 libmurphy_resource_la_LDFLAGS = \
888 -Wl,-version-script=linker-script.resource \
889 -version-info @MURPHY_VERSION_INFO@
891 libmurphy_resource_la_LIBADD = \
895 libmurphy_resource_la_DEPENDENCIES = libmurphy-core.la \
896 libmurphy-common.la \
897 linker-script.resource
899 # linker script generation
900 linker-script.resource: $(libmurphy_resource_la_HEADERS)
901 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
903 clean-linker-script::
904 -rm -f linker-script.resource
906 generate-linker-scripts: linker-script.resource
910 bin_PROGRAMS += resource-api-test
912 resource_api_test_SOURCES = plugins/resource-native/libmurphy-resource/api_test.c
913 resource_api_test_CFLAGS = $(AM_CFLAGS) $(BUILTIN_CFLAGS)
914 resource_api_test_LDADD = $(BUILTIN_LIBS) libmurphy-common.la libmurphy-resource.la \
915 murphy-db/mql/libmql.la \
916 murphy-db/mqi/libmqi.la \
917 murphy-db/mdb/libmdb.la \
918 libmurphy-resolver.la
920 ###################################
925 BUILTIN_CFLAGS = -D__MURPHY_BUILTIN_PLUGIN__ $(AM_CFLAGS)
931 plugindir = $(libdir)/murphy/plugins
935 TEST_PLUGIN_SOURCES = plugins/plugin-test.c
939 if !DISABLED_PLUGIN_TEST
940 if BUILTIN_PLUGIN_TEST
941 BUILTIN_PLUGINS += $(TEST_PLUGIN_SOURCES)
942 BUILTIN_CFLAGS += $(TEST_PLUGIN_CFLAGS)
943 BUILTIN_LIBS += $(TEST_PLUGIN_LIBS)
945 plugin_test_la_SOURCES = $(TEST_PLUGIN_SOURCES)
946 plugin_test_la_CFLAGS = $(TEST_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
947 plugin_test_la_LDFLAGS = -module -avoid-version
948 plugin_test_la_LIBADD = $(TEST_PLUGIN_LIBS)
950 plugin_LTLIBRARIES += plugin-test.la
956 DBUS_PLUGIN_SOURCES = plugins/plugin-dbus.c
957 DBUS_PLUGIN_CFLAGS = $(DBUS_CFLAGS)
958 DBUS_PLUGIN_LIBS = libmurphy-dbus.la
960 if !DISABLED_PLUGIN_DBUS
961 if BUILTIN_PLUGIN_DBUS
962 BUILTIN_PLUGINS += $(DBUS_PLUGIN_SOURCES)
963 BUILTIN_CFLAGS += $(DBUS_PLUGIN_CFLAGS)
964 BUILTIN_LIBS += $(DBUS_PLUGIN_LIBS)
966 plugin_dbus_la_SOURCES = $(DBUS_PLUGIN_SOURCES)
967 plugin_dbus_la_CFLAGS = $(DBUS_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
968 plugin_dbus_la_LDFLAGS = -module -avoid-version
969 plugin_dbus_la_LIBADD = $(DBUS_PLUGIN_LIBS)
971 plugin_LTLIBRARIES += plugin-dbus.la
978 GLIB_PLUGIN_SOURCES = plugins/plugin-glib.c
979 GLIB_PLUGIN_CFLAGS = $(GLIB_CFLAGS)
980 GLIB_PLUGIN_LIBS = $(GLIB_LIBS)
982 if !DISABLED_PLUGIN_GLIB
983 if BUILTIN_PLUGIN_GLIB
984 BUILTIN_PLUGINS += $(GLIB_PLUGIN_SOURCES)
985 BUILTIN_CFLAGS += $(GLIB_PLUGIN_CFLAGS)
986 BUILTIN_LIBS += $(GLIB_PLUGIN_LIBS)
988 plugin_glib_la_SOURCES = $(GLIB_PLUGIN_SOURCES)
989 plugin_glib_la_CFLAGS = $(GLIB_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
990 plugin_glib_la_LDFLAGS = -module -avoid-version
991 plugin_glib_la_LIBADD = $(GLIB_PLUGIN_LIBS)
993 plugin_LTLIBRARIES += plugin-glib.la
998 # resource-dbus plugin
1001 RESOURCE_DBUS_PLUGIN_SOURCES = plugins/plugin-resource-dbus.c
1002 RESOURCE_DBUS_PLUGIN_CFLAGS = $(DBUS_CFLAGS)
1003 RESOURCE_DBUS_PLUGIN_LIBS = libmurphy-dbus.la \
1005 libmurphy-common.la \
1008 if !DISABLED_PLUGIN_RESOURCE_DBUS
1009 if BUILTIN_PLUGIN_RESOURCE_DBUS
1010 BUILTIN_PLUGINS += $(RESOURCE_DBUS_PLUGIN_SOURCES)
1011 BUILTIN_CFLAGS += $(RESOURCE_DBUS_PLUGIN_CFLAGS)
1012 BUILTIN_LIBS += $(RESOURCE_DBUS_PLUGIN_LIBS)
1014 plugin_resource_dbus_la_SOURCES = $(RESOURCE_DBUS_PLUGIN_SOURCES)
1015 plugin_resource_dbus_la_CFLAGS = $(RESOURCE_DBUS_PLUGIN_CFLAGS) $(MURPHY_CFLAGS) $(AM_CFLAGS)
1016 plugin_resource_dbus_la_LDFLAGS = -module -avoid-version
1017 plugin_resource_dbus_la_LIBADD = $(RESOURCE_DBUS_PLUGIN_LIBS)
1018 plugin_LTLIBRARIES += plugin-resource-dbus.la
1025 CONSOLE_PLUGIN_REGULAR_SOURCES = plugins/plugin-console.c
1026 CONSOLE_PLUGIN_SOURCES = $(CONSOLE_PLUGIN_REGULAR_SOURCES) \
1027 plugin-console-func-info.c
1028 CONSOLE_PLUGIN_CFLAGS =
1029 CONSOLE_PLUGIN_LIBS =
1032 if !DISABLED_PLUGIN_CONSOLE
1033 if BUILTIN_PLUGIN_CONSOLE
1034 BUILTIN_PLUGINS += $(CONSOLE_PLUGIN_SOURCES)
1035 BUILTIN_CFLAGS += $(CONSOLE_PLUGIN_CFLAGS)
1036 BUILTIN_LIBS += $(CONSOLE_PLUGIN_LIBS)
1038 plugin_console_la_SOURCES = $(CONSOLE_PLUGIN_SOURCES)
1039 plugin_console_la_CFLAGS = $(CONSOLE_PLUGIN_CFLAGS) \
1040 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1041 plugin_console_la_LDFLAGS = -module -avoid-version
1042 plugin_console_la_LIBADD = $(CONSOLE_PLUGIN_LIBS)
1044 plugin_LTLIBRARIES += plugin-console.la
1047 # debug file:line-function mapping generation
1048 plugin-console-func-info.c: $(CONSOLE_PLUGIN_REGULAR_SOURCES)
1049 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
1052 -rm plugin-console-func-info.c
1055 # native resource plugin
1057 PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES = \
1058 plugins/resource-native/plugin-resource-native.c
1059 PLUGIN_RESOURCE_NATIVE_SOURCES = \
1060 $(PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES) \
1061 plugin-resource-native-func-info.c
1062 PLUGIN_RESOURCE_NATIVE_CFLAGS = \
1065 PLUGIN_RESOURCE_NATIVE_LIBS = \
1067 libmurphy-common.la \
1068 murphy-db/mqi/libmqi.la \
1069 murphy-db/mdb/libmdb.la \
1070 $(RESOURCE_LIBRARY) \
1073 plugin_resource_native_la_SOURCES = $(PLUGIN_RESOURCE_NATIVE_SOURCES)
1074 plugin_resource_native_la_CFLAGS = $(PLUGIN_RESOURCE_NATIVE_CFLAGS) \
1075 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1076 plugin_resource_native_la_LDFLAGS = -module -avoid-version
1077 plugin_resource_native_la_LIBADD = $(PLUGIN_RESOURCE_NATIVE_LIBS)
1079 plugin_LTLIBRARIES += plugin-resource-native.la
1082 bin_PROGRAMS += resource-client
1084 resource_client_SOURCES = plugins/resource-native/resource-client.c
1085 resource_client_CFLAGS = $(AM_CFLAGS)
1086 resource_client_LDADD = libmurphy-common.la
1088 # debug file:line-function mapping generation
1089 plugin-resource-native-func-info.c: $(PLUGIN_RESOURCE_NATIVE_REGULAR_SOURCES)
1090 $(QUIET_GEN)$(top_builddir)/build-aux/gen-debug-table -o $@ $^
1093 -rm plugin-resource-native-func-info.c
1096 # domain control plugin
1097 DOMAIN_CONTROL_PLUGIN_SOURCES = plugins/domain-control/plugin-domain-control.c \
1098 plugins/domain-control/domain-control.c \
1099 plugins/domain-control/proxy.c \
1100 plugins/domain-control/table.c \
1101 plugins/domain-control/message.c \
1102 plugins/domain-control/notify.c
1103 DOMAIN_CONTROL_PLUGIN_LOADER = linkedin-domain-control-loader.c
1106 DOMAIN_CONTROL_PLUGIN_CFLAGS =
1107 DOMAIN_CONTROL_PLUGIN_LIBS =
1109 if !DISABLED_PLUGIN_DOMAIN_CONTROL
1110 if BUILTIN_PLUGIN_DOMAIN_CONTROL
1111 LINKEDIN_PLUGINS += libmurphy-plugin-domain-control.la
1112 lib_LTLIBRARIES += libmurphy-plugin-domain-control.la
1113 DOMAIN_CONTROL_PLUGIN_CFLAGS += $(BUILTIN_CFLAGS)
1116 libmurphy_plugin_domain_control_ladir = \
1117 $(includedir)/murphy/domain-control
1119 libmurphy_plugin_domain_control_la_SOURCES = \
1120 $(DOMAIN_CONTROL_PLUGIN_SOURCES) \
1121 $(DOMAIN_CONTROL_PLUGIN_LOADER)
1123 libmurphy_plugin_domain_control_la_CFLAGS = \
1124 $(DOMAIN_CONTROL_PLUGIN_CFLAGS) \
1127 libmurphy_plugin_domain_control_la_LDFLAGS = \
1128 -Wl,-version-script=linker-script.domain-control \
1129 -version-info @MURPHY_VERSION_INFO@
1131 libmurphy_plugin_domain_control_la_LIBADD = \
1133 libmurphy-common.la \
1134 murphy-db/mql/libmql.la \
1135 murphy-db/mqi/libmqi.la \
1136 murphy-db/mdb/libmdb.la
1138 libmurphy_plugin_domain_control_la_DEPENDENCIES = \
1139 linker-script.domain-control \
1140 $(filter %.la, $(libmurphy_plugin_domain_control_la_LIBADD))
1142 plugin_domain_control_la_SOURCES = $(DOMAIN_CONTROL_PLUGIN_SOURCES)
1143 plugin_domain_control_la_CFLAGS = $(DOMAIN_CONTROL_PLUGIN_CFLAGS) \
1144 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1145 plugin_domain_control_la_LDFLAGS = -module -avoid-version
1146 plugin_domain_control_la_LIBADD = $(DOMAIN_CONTROL_PLUGIN_LIBS)
1147 plugin_LTLIBRARIES += plugin-domain-control.la
1151 # domain controller client library
1152 lib_LTLIBRARIES += libmurphy-domain-controller.la
1153 EXTRA_DIST += plugins/domain-control/murphy-domain-controller.pc
1154 pkgconfig_DATA += plugins/domain-control/murphy-domain-controller.pc
1156 libmurphy_domain_controller_ladir = \
1157 $(includedir)/murphy/domain-control
1159 libmurphy_domain_controller_la_HEADERS = \
1160 plugins/domain-control/client.h
1162 libmurphy_domain_controller_la_SOURCES = plugins/domain-control/client.c \
1163 plugins/domain-control/table-common.c\
1164 plugins/domain-control/message.c
1165 libmurphy_domain_controller_la_CFLAGS =
1166 libmurphy_domain_controller_la_LIBADD = libmurphy-common.la \
1167 murphy-db/mql/libmql.la \
1168 murphy-db/mqi/libmqi.la \
1169 murphy-db/mdb/libmdb.la
1171 # test domain controller (disabled until we have a readline replacement)
1172 bin_PROGRAMS += test-domain-controller
1174 test_domain_controller_SOURCES = plugins/domain-control/test-client.c
1175 test_domain_controller_CFLAGS = $(AM_CFLAGS)
1176 test_domain_controller_LDADD = libmurphy-domain-controller.la \
1177 libbreedline-murphy.la \
1182 # linkedin domain control plugin linker script generation
1183 linker-script.domain-control: $(DOMAIN_CONTROL_PLUGIN_LOADER:%.c=%.h)
1184 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q -o $@ $^
1186 clean-linker-script::
1187 -rm -f linker-script.domain-control
1189 generate-linker-scripts: linker-script.domain-control
1193 LUA_PLUGIN_SOURCES = plugins/plugin-lua.c
1194 LUA_PLUGIN_CFLAGS = $(AM_CFLAGS) $(LUA_CFLAGS)
1198 if BUILTIN_PLUGIN_LUA
1199 BUILTIN_PLUGINS += $(LUA_PLUGIN_SOURCES)
1200 BUILTIN_CFLAGS += $(LUA_PLUGIN_CFLAGS)
1201 BUILTIN_LIBS += $(LUA_PLUGIN_LIBS)
1203 plugin_lua_la_SOURCES = plugins/plugin-lua.c
1204 plugin_lua_la_CFLAGS = $(LUA_PLUGIN_CFLAGS) \
1205 $(MURPHY_CFLAGS) $(AM_CFLAGS)
1206 plugin_lua_la_LDFLAGS = -module -avoid-version
1207 plugin_lua_la_LIBADD = $(LUA_PLUGIN_LIBS) $(LUA_LIBS)
1209 plugin_LTLIBRARIES += plugin-lua.la
1213 ###################################
1217 bin_PROGRAMS += murphyd
1218 EXTRA_DIST += $(config_DATA)
1219 configdir = $(sysconfdir)/murphy
1220 config_DATA = daemon/murphy.conf
1225 $(BUILTIN_PLUGINS) \
1226 load-linkedin-plugins.c
1234 $(LINKEDIN_PLUGINS) \
1235 $(RESOURCE_LIBRARY) \
1236 libmurphy-resolver.la \
1237 libmurphy-lua-decision.la \
1239 libmurphy-lua-utils.la \
1242 murphyd_LDFLAGS = -rdynamic
1246 ###################################
1247 # linkedin (DSO) loader generation
1250 linkedin-%-loader.c:
1251 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1252 -p $(shell echo $@ | \
1253 sed 's/linkedin-//g;s/-loader.c//g') -o $@
1255 linkedin-%-loader.h:
1256 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1257 -p $(shell echo $@ | \
1258 sed 's/linkedin-//g;s/-loader.h//g') -o $@
1260 load-linkedin-plugins.c:
1261 $(QUIET_GEN)$(top_builddir)/build-aux/gen-linkedin-loader \
1262 -o $@ -d $(shell echo $(LINKEDIN_PLUGINS) | \
1263 sed 's/.*plugin-//g;s/\.[^\.]*$$//g')
1266 -rm -f linkedin-*-loader.[hc] load-linkedin-plugins.c
1268 ###################################
1269 # murphy console client
1273 bin_PROGRAMS += murphy-console
1275 murphy_console_SOURCES = \
1276 console-client/client.c
1278 murphy_console_CFLAGS = \
1281 murphy_console_LDADD = \
1282 libbreedline-murphy.la \
1287 murphy_console_LDADD += libmurphy-dbus.la
1290 murphy_console_LDFLAGS = -rdynamic
1293 generate-linker-scripts:
1294 $(MAKE) -C murphy-db $@
1297 clean-local:: # clean-linker-script clean-func-infos