X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile;h=b457d711b0b519333abb0534469c51f12fbd7524;hb=a3466b322998a623a15907a5c3520b4f30d1c050;hp=1ccf437362a42c00ec77790e3837e4003c8521eb;hpb=82f88c53ddb84e42c770c23feb9bb0ee18341188;p=chiark-tcl.git diff --git a/Makefile b/Makefile index 1ccf437..b457d71 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,18 @@ -SUBDIRS= base adns hbytes 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: 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 +# %