# Yep. Really trying to stick with minimalism...

.DEFAULT_GOAL := thinkfan

thinkfan:	system.o config.o thinkfan.o
			gcc $(CFLAGS) -Wall -o thinkfan system.o config.o thinkfan.o
			
system.o:	system.c system.h message.h globaldefs.h
			gcc $(CFLAGS) -Wall -c system.c

config.o:	config.c config.h message.h globaldefs.h system.h
			gcc $(CFLAGS) -Wall -c config.c

thinkfan.o:	thinkfan.c thinkfan.h message.h globaldefs.h config.h
			gcc -DMAKEFILE $(CFLAGS) -Wall -c thinkfan.c

clean:
		rm *.o thinkfan
