util  Artifact [e4660982d8]

Artifact e4660982d8c5175c95cc51144b11ca9b532c3c201b7ac95ccaaf200b11abdd53:


include ../makerules

cdeps = compose.c iaia.c tbl.c
cpaths = $(cdeps:%=$(root)/clib/%)

$(root)/kpw: kpw.c opt.inc err.inc $(cpaths)
	$(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
	:>$@
	$(call tab,cond)
	$(call tab,enum)
	$(call tab,argtbl)
	$(call tab,olong)
	$(call tab,oshort)
	$(call tab,usage)

err.inc: errtab errtab.awk
	:>$@
	$(call tab,enum)
	$(call tab,msg)
	
.PHONY: dbg