summaryrefslogtreecommitdiff
path: root/tools/gpio/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpio/Makefile')
-rw-r--r--tools/gpio/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gpio/Makefile b/tools/gpio/Makefile
new file mode 100644
index 000000000000..4d198d5c4203
--- /dev/null
+++ b/tools/gpio/Makefile
@@ -0,0 +1,12 @@
+CC = $(CROSS_COMPILE)gcc
+CFLAGS += -Wall -g -D_GNU_SOURCE
+
+all: lsgpio
+
+lsgpio: lsgpio.o gpio-utils.o
+
+%.o: %.c gpio-utils.h
+
+.PHONY: clean
+clean:
+ rm -f *.o lsgpio