Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Davidlohr Bueso | 4f22ce7 | 2011-02-06 14:13:37 -0300 | [diff] [blame] | 2 | # Makefile for USB tools |
| 3 | |
Davidlohr Bueso | 4f22ce7 | 2011-02-06 14:13:37 -0300 | [diff] [blame] | 4 | PTHREAD_LIBS = -lpthread |
| 5 | WARNINGS = -Wall -Wextra |
Huang Rui | cb292ce | 2013-12-04 15:56:10 +0800 | [diff] [blame] | 6 | CFLAGS = $(WARNINGS) -g -I../include |
| 7 | LDFLAGS = $(PTHREAD_LIBS) |
Davidlohr Bueso | 4f22ce7 | 2011-02-06 14:13:37 -0300 | [diff] [blame] | 8 | |
| 9 | all: testusb ffs-test |
| 10 | %: %.c |
Huang Rui | cb292ce | 2013-12-04 15:56:10 +0800 | [diff] [blame] | 11 | $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) |
Davidlohr Bueso | 4f22ce7 | 2011-02-06 14:13:37 -0300 | [diff] [blame] | 12 | |
| 13 | clean: |
| 14 | $(RM) testusb ffs-test |