Index: kpw.d/makefile ================================================================== --- kpw.d/makefile +++ kpw.d/makefile @@ -2,11 +2,11 @@ cdeps = compose.c iaia.c tbl.c cpaths = $(cdeps:%=$(root)/clib/%) $(root)/kpw: kpw.c opt.inc err.inc $(cpaths) - $(cc) -I$(root) $< -lsodium -o $@ $(flags) $(cc-post) + $(cc) -I$(root) $< -lsodium $(l-shmem) -o $@ $(flags) $(cc-post) tab = cat $< | awk -v emit=$1 -F'\t+' -f $<.awk >> $@ opt.inc: optab optab.awk :>$@ Index: makerules ================================================================== --- makerules +++ makerules @@ -16,10 +16,16 @@ post = $(if $(debug),, && strip $@) cc-post = $(post) sc-post = $(post) mc-post = $(post) + +os = $(shell uname -o) + +ifeq ($(os),Android) + l-shmem = -landroid-shmem +endif %: %.c $(cc) $< -o$@ $(cc-post) %: %.ml