util  Artifact Content

Artifact 0ee772709bc9ef6bde3314ce93a225e481f8a314cf59065bc13a9a3288f09380:


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 -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