xref: /linux/tools/usb/Makefile (revision bf070bb0e6c62ba3075db0a666763ba52c677102)
1# SPDX-License-Identifier: GPL-2.0
2# Makefile for USB tools
3
4CC = $(CROSS_COMPILE)gcc
5PTHREAD_LIBS = -lpthread
6WARNINGS = -Wall -Wextra
7CFLAGS = $(WARNINGS) -g -I../include
8LDFLAGS = $(PTHREAD_LIBS)
9
10all: testusb ffs-test
11%: %.c
12	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
13
14clean:
15	$(RM) testusb ffs-test
16