Package Build Error

I'm working on a LoRaWAN Concentrator package. At this point the Makefile is downloading the files, uncompressing them and such without issue. The issue i'm running into is there is a /src and /inc folders. Files in the /src reference .h files from the /inc. Thus the package compile fails with:

src/loragw_hal.c:26:10: fatal error: loragw_reg.h: No such file or directory
 #include "loragw_reg.h

The question is how can I in the makefile to include the /inc folder for the .h files can be found?

Hello,

Here's an example I hope will help you

ifdef CONFIG_TARGET_ipq806x
ifeq ($(CONFIG_GCC_VERSION_4_8),y)
  TARGET_CFLAGS += -std=gnu99
endif
MAKE_FLAGS += \
                CFLAGS+="$(TARGET_CFLAGS) -Wall -DIPQ40XX"
endif


MAKE_FLAGS += \
                CFLAGS+="$(TARGET_CFLAGS) -Wall"
ifeq ($(BUILD_VARIANT), mt76x8)
MAKE_FLAGS += \
                CFLAGS+="$(TARGET_CFLAGS) -Wall -DMT76X8"
endif

The instructions for compiling configurations are as follows, you may need to configure LDFLAGS
https://openwrt.org/docs/guide-developer/packages.flags