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>
This commit is contained in:
Davidlohr Bueso 2011-02-06 14:13:37 -03:00 committed by Greg Kroah-Hartman
parent 05c3eebd50
commit 4f22ce7045

13
tools/usb/Makefile Normal file
View file

@ -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