blob: acf2165c04e64f8b15e844b787de9f59c324b199 [file] [log] [blame]
Davidlohr Bueso4f22ce72011-02-06 14:13:37 -03001# Makefile for USB tools
2
3CC = $(CROSS_COMPILE)gcc
4PTHREAD_LIBS = -lpthread
5WARNINGS = -Wall -Wextra
Huang Ruicb292ce2013-12-04 15:56:10 +08006CFLAGS = $(WARNINGS) -g -I../include
7LDFLAGS = $(PTHREAD_LIBS)
Davidlohr Bueso4f22ce72011-02-06 14:13:37 -03008
9all: testusb ffs-test
10%: %.c
Huang Ruicb292ce2013-12-04 15:56:10 +080011 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
Davidlohr Bueso4f22ce72011-02-06 14:13:37 -030012
13clean:
14 $(RM) testusb ffs-test