I guess we more experienced folks are just a bit confused about what you are trying to do.
A makefile is used by the "make" command to compile source code into an executable program. (Yeah, it *can* do more, but that's its basic intent.

) So you type
$ make robot
and the instructions in the makefile will take robot.cc and produce an executable program, presumably named "robot". Then, you run "robot" by typing
$ robot [filename]
and "robot" will do whatever it's supposed to do with "filename".
If this isn't what you are trying to do, we need a little more clarification.
