iio: make tools more cross-compilation friendly

When cross-compiling the IIO tools we need to opportunity to
specify a cross compiler prefix and some extra CFLAGS. This
patch enables this in the same way as for other stuff in
tools.

Signed-off-by: Linus Walleij <[email protected]>
Acked-by: Daniel Baluta <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
Linus Walleij 2015-05-05 10:42:12 +02:00 • committed by Jonathan Cameron
commit 54628687fa

View file

@ -1,5 +1,5 @@
CC = gcc
CFLAGS = -Wall -g -D_GNU_SOURCE
CC = $(CROSS_COMPILE)gcc
CFLAGS += -Wall -g -D_GNU_SOURCE
all: iio_event_monitor lsiio generic_buffer