chiark / gitweb /
Honour dpkg-architecture's DEB_HOST_GNU_TYPE, to fix cross-building.
[chiark-tcl.git] / Makefile
1
2 SUBDIRS=        base adns hbytes cdb crypto dgram
3
4 ifneq ($(wildcard /usr/include/linux/if_tun.h),)
5 SUBDIRS+=       tuntap
6 endif
7
8 ifneq ($(wildcard /usr/include/wiringPi.h /usr/include/arm-*/wiringPi.h),)
9 SUBDIRS+=       wiringpi
10 endif
11
12 default: all
13
14 clean all:
15         set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done
16
17 # To find undefined symbols when implementing, for example:
18 #
19 # liberator:chiark-tcl> LD_LIBRARY_PATH=:adns:base:cdb:crypto:dgram:hbytes:tuntap tclsh8.3
20 # % load chiark_tcl_tuntap-1.so
21 # couldn't load file "chiark_tcl_tuntap-1.so": tuntap/chiark_tcl_tuntap-1.so: undefined symbol: cht_tunsocket_entries
22 # %