makefile
来自「EP9315的wince下载程序。download.exe」· 代码 · 共 55 行
TXT
55 行
#*****************************************************************************
#
# 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 + =
减小字号Ctrl + -
显示快捷键?