Files
linux/tools/gpio/Makefile
T
Linus Walleij 6d591c46bc tools/gpio: create GPIO tools
This creates GPIO tools under tools/gpio/* and adds a single
example program to list the GPIOs on a system. When proper
devices are created it provides this minimal output:

Cc: Johan Hovold <[email protected]>
Cc: Michael Welling <[email protected]>
Cc: Markus Pargmann <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2016-02-09 11:09:48 +01:00

13 lines
165 B
Makefile

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