📄 makefile
字号:
#*****************************************************************************
#
# MAKEFILE - Builds the download utility.
#
# Copyright (c) 2005 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
#
# Sub directory.
#
DIRS = boot src
#
# Include the common makefile definitions.
#
include makedefs
#
# The dirs rule, which builds the sub directory.
#
.PHONY: dirs
dirs:
$(MAKE) -C boot
$(MAKE) -C src
.PHONY: default
default: download$(PROGEXT)
#
# A rule to build the download utility.
#
download$(PROGEXT): download.c dirs
ifeq ("$(OS)","Windows_NT")
$(NATIVECC) -DHAVE_STRING_H -o download$(PROGEXT) download.c getopt.c
else
$(NATIVECC) -o download$(PROGEXT) download.c
endif
#
# A rule to remove the build products.
#
clean::
@rm -f download$(PROGEXT)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -