X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=Makefile;h=77e9e48b1116be7fc79f2a7e63d6c929ecaf3021;hp=b457d711b0b519333abb0534469c51f12fbd7524;hb=refs%2Fheads%2Fmaster;hpb=50b72ed6d566c8afbd3afb5c565eca002a737e7a diff --git a/Makefile b/Makefile index b457d71..77e9e48 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ -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 @@ -7,7 +11,7 @@ endif 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: