# Makefile to build something from the Chapter 5 source files.

OBJS = Main.o SimpleJSON.o

simple:	$(OBJS)
	ghc -o simple $(OBJS)

Main.o:	Main.hs SimpleJSON.hi
	ghc -c Main.hs

SimpleJSON.hi: SimpleJSON.hs
	ghc -c SimpleJSON.hs

SimpleJSON.o: SimpleJSON.hs
	ghc -c SimpleJSON.hs

clean:
	rm -f *.o *.hi simple
