#
# 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
LDFLAGS += -pthread

%.o: %.c iio_utils.h

#mpssd.o: mpssd.c
#sysfs.o: sysfs.c

iio_event_monitor: iio_event_monitor.o iio_utils.o

lsiio: lsiio.o iio_utils.o

generic_buffer: generic_buffer.o iio_utils.o

all: iio_event_monitor lsiio generic_buffer

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