Makefile 273 B

123456789101112131415
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Makefile for USB tools
  3. PTHREAD_LIBS = -lpthread
  4. WARNINGS = -Wall -Wextra
  5. CFLAGS = $(WARNINGS) -g -I../include
  6. LDFLAGS = $(PTHREAD_LIBS)
  7. all: testusb ffs-test
  8. %: %.c
  9. $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
  10. clean:
  11. $(RM) testusb ffs-test