12 lines
205 B
Makefile
12 lines
205 B
Makefile
include $(TOPDIR)/Makefile.config
|
|
|
|
%.o: %.c
|
|
$(RISCV_GCC) $(RISCV_CFLAGS) -c $<
|
|
|
|
|
|
%.dump: %.o
|
|
$(RISCV_OBJCOPY) -j .text -O $(DUMP_FORMAT) $< $@
|
|
|
|
clean:
|
|
rm -rf *.o 2> /dev/null
|
|
rm -rf *.dump 2> /dev/null
|