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;