Makefile.am 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. AM_CFLAGS = $(GLOBAL_AM_CFLAGS) -I$(top_builddir)/src -I. -I$(top_builddir)/src/util
  2. TOOL_DIR = $(top_builddir)/tools
  3. SCHEMA_DIR = $(top_builddir)/schema
  4. lib_LTLIBRARIES = libopen62541.la
  5. lib_LTLIBRARIES: generate_types generate_namespace_0
  6. libopen62541_la_LDFLAGS = -avoid-version -no-undefined
  7. libopen62541_la_SOURCES = ua_types.c \
  8. ua_types_encoding_binary.c \
  9. ua_types_generated.c \
  10. ua_types_encoding_xml.c \
  11. ua_namespace_0.c \
  12. util/ua_util.c \
  13. util/ua_list.c \
  14. util/ua_indexedList.c \
  15. util/ua_base64.c \
  16. ua_transport.c \
  17. ua_transport_binary.c \
  18. ua_transport_binary_secure.c \
  19. ua_namespace.c \
  20. ua_namespace_xml.c \
  21. ua_services_attribute.c \
  22. ua_services_session.c \
  23. ua_services_discovery.c \
  24. ua_services_securechannel.c \
  25. ua_services_nodemanagement.c \
  26. ua_services_view.c \
  27. ua_services_subscription.c\
  28. ua_services_monitoreditems.c\
  29. ua_application.c \
  30. ua_xml.c
  31. ua_types.c: ua_namespace_0.h
  32. ua_namespace_0.h: ua_types_generated.h
  33. ua_types_generated.c ua_types_generated.h: $(SCHEMA_DIR)/Opc.Ua.Types.bsd $(TOOL_DIR)/generate_builtin.py
  34. python $(TOOL_DIR)/generate_builtin.py $(SCHEMA_DIR)/Opc.Ua.Types.bsd ua_types_generated
  35. ua_namespace_0.c ua_namespace_0.h: $(SCHEMA_DIR)/NodeIds.csv $(TOOL_DIR)/generate_namespace.py
  36. python $(TOOL_DIR)/generate_namespace.py $(SCHEMA_DIR)/NodeIds.csv ua_namespace_0
  37. .PHONY: convenience-link clean-convenience-link
  38. convenience-link: $(lib_LTLIBRARIES)
  39. @test -e "$(top_builddir)/lib" || mkdir "$(top_builddir)/lib"
  40. @for soname in `echo | $(EGREP) "^dlname=" $^ | $(SED) -e "s|^dlname='\(.*\)'|\1|"`; do \
  41. echo "$$soname: creating convenience link from $(abs_builddir)/.libs to $(top_builddir)/lib"; \
  42. rm -f $(top_builddir)/lib/$$soname ; \
  43. test -e "$(abs_builddir)/.libs/$$soname" && \
  44. cd "$(top_builddir)/lib" && \
  45. $(LN_S) "$(abs_builddir)/.libs/$$soname" "$$soname" || true;\
  46. done
  47. @for aname in `echo | $(EGREP) "^dlname=" $^ | $(SED) -e "s|^dlname='\(.*\)\.\(.*\)'|\1\.a|"`; do \
  48. echo "$$aname: creating convenience link from $(abs_builddir)/.libs to $(top_builddir)/lib"; \
  49. rm -f "$(top_builddir)/lib/$$aname" ; \
  50. test -e "$(abs_builddir)/.libs/$$aname" && \
  51. cd "$(top_builddir)/lib" && \
  52. $(LN_S) "$(abs_builddir)/.libs/$$aname" "$$aname" || true;\
  53. done
  54. clean-convenience-link:
  55. rm -rf $(top_builddir)/lib/ || true;
  56. all-local: convenience-link
  57. clean-local: clean-convenience-link
  58. rm -rf ua_types_generated.c ua_types_generated.h || true;
  59. rm -rf ua_namespace_0.c ua_namespace_0.h || true;