util  Artifact Content

Artifact 722d1b14152a35f65e587d1b55054028810f260abfd86e9d33ec4a1e98d94819:


include ../makerules

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

$(root)/kpw.bin: 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