example: common.mk: add Makefile dep
Signed-off-by: liangkangnan <liangkangnan@163.com>pull/1/head
parent
1ccdeb1b81
commit
6e4764f73d
|
@ -40,7 +40,7 @@ CFLAGS += -march=$(RISCV_ARCH)
|
||||||
CFLAGS += -mabi=$(RISCV_ABI)
|
CFLAGS += -mabi=$(RISCV_ABI)
|
||||||
CFLAGS += -mcmodel=$(RISCV_MCMODEL) -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc
|
CFLAGS += -mcmodel=$(RISCV_MCMODEL) -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc
|
||||||
|
|
||||||
$(TARGET): $(LINK_OBJS) $(LINK_DEPS)
|
$(TARGET): $(LINK_OBJS) $(LINK_DEPS) Makefile
|
||||||
$(RISCV_GCC) $(CFLAGS) $(INCLUDES) $(LINK_OBJS) -o $@ $(LDFLAGS)
|
$(RISCV_GCC) $(CFLAGS) $(INCLUDES) $(LINK_OBJS) -o $@ $(LDFLAGS)
|
||||||
$(RISCV_OBJCOPY) -O binary $@ $@.bin
|
$(RISCV_OBJCOPY) -O binary $@ $@.bin
|
||||||
$(RISCV_OBJDUMP) --disassemble-all $@ > $@.dump
|
$(RISCV_OBJDUMP) --disassemble-all $@ > $@.dump
|
||||||
|
|
Loading…
Reference in New Issue