makefile for CP2 and Ubuntu