Makefile and Codes for State Machine
The following was compiled with g++ on both a linux machine and a mac. Using just a terminal, I compiled the code in a directory with
my_computer$> make -f Makefile1
This will produce the executable myapp. I also built the application with codeblocks on the linux box. (without the makefile)