attempt at making makefiles generic