chiark / gitweb /
wiringpi: Enable in top-level Makefile
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 9 Jun 2016 12:01:18 +0000 (13:01 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 9 Jun 2016 12:01:20 +0000 (13:01 +0100)
Ad-hoc check for the library header file, to avoid FTBFS on
non-Raspbian hosts.

Makefile

index e815676..b457d71 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 
 SUBDIRS=       base adns hbytes cdb crypto dgram tuntap
 
 
 SUBDIRS=       base adns hbytes cdb crypto dgram tuntap
 
+ifneq ($(wildcard /usr/include/wiringPi.h /usr/include/arm-*/wiringPi.h),)
+SUBDIRS+=      wiringpi
+endif
+
 default: all
 
 clean all:
 default: all
 
 clean all: