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