18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ciCC = gcc 38c2ecf20Sopenharmony_ciLIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0) 48c2ecf20Sopenharmony_ciLIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0) 58c2ecf20Sopenharmony_ciWARNINGS = -Wall -Wextra 68c2ecf20Sopenharmony_ciCFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) 78c2ecf20Sopenharmony_ciLDFLAGS = $(LIBUSB_LIBS) 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciall: test 108c2ecf20Sopenharmony_ci%: %.c 118c2ecf20Sopenharmony_ci $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciclean: 148c2ecf20Sopenharmony_ci $(RM) test 15