|
@@ -1,21 +1,21 @@
|
|
|
+if MULTITHREADING
|
|
|
+MT_LDADD = -lpthread
|
|
|
+else
|
|
|
+MT_LDADD =
|
|
|
+endif
|
|
|
|
|
|
bin_PROGRAMS= $(top_builddir)/bin/exampleServer $(top_builddir)/bin/exampleServerMT $(top_builddir)/bin/exampleServerACPLT
|
|
|
#__top_builddir__bin_exampleServer_LDFLAGS = -all-static
|
|
|
__top_builddir__bin_exampleServer_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include
|
|
|
__top_builddir__bin_exampleServer_SOURCES = opcuaServer.c networklayer.c
|
|
|
-__top_builddir__bin_exampleServer_LDADD= $(top_builddir)/lib/libopen62541.a
|
|
|
+__top_builddir__bin_exampleServer_LDADD= $(top_builddir)/lib/libopen62541.a $(MT_LDADD)
|
|
|
|
|
|
__top_builddir__bin_exampleServerMT_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include
|
|
|
__top_builddir__bin_exampleServerMT_SOURCES = opcuaServerMT.c networklayer.c
|
|
|
-if MULTITHREADING
|
|
|
-MT_LDADD = -lpthread
|
|
|
-else
|
|
|
-MT_LDADD =
|
|
|
-endif
|
|
|
__top_builddir__bin_exampleServerMT_LDADD= $(top_builddir)/lib/libopen62541.a $(MT_LDADD)
|
|
|
|
|
|
__top_builddir__bin_exampleServerACPLT_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include
|
|
|
__top_builddir__bin_exampleServerACPLT_SOURCES = opcuaServerACPLT.c
|
|
|
-__top_builddir__bin_exampleServerACPLT_LDADD= $(top_builddir)/lib/libopen62541.a
|
|
|
+__top_builddir__bin_exampleServerACPLT_LDADD= $(top_builddir)/lib/libopen62541.a $(MT_LDADD)
|
|
|
|
|
|
AM_CFLAGS = $(GLOBAL_AM_CFLAGS)
|