1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 CC = gcc 2 CC = gcc 3 LIBUSB_CFLAGS = $(shell pkg-config --cflags li 3 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0) 4 LIBUSB_LIBS = $(shell pkg-config --libs libusb 4 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0) 5 WARNINGS = -Wall -Wextra 5 WARNINGS = -Wall -Wextra 6 CFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) 6 CFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) 7 LDFLAGS = $(LIBUSB_LIBS) 7 LDFLAGS = $(LIBUSB_LIBS) 8 8 9 all: test 9 all: test 10 %: %.c 10 %: %.c 11 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 11 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 12 12 13 clean: 13 clean: 14 $(RM) test 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.