瀏覽代碼

wiringpi included only if --enable-raspi is set

Stasik0 10 年之前
父節點
當前提交
15630e47c6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/src/Makefile.am

+ 2 - 0
examples/src/Makefile.am

@@ -27,7 +27,9 @@ bin_PROGRAMS += $(top_builddir)/bin/exampleServer $(top_builddir)/bin/exampleSer
 __top_builddir__bin_exampleServer_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include $(GLOBAL_AM_CFLAGS)
 __top_builddir__bin_exampleServer_SOURCES = opcuaServer.c networklayer.c raspberrypi_io.c
 __top_builddir__bin_exampleServer_LDADD= $(top_builddir)/lib/libopen62541.a $(GLOBAL_AM_LDADD)
+if RASPI
 __top_builddir__bin_exampleServer_LDFLAGS = -lwiringPi
+endif
 
 __top_builddir__bin_exampleServerACPLT_CFLAGS = -I$(top_builddir)/src -I$(top_builddir)/include $(GLOBAL_AM_CFLAGS)
 __top_builddir__bin_exampleServerACPLT_SOURCES = opcuaServerACPLT.c networklayer.c