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