Makefile prepend and append all elements in array
With GNU Make, you could try
OBJECTS=$(patsubst %, build/%.o, $(FILES))
Take a look at the make file name functions:
OBJECTS = $(addprefix build/,$(addsuffix .o,$(FILES)))
With GNU Make, you could try
OBJECTS=$(patsubst %, build/%.o, $(FILES))
Take a look at the make file name functions:
OBJECTS = $(addprefix build/,$(addsuffix .o,$(FILES)))