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