rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
2 | # Makefile for USB tools | ||||
3 | |||||
4 | PTHREAD_LIBS = -lpthread | ||||
5 | WARNINGS = -Wall -Wextra | ||||
6 | CFLAGS = $(WARNINGS) -g -I../include | ||||
7 | LDFLAGS = $(PTHREAD_LIBS) | ||||
8 | |||||
9 | all: testusb ffs-test | ||||
10 | %: %.c | ||||
11 | $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) | ||||
12 | |||||
13 | clean: | ||||
14 | $(RM) testusb ffs-test |