Workaround: In alpine libftdi is named libftdi1

This commit is contained in:
Thomas Klaehn 2019-07-13 22:05:35 +02:00
parent 57f7b1ebe4
commit cc851fc929

View File

@ -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