162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ciCC = gcc 362306a36Sopenharmony_ciLIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0) 462306a36Sopenharmony_ciLIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0) 562306a36Sopenharmony_ciWARNINGS = -Wall -Wextra 662306a36Sopenharmony_ciCFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) 762306a36Sopenharmony_ciLDFLAGS = $(LIBUSB_LIBS) 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciall: test 1062306a36Sopenharmony_ci%: %.c 1162306a36Sopenharmony_ci $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciclean: 1462306a36Sopenharmony_ci $(RM) test 15