include ../common.mk

all: memtest.elf memtest.dis size

.phony: size
size: memtest.elf
	$(SIZE) $<

memtest.elf: memtest.c $(_COMMON_C)
	$(CC) $(CFLAGS) -O2 $^ -o $@ $(LDFLAGS) $(LDLIBS) -Wl,-Map=$@.map

%.dis: %.elf
	$(OBJDUMP) -d -r $< > $@

clean:
	rm -f *.map *.dis *.o *.elf

