1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 24f22ce70SDavidlohr Bueso# Makefile for USB tools 34f22ce70SDavidlohr Bueso 44f22ce70SDavidlohr BuesoCC = $(CROSS_COMPILE)gcc 54f22ce70SDavidlohr BuesoPTHREAD_LIBS = -lpthread 64f22ce70SDavidlohr BuesoWARNINGS = -Wall -Wextra 7cb292ce2SHuang RuiCFLAGS = $(WARNINGS) -g -I../include 8cb292ce2SHuang RuiLDFLAGS = $(PTHREAD_LIBS) 94f22ce70SDavidlohr Bueso 104f22ce70SDavidlohr Buesoall: testusb ffs-test 114f22ce70SDavidlohr Bueso%: %.c 12cb292ce2SHuang Rui $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 134f22ce70SDavidlohr Bueso 144f22ce70SDavidlohr Buesoclean: 154f22ce70SDavidlohr Bueso $(RM) testusb ffs-test 16