mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
320 B
14 lines
320 B
# SPDX-License-Identifier: GPL-2.0-only |
|
CC = gcc |
|
LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0) |
|
LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0) |
|
WARNINGS = -Wall -Wextra |
|
CFLAGS = $(LIBUSB_CFLAGS) $(WARNINGS) |
|
LDFLAGS = $(LIBUSB_LIBS) |
|
|
|
all: test |
|
%: %.c |
|
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) |
|
|
|
clean: |
|
$(RM) test
|
|
|