use the -newos toolchain even if -elf is present.
[newos.git] / macros.mk
blob4eed9752cf2f7ed416ab54342b9f5d0c6b4bebd9
2 # prepends the BUILD_DIR var to each item in the list
3 TOBUILDDIR = $(addprefix $(BUILD_DIR)/,$(1))
5 # sees if the target is in the list
6 FINDINLIST = $(if $(findstring $(1),$(2)),1,0)
8 # used in template files to build a directory in the build rules
9 MKDIR = if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi
11 # gets the local directory of the makefile. Requires gmake 3.80
12 GET_LOCAL_DIR = $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))