Makefile.app: let gcc search header files under $(APP_DIR)/include first

* else "memory.h" of litenes may be resolved to the one in newlib
This commit is contained in:
Zihao Yu 2019-03-23 15:50:51 +08:00
parent e2d6bc96d6
commit 9133a929d7
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
include $(AM_HOME)/Makefile.check
$(info # Building $(NAME) [$(ARCH)] with AM_HOME {$(AM_HOME)})
APP_DIR ?= $(shell pwd)
INC_DIR += $(APP_DIR)/include/
DST_DIR ?= $(APP_DIR)/build/$(ARCH)/
BINARY ?= $(APP_DIR)/build/$(NAME)-$(ARCH)
BINARY_REL = $(shell realpath $(BINARY) --relative-to .)
include $(AM_HOME)/Makefile.check
$(info # Building $(NAME) [$(ARCH)] with AM_HOME {$(AM_HOME)})
default: image
LIBS += klib compiler-rt