ADD_OBJS = stdio.o stdlib.o exception.o system.o \ $(patsubst %.c,%.o,$(wildcard *.c)) \ $(patsubst common/%.c,common/%.o,$(wildcard common/*.c)) \ $(patsubst irq/%.c,irq/%.o,$(wildcard irq/*.c)) \ $(patsubst benchmark/%.c,benchmark/%.o,$(wildcard benchmark/*.c)) \ $(patsubst matrix_multiplication/%.c,matrix_multiplication/%.o,$(wildcard matrix_multiplication/*.c)) \ $(patsubst sort/%.c,sort/%.o,$(wildcard sort/*.c)) \ $(patsubst dhrystone/%.c,dhrystone/%.o,$(wildcard dhrystone/*.c)) ADD_CFLAGS = SOCLIB ?= $(shell soclib-cc --getpath) export SOCLIB include $(SOCLIB)/soclib/platform/topcells/soft.mk