-SUBDIRS= base adns hbytes cdb crypto dgram tuntap
+SUBDIRS= base adns hbytes cdb crypto dgram
+
+ifneq ($(wildcard /usr/include/linux/if_tun.h),)
+SUBDIRS+= tuntap
+endif
ifneq ($(wildcard /usr/include/wiringPi.h /usr/include/arm-*/wiringPi.h),)
SUBDIRS+= wiringpi
default: all
-clean all:
+clean all debian-substvars:
set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
# To find undefined symbols when implementing, for example: