all: powersystemstatus.c dailygraphs.c sunsaverRAM.c sunsaverEEPROM.c powersystem.h
	cc `pkg-config --cflags --libs libmodbus` powersystemstatus.c -o ../bin/powersystemstatus -lgd -lpng -lz
	cc dailygraphs.c -o ../bin/dailygraphs
	cc `pkg-config --cflags --libs libmodbus` sunsaverRAM.c -o ../tools/sunsaverRAM
	cc `pkg-config --cflags --libs libmodbus` sunsaverEEPROM.c -o ../tools/sunsaverEEPROM
	