Skip to content

Commit

Permalink
USB: tools: Add a Makefile
Browse files Browse the repository at this point in the history
Build USB tools easier.

Signed-off-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Davidlohr Bueso authored and gregkh committed Feb 17, 2011
1 parent 05c3eeb commit 4f22ce7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tools/usb/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Makefile for USB tools

CC = $(CROSS_COMPILE)gcc
PTHREAD_LIBS = -lpthread
WARNINGS = -Wall -Wextra
CFLAGS = $(WARNINGS) -g $(PTHREAD_LIBS)

all: testusb ffs-test
%: %.c
$(CC) $(CFLAGS) -o $@ $^

clean:
$(RM) testusb ffs-test

0 comments on commit 4f22ce7

Please sign in to comment.