diff --git a/Makefile b/Makefile index f76d4f5..969f432 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,13 @@ INCLUDES := inc #Alpine Linux ftdi include path INCLUDES += /usr/include/libftdi1 + +DISTRO=$(cat /etc/issue | grep Alpine) +ifeq "$(findstring Alpine,$(DISTRO))" "" LIBS := ftdi +else +LIBS := ftdi1 +endif LD_FLAGS := C_FLAGS := -O0 -g