619314ff9bd6414819b7f8733ad7cbd6320ec482
[cascardo/linux.git] / tools / gpio / Makefile
1 CC = $(CROSS_COMPILE)gcc
2 CFLAGS += -O2 -Wall -g -D_GNU_SOURCE
3
4 all: lsgpio gpio-hammer gpio-event-mon
5
6 lsgpio: lsgpio.o gpio-utils.o
7 gpio-hammer: gpio-hammer.o gpio-utils.o
8 gpio-event-mon: gpio-event-mon.o gpio-utils.o
9
10 %.o: %.c gpio-utils.h
11
12 .PHONY: clean
13 clean:
14         rm -f *.o lsgpio gpio-hammer gpio-event-mon