CC=gcc
CFLAGS=-I/usr/include/modbus
LIBS=-lmodbus -lconfig
SDIR=src

modbuslog: $(SDIR)/modbuslog.c
	$(CC) -o $(SDIR)/$@ $^ $(CFLAGS) $(LIBS)