added Makefile for gpu and cpu