Davidlohr Bueso | 4f22ce7 | 2011-02-06 14:13:37 -0300 | [diff] [blame] | 1 | # Makefile for USB tools |
| 2 | |
| 3 | CC = $(CROSS_COMPILE)gcc |
| 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 |