mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +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>
16 lines
323 B
Makefile
16 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
|