mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 16:12:52 +00:00
54628687fa
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 <linus.walleij@linaro.org> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
17 lines
323 B
Makefile
17 lines
323 B
Makefile
CC = $(CROSS_COMPILE)gcc
|
|
CFLAGS += -Wall -g -D_GNU_SOURCE
|
|
|
|
all: iio_event_monitor lsiio generic_buffer
|
|
|
|
iio_event_monitor: iio_event_monitor.o iio_utils.o
|
|
|
|
lsiio: lsiio.o iio_utils.o
|
|
|
|
generic_buffer: generic_buffer.o iio_utils.o
|
|
|
|
%.o: %.c iio_utils.h
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f *.o iio_event_monitor lsiio generic_buffer
|