⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 DSP 播放语音文件例子
💻
字号:
## Makefile for DOWNLOADER application## Determine build flavor (debug, gn, rom)# Append colon (:) at end to avoid cases like "foo_d_goo"USEDEBUGLIBS :=TEMP_BLD_FLAVOR := $(BLD_FLAVOR):# Search for "_d:"ifneq ($(findstring _d:,$(TEMP_BLD_FLAVOR)),) USEDEBUGLIBS := yesendif# Define the build environment tools.  Alter these lines if you want# to reference an alternate set of build tools.  You should only need# to do this in very special cases.include $(BLD_TOOLSBLD)/mk/Tools.mk# List the names of all the source files.  These files should all be in# the src subdirectory.SRCFILES   := downloader.c# List the names of all the document files.  These files should all be in# the doc subdirectory.DOCFILES :=# List the name of the application here.TARGETFILE := downldr# Debugging flagsifneq ($(findstring $(BLD_CONFIG_PROF), yes rom handsetrom),) GLOBAL_DFLAGS += -DPROFILEendif# Select application code to compile.ifneq ($(filter mh% 0201%,$(BLD_FLAVOR)),) LOCAL_DFLAGS := -DMHAPPelseifneq ($(filter ipp% 0213%,$(BLD_FLAVOR)),) LOCAL_DFLAGS := -DIPPHONEAPPelseifneq ($(filter dsl% ebr% 9000%,$(BLD_FLAVOR)),) LOCAL_DFLAGS := -DDSLAPP  LOCAL_DFLAGS += -DETH_ONLYendifendifendififneq ($(findstring mhw,$(BLD_FLAVOR)),) LOCAL_DFLAGS += -DNETWORK_WIRELESSendif# List the names of the files to be included in the rom hereROMFILES :=ifneq ($(findstring mhw,$(BLD_FLAVOR)),)            ## MHWROMFILES += ../common/romfiles/mhw/pcmcia.htm OFFSET/autoelseROMFILES += ../common/romfiles/common/vlanset.htm OFFSET/auto endifROMFILES += romfiles/common/menu.js OFFSET/autoROMFILES += romfiles/common/dnldstat.htm OFFSET/autoROMFILES += ../common/romfiles/common/functions.js OFFSET/autoROMFILES += ../common/romfiles/common/style.css OFFSET/autoROMFILES += ../common/romfiles/common/index.htm OFFSET/autoROMFILES += ../common/romfiles/common/top.htm OFFSET/autoROMFILES += ../common/romfiles/common/mainmenu.htm OFFSET/autoROMFILES += ../common/romfiles/common/submenu.htm OFFSET/autoROMFILES += ../common/romfiles/common/main.htm OFFSET/autoROMFILES += ../common/romfiles/common/download.htm OFFSET/auto ROMFILES += ../common/romfiles/common/password.htm OFFSET/auto ROMFILES += ../common/romfiles/common/reset.htm OFFSET/auto ROMFILES += ../common/romfiles/common/netinfo.htm OFFSET/autoROMFILES += ../common/romfiles/common/lanset.htm OFFSET/auto ROMFILES += ../common/romfiles/common/pwset.htm OFFSET/auto ROMFILES += ../common/romfiles/common/snetergy.gif OFFSET/auto ROMFILES += ../common/romfiles/common/voxprmts.pcm OFFSET/auto # offsets change for platforms with linear memory models# downloader starts at 0x280000 (=> 512k big)ifneq ($(findstring linear, $(MEMORY_MODEL)),) MEMORY_MODEL := linear_rom_downloader ROMFILES += romfiles/common/config1 OFFSET/0x78000 ROMFILES += romfiles/common/config2 OFFSET/0x7a000 ROMFILES += romfiles/common/mac OFFSET/0x7f800else ifneq ($(findstring 1meg, $(MEMORY_MODEL)),)  MEMORY_MODEL := ram_only_1meg_downloader  ROMNEXT := -768k  ROMFILES += romfiles/common/config1 OFFSET/0x38000  ROMFILES += romfiles/common/config2 OFFSET/0x3a000  ROMFILES += romfiles/common/mac OFFSET/0x3f800 else  ROMFILES += romfiles/common/config1 OFFSET/0xf8000  ROMFILES += romfiles/common/config2 OFFSET/0xfa000  ROMFILES += romfiles/common/mac OFFSET/0xff800 endifendif# Image profileROMAPPNAME := DNLDROMAPPREV := VR30BLD_MANUFACTURER := NTRG# Add any paths to other library include files here.  Reference external# libraries through the names used in the LibTable.mk file.  By doing this# you will be insulated from any changes in the library paths.# There's no need to include the standard C libraries in this path.INC_PATHS += $(LIBHTTP)INC_PATHS += $(LIBTFTP)INC_PATHS += $(LIBVOIPDISC)INC_PATHS += $(LIBCONFIG)INC_PATHS += $(LIBECC)INC_PATHS += $(LIBROM)# Add any libraries that need to be linked in with this application.# There's no need to reference the standard C libraries.# All entires should be referenced by the names used in the LibTable.mk# file.  In addition, you need to specify a build flavor for each# library.LIBS += $(LIBHTTP) FLAVOR/gnLIBS += $(LIBTFTP) FLAVOR/gnLIBS += $(LIBVOIPDISC) FLAVOR/gnLIBS += $(LIBPROTCOMM) FLAVOR/gnLIBS += $(LIBCONFIG) FLAVOR/gnRAM_CODE += $(RAM_CODE_DEFAULT)RAM_CODE += bin/$(BLD_TARGET_PLATFORM)/$(BLD_FLAVOR)/downloader.oRAM_CODE += $(LIBHTTP):http.o# Include the main Makefile that has the commands to build the library.# By using a central Makefile global additions/changes can be made# easily.## The valid make targets are#	all (default) - builds the depend files and application.#	clean - removes all backup files, .o, .s, and executable files for the#		current target OS and build flavor.#	cleanall - does a 'make clean' and in addition removes any#		.mk dependency files.#	cleaneverything - removes all backup files and the 'bin' directory.#		In addition, does a 'make cleaneverything' in every local#		library.#	exports - builds the depend files and application then copies the#		executable file, and documentation file#		to the source build area.  Then does 'make exports' in#		every local library.include $(BLD_MAKEAPP)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -