X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=Makefile;h=74fc544ad13fa7a8feb90bf7288f6ff5b7803427;hp=d0462d6fc767f5c39cc22c67f1d47414b4fcdb8d;hb=20f8fb4c0c8698ed4fbe844ab956f56ea5269ae8;hpb=288c17549e4d409b60147b6eb8444e72c0eea4e2 diff --git a/Makefile b/Makefile index d0462d6..74fc544 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,22 @@ -SUBDIRS= base adns hbytes 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: 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 +# %