ninja_prep.c

First stage of the pipeline.