2024-11-25 23:10:11 +01:00
|
|
|
|
2024-11-30 21:39:50 +01:00
|
|
|
CC := gcc
|
|
|
|
REVISION != git rev-list --count HEAD
|
|
|
|
CCFLAGS := -D_VERSION='"'0.$(REVISION)'"' -Wall -Werror
|
|
|
|
LIB := -lusb-1.0
|
|
|
|
|
|
|
|
|
2024-11-29 23:17:46 +01:00
|
|
|
.PHONY: honeywell-config debug clean
|
2024-11-25 23:10:11 +01:00
|
|
|
|
|
|
|
honeywell-config:
|
2024-11-30 21:39:50 +01:00
|
|
|
$(CC) $(CCFLAGS) -o honeywell-config honeywell-config.c $(LIB)
|
2024-11-25 23:10:11 +01:00
|
|
|
|
2024-11-29 23:17:46 +01:00
|
|
|
debug:
|
2024-11-30 21:39:50 +01:00
|
|
|
$(CC) $(CCFLAGS) -O0 -ggdb3 -o honeywell-config honeywell-config.c $(LIB)
|
2024-11-29 23:17:46 +01:00
|
|
|
|
2024-11-25 23:10:11 +01:00
|
|
|
clean:
|
2024-11-26 19:56:30 +01:00
|
|
|
rm -f honeywell-config
|