1 CC
= $(CROSS_COMPILE
)gcc
2 CFLAGS
+= -Wall
-g
-D_GNU_SOURCE
5 INSTALL_PROGRAM
=install -m
755 -p
8 all: iio_event_monitor lsiio iio_generic_buffer
10 iio_event_monitor
: iio_event_monitor.o iio_utils.o
12 lsiio
: lsiio.o iio_utils.o
14 iio_generic_buffer
: iio_generic_buffer.o iio_utils.o
19 - mkdir
-p
$(INSTALL_ROOT
)/$(BINDIR
)
20 - $(INSTALL_PROGRAM
) "iio_event_monitor" "$(INSTALL_ROOT)/$(BINDIR)/iio_event_monitor"
21 - $(INSTALL_PROGRAM
) "lsiio" "$(INSTALL_ROOT)/$(BINDIR)/lsiio"
22 - $(INSTALL_PROGRAM
) "iio_generic_buffer" "$(INSTALL_ROOT)/$(BINDIR)/iio_generic_buffer"
25 $(DEL_FILE
) "$(INSTALL_ROOT)/$(BINDIR)/iio_event_monitor"
26 $(DEL_FILE
) "$(INSTALL_ROOT)/$(BINDIR)/lsiio"
27 $(DEL_FILE
) "$(INSTALL_ROOT)/$(BINDIR)/iio_generic_buffer"
31 rm -f
*.o iio_event_monitor lsiio iio_generic_buffer