SFILES := $(wildcard $(TARGET_MACHINE)/*.s)
OFILES := $(patsubst %.s,%.o,$(SFILES))

all: ${OFILES}
	cp ${OFILES} $(LIBDIR)/

%.o:%.s
	$(AS) $< -o $@