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