Skip to content

Commit 4f22ce7

Browse files
Davidlohr Buesogregkh
authored andcommitted
USB: tools: Add a Makefile
Build USB tools easier. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 05c3eeb commit 4f22ce7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎tools/usb/Makefile‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Makefile for USB tools
2+
3+
CC = $(CROSS_COMPILE)gcc
4+
PTHREAD_LIBS = -lpthread
5+
WARNINGS = -Wall -Wextra
6+
CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS)
7+
8+
all: testusb ffs-test
9+
%: %.c
10+
$(CC) $(CFLAGS) -o $@ $^
11+
12+
clean:
13+
$(RM) testusb ffs-test

0 commit comments

Comments
 (0)