macvtap: read vnet_hdr_size once
[linux/fpc-iii.git] / tools / iio / Makefile
blob5446d625e17d63ab977900625581eed7a0de1735
1 CC = $(CROSS_COMPILE)gcc
2 CFLAGS += -Wall -g -D_GNU_SOURCE
4 BINDIR=usr/bin
5 INSTALL_PROGRAM=install -m 755 -p
6 DEL_FILE=rm -f
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
16 %.o: %.c iio_utils.h
18 install:
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"
24 uninstall:
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"
29 .PHONY: clean
30 clean:
31 rm -f *.o iio_event_monitor lsiio iio_generic_buffer