From: Davidlohr Bueso Date: Sun, 6 Feb 2011 17:13:37 +0000 (-0300) Subject: USB: tools: Add a Makefile X-Git-Tag: v2.6.39-rc1~472^2~144 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=4f22ce7045c16e36d391fdfe331a397d55578493;p=~shefty%2Frdma-dev.git USB: tools: Add a Makefile Build USB tools easier. Signed-off-by: Davidlohr Bueso Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/usb/Makefile b/tools/usb/Makefile new file mode 100644 index 00000000000..8b704af1434 --- /dev/null +++ b/tools/usb/Makefile @@ -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