Makefile.am 1.3 KB

123456789101112131415161718192021222324252627282930
  1. if MULTITHREADING
  2. MT_LDADD = -lpthread
  3. else
  4. MT_LDADD =
  5. endif
  6. if COVERAGE
  7. COV_LDFLAGS = --coverage
  8. else
  9. COV_LDFLAGS =
  10. endif
  11. bin_PROGRAMS= $(top_builddir)/bin/exampleServer $(top_builddir)/bin/exampleServerMT $(top_builddir)/bin/exampleServerACPLT
  12. #__top_builddir__bin_exampleServer_LDFLAGS = -all-static
  13. __top_builddir__bin_exampleServer_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include
  14. __top_builddir__bin_exampleServer_SOURCES = opcuaServer.c networklayer.c
  15. __top_builddir__bin_exampleServer_LDADD= $(top_builddir)/lib/libopen62541.a $(MT_LDADD)
  16. __top_builddir__bin_exampleServer_LDFLAGS= $(COV_LDFLAGS)
  17. __top_builddir__bin_exampleServerMT_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include
  18. __top_builddir__bin_exampleServerMT_SOURCES = opcuaServerMT.c networklayer.c
  19. __top_builddir__bin_exampleServerMT_LDADD= $(top_builddir)/lib/libopen62541.a $(MT_LDADD)
  20. __top_builddir__bin_exampleServerMT_LDFLAGS= $(COV_LDFLAGS)
  21. __top_builddir__bin_exampleServerACPLT_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include
  22. __top_builddir__bin_exampleServerACPLT_SOURCES = opcuaServerACPLT.c
  23. __top_builddir__bin_exampleServerACPLT_LDADD= $(top_builddir)/lib/libopen62541.a $(MT_LDADD)
  24. __top_builddir__bin_exampleServerACPLT_LDFLAGS= $(COV_LDFLAGS)
  25. AM_CFLAGS = $(GLOBAL_AM_CFLAGS)