xref: /linux/tools/usb/ffs-aio-example/multibuff/host_app/Makefile (revision d218439feccafaa3e852bbaecc0d9f6110096b65)
1# SPDX-License-Identifier: GPL-2.0
2CC = gcc
3LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
4LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
5WARNINGS = -Wall -Wextra
6CFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS)
7LDFLAGS = $(LIBUSB_LIBS)
8
9all: test
10%: %.c
11	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
12
13clean:
14	$(RM) test
15