updated Makefile for conditional compilation of WriteN()