xiuos5/link.mk

11 lines
347 B
Makefile
Raw Normal View History

2021-04-28 17:49:18 +08:00
OBJS := $(shell cat make.obj)
$(TARGET): $(OBJS)
@echo ------------------------------------------------
@echo link $(TARGET)
@$(CROSS_COMPILE)g++ -o $@ $($(LINK_FLAGS)) $(OBJS) -lc -lm
@echo ------------------------------------------------
@$(CROSS_COMPILE)objcopy -O binary $@ XiUOS_$(BOARD)$(COMPILE_TYPE).bin
@$(CROSS_COMPILE)size $@