summaryrefslogtreecommitdiff
path: root/tools/gpio/Makefile
blob: 619314ff9bd6414819b7f8733ad7cbd6320ec482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CC = $(CROSS_COMPILE)gcc
CFLAGS += -O2 -Wall -g -D_GNU_SOURCE

all: lsgpio gpio-hammer gpio-event-mon

lsgpio: lsgpio.o gpio-utils.o
gpio-hammer: gpio-hammer.o gpio-utils.o
gpio-event-mon: gpio-event-mon.o gpio-utils.o

%.o: %.c gpio-utils.h

.PHONY: clean
clean:
	rm -f *.o lsgpio gpio-hammer gpio-event-mon