Makefile 263 B

1234567891011121314
  1. # Makefile for USB tools
  2. CC = $(CROSS_COMPILE)gcc
  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