warn = -pedantic -Wall
dbg = -g
inc = -Isrc -Isrc/libc
-gccopt = -marm -fno-pic -ffreestanding -nostdinc -ffast-math -fno-math-errno
+gccopt = -marm -fno-pic -ffreestanding -nostdinc -ffast-math -fno-math-errno -MMD
#arch = -mcpu=arm1176jzf-s
arch = -mcpu=cortex-a7
-include $(dep)
-%.d: %.c
- @echo 'gen dep $@ ...'
- @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
-
.PHONY: clean
clean:
rm -f $(obj) $(bin) $(elf) link.map
.PHONY: disasm
disasm: $(elf)
- $(toolprefix)objdump -d $<
+ $(toolprefix)objdump -D $<
.PHONY: install
install: $(bin)