#
# Makefile for iio-utils
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
#

CFLAGS += -I$(KERNELDIR)/tools/include -std=gnu99

%.o: %.c iio_utils.h

iio_event_monitor: iio_event_monitor.o iio_utils.o

lsiio: lsiio.o iio_utils.o

iio_generic_buffer: iio_generic_buffer.o iio_utils.o

all: iio_event_monitor lsiio iio_generic_buffer

distclean: clean
clean:
	rm -f *.o
	rm -f iio_event_monitor lsiio iio_generic_buffer
