mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
ftdipp_mpsse: add workaround for libftdi < 1.4
This commit is contained in:
@@ -4,6 +4,13 @@ OBJS= $(SRC:.cpp=.o)
|
||||
LDFLAGS=-lm -g -Wall -std=c++11 $(shell pkg-config --libs libftdipp1 libudev)
|
||||
CXXFLAGS=-g -Wall -std=c++11 $(shell pkg-config --cflags libftdipp1 libudev)
|
||||
|
||||
# libftdi < 1.4 as no usb_addr
|
||||
ifeq ($(shell pkg-config --atleast-version=1.4 libftdipp1 && echo 1),)
|
||||
CXXFLAGS+=-DOLD_FTDI_VERSION=1
|
||||
else
|
||||
CXXFLAGS+=-DOLD_FTDI_VERSION=0
|
||||
endif
|
||||
|
||||
all:$(EXEC_NAME)
|
||||
|
||||
$(EXEC_NAME):$(OBJS)
|
||||
|
||||
Reference in New Issue
Block a user