Update Makefile for Chapter1

Try to make Makefile as general as possible so that it can be copied
with minimum changes to all other Chapters