📄 makefile
字号:
#*****************************************************************************
#
# MAKEFILE - Builds all the file to produce the code running in SDRAM.
#
# Copyright (c) 2006 Cirrus Logic, Inc.
#
#*****************************************************************************
#
# Choose the tools to use based on the host OS.
#
ifeq ("$(OS)","Windows_NT")
CROSSTOOLS = ads
NATIVETOOLS = msvc
else
CROSSTOOLS = gcc
NATIVETOOLS = gcc
endif
#
# The name of the image that we are building.
#
TARGET = init
#
# The set of object files that comprise the download utility.
#
OBJS = init.o serial.o timer.o amd.o intel.o at25f1024.o sst25vf020.o main.o
#
# The DEBUG for the image.
#
#DEBUG = 1
#
# The entry point for the image.
#
ENTRY = 0x00000000
#
# The read-only base for the image.
#
ROBASE = 0x00000000
#
# The first object for the image.
#
FIRST = init.o
#
# Include the common makefile definitions.
#
include makedefs
#
# The default rule, which builds the download utility.
#
.PHONY: default
default: init.h
#
# A rule to create the project header file from the binary image.
#
init.h: $(TARGET).rom
@echo "// THIS IS AN AUTOMATICALLY GENERATED FILE...DO NOT EDIT!" > init.h
@echo "#define SECEND_BOOT_CODE_SIZE \\">> init.h
@wc -c "$(TARGET).rom" | sed 's/$(TARGET).rom//' >> init.h
@echo "char pcInit[ SECEND_BOOT_CODE_SIZE ] = {" >> init.h
od -A n -t x1 -v $(TARGET).rom | awk -f mkarray.awk >> init.h
#
# A rule to remove the build products.
#
clean::
@rm -f init.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -