all : Makefile temperatureanalyze temperaturedaemon/temperaturemonitor temperaturedaemon.tar.gz
	echo "Done"

temperaturedaemon.tar.gz : Makefile temperaturedaemon temperaturedaemon/temperaturemonitor temperaturedaemon/temperaturedaemon temperaturedaemon/StartupParameters.plist
	rm -f temperaturedaemon/.DS_Store
	chmod 755 temperaturedaemon/temperaturemonitor
	tar -czf temperaturedaemon.tar.gz temperaturedaemon/

temperatureanalyze : temperatureanalyze.c
	gcc temperatureanalyze.c -o temperatureanalyze -arch ppc

temperaturedaemon/temperaturemonitor : temperaturemonitor.c
	gcc temperaturemonitor.c -o temperaturedaemon/temperaturemonitor -arch ppc

clean:
	rm -f *.o 

distclean:
	rm -f *.o temperatureanalyze temperaturemonitor temperaturedaemon.tar.gz
