Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #optimization levels depending on debug
  2. AM_CFLAGS = $(GLOBAL_AM_CFLAGS) -I$(top_builddir)/include -I$(top_builddir)/src -I. -I$(top_builddir)/src/util
  3. TOOL_DIR = ../tools
  4. #__top_builddir__bin_stackTest_out_SOURCES = opcuaServer.c\
  5. # opcua_builtInDatatypes.c\
  6. # opcua_binaryEncDec.c\
  7. # ua_transportLayer.c\
  8. # opcua_builtInDatatypes.h\
  9. # opcua_binaryEncDec.h\
  10. # ua_transportLayer.h\
  11. # opcua_advancedDatatypes.h\
  12. # opcua_types.h\
  13. # opcua_connectionHelper.h\
  14. # tcp_layer.h
  15. #lib_LTLIBRARIES = libstack.la
  16. #libstack_la_SOURCES = ua_transportLayer.c\
  17. # ua_transportLayer.h\
  18. # opcua_advancedDatatypes.h\
  19. # opcua_connectionHelper.h
  20. lib_LTLIBRARIES = libopen62541.la
  21. libopen62541_la_LDFLAGS = -avoid-version -no-undefined
  22. #libopen62541_la_SOURCES = opcua.c\
  23. # ua_basictypes.c\
  24. # ua_namespace_0.c\
  25. # ua_transportLayer.c\
  26. # ua_secureLayer.c\
  27. # tcp_layer.c\
  28. # ua_transportLayer.h\
  29. # opcua_connectionHelper.h\
  30. # opcua_encodingLayer.h\
  31. # ua_secureLayer.h\
  32. # tcp_layer.h\
  33. # util/ua_list.c\
  34. # util/ua_indexedList.c\
  35. # ua_stackInternalTypes.c\
  36. # ua_namespace.h\
  37. # ua_namespace.c
  38. #libopen62541_ladir = $(top_builddir)/include . $(top_builddir)/src . $(top_builddir)/src/util
  39. #libopen62541_la_HEADERS = opcua.h\
  40. # ua_basictypes.h\
  41. # ua_namespace.h\
  42. # ua_transportLayer.h\
  43. # opcua_connectionHelper.h\
  44. # opcua_encodingLayer.h\
  45. # ua_secureLayer.h\
  46. # ua_namespace.h\
  47. # ua_connection.h\
  48. # ua_stackInternalTypes.h\
  49. # ua_list.h\
  50. # ua_indexedList.h
  51. libopen62541_la_SOURCES = opcua.c\
  52. ua_basictypes.c\
  53. ua_namespace_0.c\
  54. util/ua_list.c\
  55. util/ua_indexedList.c\
  56. ua_transport.c\
  57. ua_transport_binary.c\
  58. ua_transport_binary_secure.c\
  59. ua_namespace.c\
  60. ua_services_attribute.c\
  61. ua_services_session.c\
  62. ua_services_discovery.c\
  63. ua_services_securechannel.c\
  64. ua_services_view.c\
  65. ua_application.c
  66. #bin_PROGRAMS= $(top_builddir)/bin/open62541.out
  67. #__top_builddir__bin_libOpen62541_out_SOURCES = opcuaServer.c
  68. #libOpen62541_la_LIBADD = ../lib/libOpen62541.la
  69. .PHONY: convenience-link clean-convenience-link
  70. convenience-link: $(lib_LTLIBRARIES)
  71. @test -e $(top_builddir)/lib || mkdir $(top_builddir)/lib
  72. @for soname in `echo | $(EGREP) "^dlname=" $^ | $(SED) -e "s|^dlname='\(.*\)'|\1|"`; do \
  73. echo "$$soname: creating convenience link from $(abs_builddir)/.libs to $(top_builddir)/lib"; \
  74. rm -f $(top_builddir)/lib/$$soname ; \
  75. test -e $(abs_builddir)/.libs/$$soname && \
  76. cd $(top_builddir)/lib && \
  77. $(LN_S) $(abs_builddir)/.libs/$$soname $$soname || true;\
  78. done
  79. @for aname in `echo | $(EGREP) "^dlname=" $^ | $(SED) -e "s|^dlname='\(.*\)\.\(.*\)'|\1\.a|"`; do \
  80. echo "$$aname: creating convenience link from $(abs_builddir)/.libs to $(top_builddir)/lib"; \
  81. rm -f $(top_builddir)/lib/$$aname ; \
  82. test -e $(abs_builddir)/.libs/$$aname && \
  83. cd $(top_builddir)/lib && \
  84. $(LN_S) $(abs_builddir)/.libs/$$aname $$aname || true;\
  85. done
  86. clean-convenience-link:
  87. rm -rf $(top_builddir)/lib/ || true;
  88. all-local: convenience-link
  89. clean-local: clean-convenience-link