Makefile 273 Bytes
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2 3 4 5
# Makefile for USB tools

PTHREAD_LIBS = -lpthread
WARNINGS = -Wall -Wextra
6 7
CFLAGS = $(WARNINGS) -g -I../include
LDFLAGS = $(PTHREAD_LIBS)
8 9 10

all: testusb ffs-test
%: %.c
11
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
12 13 14

clean:
	$(RM) testusb ffs-test