xref: /linux/tools/usb/ffs-aio-example/multibuff/host_app/Makefile (revision 76727c2c3bf4a5e58dff8cca23d0147ba08fb2c8)
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