diff --git a/Makefile b/Makefile index f76d4f5..7c87113 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,13 @@ BIN_DIR = bin INCLUDES := inc -#Alpine Linux ftdi include path +#Alpine Linux names libftdi libftdi1 +ifneq "$(findstring Alpine,$(shell head -1 /etc/issue))" "" INCLUDES += /usr/include/libftdi1 +LIBS := ftdi1 +else LIBS := ftdi +endif LD_FLAGS := C_FLAGS := -O0 -g