Finally got the makefile working