CC = $(CROSS_COMPILE)gcc
CFLAGS += -Wall -g -D_GNU_SOURCE

BINDIR=usr/bin
INSTALL_PROGRAM=install -m 755 -p
DEL_FILE=rm -f

all: iio_event_monitor lsiio iio_generic_buffer

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

%.o: %.c iio_utils.h

install:
	- mkdir -p $(INSTALL_ROOT)/$(BINDIR)
	- $(INSTALL_PROGRAM) "iio_event_monitor" "$(INSTALL_ROOT)/$(BINDIR)/iio_event_monitor"
	- $(INSTALL_PROGRAM) "lsiio" "$(INSTALL_ROOT)/$(BINDIR)/lsiio"
	- $(INSTALL_PROGRAM) "iio_generic_buffer" "$(INSTALL_ROOT)/$(BINDIR)/iio_generic_buffer"

uninstall:
	$(DEL_FILE) "$(INSTALL_ROOT)/$(BINDIR)/iio_event_monitor"
	$(DEL_FILE) "$(INSTALL_ROOT)/$(BINDIR)/lsiio"
	$(DEL_FILE) "$(INSTALL_ROOT)/$(BINDIR)/iio_generic_buffer"

.PHONY: clean
clean:
	rm -f *.o iio_event_monitor lsiio iio_generic_buffer
24bc5fe716855e5e608c515340b3ceacfb143bcc'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/usb/line6'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/usb/line6?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/usb/line6?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/usb/line6?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/usb/line6'>
<input type='hidden' name='id' value='24bc5fe716855e5e608c515340b3ceacfb143bcc'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/usb?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/usb/line6?id=24bc5fe716855e5e608c515340b3ceacfb143bcc'>line6</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/usb/line6?id=24bc5fe716855e5e608c515340b3ceacfb143bcc&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>