1 # SPDX-License-Identifier: GPL-2.0 2 CC = gcc 3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0) 4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0) 5 WARNINGS = -Wall -Wextra 6 CFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) 7 LDFLAGS = $(LIBUSB_LIBS) 8 9 all: test 10 %: %.c 11 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 12 13 clean: 14 $(RM) test
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.