ls1x-master-v0.4/Makefile

28 lines
629 B
Makefile
Raw Normal View History

2024-11-27 15:39:05 +08:00
ROOT_DIR = $(PWD)
export
MCU := 1c102
MCU += 1c103
PHONY := all
PHONY += help
PHONY += $(MCU)
PHONY += clean
all:
@echo "make [1c102|1c103|clean|help]"
$(MCU):
@echo "***************************************************************************"
@echo "*"
@echo "* Welcome loongson $(@)"
@echo "* You will get one file in /home/tftpboot or ./ ."
@echo "* This is $(@).bin."
@echo "*"
@echo "***************************************************************************"
make BOARD=$(@) -C build clean
make BOARD=$(@) -C build all
clean:
make -C build clean
help:
@echo "make [1c102|1c103|clean|help]"
.PHONY: $(PHONY)