Linus Walleij | 5462868 | 2015-05-05 10:42:12 +0200 | [diff] [blame] | 1 | CC = $(CROSS_COMPILE)gcc |
2 | CFLAGS += -Wall -g -D_GNU_SOURCE | ||||
Roberta Dobrescu | 817020c | 2015-02-26 10:49:25 +0200 | [diff] [blame] | 3 | |
4 | all: iio_event_monitor lsiio generic_buffer | ||||
5 | |||||
6 | iio_event_monitor: iio_event_monitor.o iio_utils.o | ||||
7 | |||||
8 | lsiio: lsiio.o iio_utils.o | ||||
9 | |||||
10 | generic_buffer: generic_buffer.o iio_utils.o | ||||
11 | |||||
12 | %.o: %.c iio_utils.h | ||||
13 | |||||
14 | .PHONY: clean | ||||
15 | clean: | ||||
16 | rm -f *.o iio_event_monitor lsiio generic_buffer |