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