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:
parent
05c3eebd50
commit
4f22ce7045
13
tools/usb/Makefile
Normal file
13
tools/usb/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user