all: powersystemstatus.c dailygraphs.c dailylog.c tristarRAM.c tristarEEPROM.c tristarCalibrationValues.c tristarlog.c tristarlog2file.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` dailylog.c -o ../bin/dailylog
	cc `pkg-config --cflags --libs libmodbus` tristarRAM.c -o ../tools/tristarRAM
	cc `pkg-config --cflags --libs libmodbus` tristarEEPROM.c -o ../tools/tristarEEPROM
	cc `pkg-config --cflags --libs libmodbus` tristarCalibrationValues.c -o ../tools/tristarCalibrationValues
	cc `pkg-config --cflags --libs libmodbus` tristarlog.c -o ../tools/tristarlog
	cc `pkg-config --cflags --libs libmodbus` tristarlog2file.c -o ../tools/tristarlog2file
