From 3431597f5a975bf93f923648c95fc4709eb14d0f Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Mon, 22 Jul 2019 16:49:04 +0200 Subject: [PATCH] Fix include path. --- Makefile | 5 ++--- inc/ftdi_dev.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 589ea17..767f8c6 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/inc/ftdi_dev.h b/inc/ftdi_dev.h index 42b447f..19c1fee 100644 --- a/inc/ftdi_dev.h +++ b/inc/ftdi_dev.h @@ -1,7 +1,7 @@ #ifndef __FTDI_DEV_H__ #define __FTDI_DEV_H__ -#include +#include struct ftdi_dev { struct ftdi_context *ftdi;