Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 = ../tool
  4. #__top_builddir__bin_stackTest_out_SOURCES = opcuaServer.c\
  5. # opcua_builtInDatatypes.c\
  6. # opcua_binaryEncDec.c\
  7. # opcua_transportLayer.c\
  8. # opcua_builtInDatatypes.h\
  9. # opcua_binaryEncDec.h\
  10. # opcua_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 = opcua_transportLayer.c\
  17. # opcua_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. # opcua_basictypes.c\
  24. # opcua_namespace_0.c\
  25. # opcua_transportLayer.c\
  26. # opcua_secureLayer.c\
  27. # tcp_layer.c\
  28. # opcua_transportLayer.h\
  29. # opcua_connectionHelper.h\
  30. # opcua_encodingLayer.h\
  31. # opcua_secureLayer.h\
  32. # tcp_layer.h\
  33. # util/UA_list.c\
  34. # util/UA_indexedList.c\
  35. # UA_stackInternalTypes.c\
  36. # opcua_namespace.h\
  37. # opcua_namespace.c
  38. #libopen62541_ladir = $(top_builddir)/include . $(top_builddir)/src . $(top_builddir)/src/util
  39. #libopen62541_la_HEADERS = opcua.h\
  40. # opcua_basictypes.h\
  41. # opcua_namespace.h\
  42. # opcua_transportLayer.h\
  43. # opcua_connectionHelper.h\
  44. # opcua_encodingLayer.h\
  45. # opcua_secureLayer.h\
  46. # opcua_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. opcua_basictypes.c\
  53. opcua_namespace_0.c\
  54. UA_stackInternalTypes.c\
  55. opcua_transportLayer.c\
  56. opcua_secureLayer.c\
  57. util/UA_list.c\
  58. util/UA_indexedList.c\
  59. opcua_namespace.c\
  60. UA_stack.c
  61. #bin_PROGRAMS= $(top_builddir)/bin/open62541.out
  62. #__top_builddir__bin_libOpen62541_out_SOURCES = opcuaServer.c
  63. #libOpen62541_la_LIBADD = ../lib/libOpen62541.la
  64. .PHONY: convenience-link clean-convenience-link
  65. convenience-link: $(lib_LTLIBRARIES)
  66. @test -e $(top_builddir)/lib || mkdir $(top_builddir)/lib
  67. @for soname in `echo | $(EGREP) "^dlname=" $^ | $(SED) -e "s|^dlname='\(.*\)'|\1|"`; do \
  68. echo "$$soname: creating convenience link from $(abs_builddir)/.libs to $(top_builddir)/lib"; \
  69. rm -f $(top_builddir)/lib/$$soname ; \
  70. test -e $(abs_builddir)/.libs/$$soname && \
  71. cd $(top_builddir)/lib && \
  72. $(LN_S) $(abs_builddir)/.libs/$$soname $$soname || true;\
  73. done
  74. @for aname in `echo | $(EGREP) "^dlname=" $^ | $(SED) -e "s|^dlname='\(.*\)\.\(.*\)'|\1\.a|"`; do \
  75. echo "$$aname: creating convenience link from $(abs_builddir)/.libs to $(top_builddir)/lib"; \
  76. rm -f $(top_builddir)/lib/$$aname ; \
  77. test -e $(abs_builddir)/.libs/$$aname && \
  78. cd $(top_builddir)/lib && \
  79. $(LN_S) $(abs_builddir)/.libs/$$aname $$aname || true;\
  80. done
  81. clean-convenience-link:
  82. rm -rf $(top_builddir)/lib/ || true;
  83. all-local: convenience-link
  84. clean-local: clean-convenience-link