Makefile to build primitives.
Add flag to control pruning