1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 2b34e08d5SRobert BaldygaCC = gcc 3b34e08d5SRobert BaldygaLIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0) 4b34e08d5SRobert BaldygaLIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0) 5b34e08d5SRobert BaldygaWARNINGS = -Wall -Wextra 6b34e08d5SRobert BaldygaCFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) 7b34e08d5SRobert BaldygaLDFLAGS = $(LIBUSB_LIBS) 8b34e08d5SRobert Baldyga 9b34e08d5SRobert Baldygaall: test 10b34e08d5SRobert Baldyga%: %.c 11b34e08d5SRobert Baldyga $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) 12b34e08d5SRobert Baldyga 13b34e08d5SRobert Baldygaclean: 14b34e08d5SRobert Baldyga $(RM) test 15