From: Davidlohr Bueso Date: Sun, 6 Feb 2011 17:13:37 +0000 (-0300) Subject: USB: tools: Add a Makefile X-Git-Tag: upstream/snapshot3+hdmi~11219^2~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f22ce7045c16e36d391fdfe331a397d55578493;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 0000000..8b704af --- /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