general makefile for hybrid program