codgen is defined in ../cc/pgen.c, so doing
mk ../cc/cc.a$O
first should help. You could be more aggressive:
cd ../cc
mk nuke
mk
To build all the compilers, it looks like
cd ../cc
mk everything
will do the job.
