X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=Makefile;h=0b0cb549cedadff01a3683e1e23780f336dec43c;hp=24a3fb6eeaa577d4380135ed6d24df8c905e3125;hb=38a008b8d1a3a20c401397b4e132fb578e5f0c10;hpb=32ccc707bc0821d7ff4248fe9f58e92e9c6ebef9 diff --git a/Makefile b/Makefile index 24a3fb6..0b0cb54 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ endif warn = -pedantic -Wall dbg = -g inc = -Isrc -Isrc/libc -gccopt = -marm -fpic -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 @@ -26,21 +26,17 @@ CFLAGS = $(arch) $(warn) $(opt) $(dbg) $(gccopt) $(inc) $(def) ASFLAGS = $(arch) $(dbg) $(inc) LDFLAGS = -nostdlib -T rpikern.ld -print-gc-sections -QEMU_FLAGS = -m 1024 -M raspi2 -serial stdio -d guest_errors +QEMU_FLAGS = -vnc :0 -m 1024 -M raspi2 -serial stdio -d guest_errors $(bin): $(elf) $(OBJCOPY) -O binary $< $@ -$(elf): $(obj) +$(elf): $(obj) rpikern.ld $(LD) -o $@ $(obj) -Map link.map $(LDFLAGS) -include $(dep) -%.d: %.c - @echo 'gen dep $@ ...' - @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ - .PHONY: clean clean: rm -f $(obj) $(bin) $(elf) link.map @@ -55,7 +51,7 @@ run: $(elf) .PHONY: disasm disasm: $(elf) - $(toolprefix)objdump -d $< + $(toolprefix)objdump -D $< .PHONY: install install: $(bin)