Very simple embedded Prolog example plus Makefile

must build fan and fan.run first
"make demo1" should build the build and executable
"./demo" should output 2 lines of text