1CC = gcc 2LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0) 3LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0) 4WARNINGS = -Wall -Wextra 5CFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) 6LDFLAGS = $(LIBUSB_LIBS) 7 8all: test 9%: %.c 10 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 11 12clean: 13 $(RM) test 14