1 2 3 4 5 6 7
CC=gcc CFLAGS=-I/usr/include/modbus LIBS=-lmodbus -lconfig SDIR=src modbuslog: $(SDIR)/modbuslog.c $(CC) -o $(SDIR)/$@ $^ $(CFLAGS) $(LIBS)