Fix include path.

This commit is contained in:
Thomas Klaehn 2019-07-22 16:49:04 +02:00
parent 07775772a7
commit 3431597f5a
2 changed files with 3 additions and 4 deletions

View File

@ -19,11 +19,10 @@ UNIT_TEST_SRC_DIR = test/unit
UNIT_TEST_OBJ_DIR = $(OBJ_DIR)/$(UNIT_TEST_SRC_DIR)
PREFIX ?= /usr
LIB_INSTALL_DIR ?= $(PREFIX)/lib/gpio_ftdi
INC_INSTALL_DIR ?= $(PREFIX)/include/gpio_ftdi
LIB_INSTALL_DIR ?= $(PREFIX)/lib/$(TARGET_FILE)
INC_INSTALL_DIR ?= $(PREFIX)/include/lib$(TARGET_FILE)
INCLUDES := inc
INCLUDES += /usr/include/libftdi1
ifneq "$(findstring $(MAKECMDGOALS), build_unit_test exec_unit_test coverage)" ""
INCLUDES += test/inc

View File

@ -1,7 +1,7 @@
#ifndef __FTDI_DEV_H__
#define __FTDI_DEV_H__
#include <ftdi.h>
#include <libftdi1/ftdi.h>
struct ftdi_dev {
struct ftdi_context *ftdi;