X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile;h=77e9e48b1116be7fc79f2a7e63d6c929ecaf3021;hb=refs%2Fheads%2Fmaster;hp=9e7377687ba67605bba184b6320ccad310e23815;hpb=2aaa6d9084b8a950151d64b4fe7a483be59b5722;p=chiark-tcl.git diff --git a/Makefile b/Makefile index 9e73776..77e9e48 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,22 @@ -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 +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: +# +# liberator:chiark-tcl> LD_LIBRARY_PATH=:adns:base:cdb:crypto:dgram:hbytes:tuntap tclsh8.3 +# % load chiark_tcl_tuntap-1.so +# couldn't load file "chiark_tcl_tuntap-1.so": tuntap/chiark_tcl_tuntap-1.so: undefined symbol: cht_tunsocket_entries +# %