The lines: .fl.cxx .fl.h: ../fluid/fluid2$(EXEEXT) -c $< Should be replaced with: .fl.cxx .fl.h: fluid2$(EXEEXT) -c $< (the path to the fluid2 was not correct)