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

📄 makefile

📁 做的是LCD液晶显示实验
💻
字号:
# $Id: //depot/software/SDK2/Triscend/a7hal/examples/hello/Makefile#1 $#*#**********************************************************#*  Makefile#*  Copyright(C) 2001-2002 Triscend Corporation. All Rights Reserved.#*  This file is licensed under the terms of Triscend SDK License Agreement.#**********************************************************#*# The following environment variables are used by the SDK Makefiles.# These environment variables can be defined in the Makefile to override# the values set in the environment.## TRISCEND_FASTCHIP_PROJECT	- Name of the .csl file to combine with the software#                         image# FCP_PATH		- Path to the FastChip project# TRISCEND_TOOL		- Default tool suite, value values are diab,arm,and gnu# TRISCEND_MODE		- The mode of the tool suite, arm or thumb# TRISCEND_CSOC_TYPE	- The type of CSoC being used# TRISCEND_GCC_VERSION  - The version of GCC being used, 2.95.2 or 3.0.2# FASTCHIP_ROOT		- Points to the installation directory of FastChip# SDK_ROOT		- Points to the root of the SDK#                         ie. C:\Triscend\SDK_1.0.0\Triscend\a7hal#ifeq (x$(SDK_ROOT),x)	SDK_ROOT=C:/Triscend/SDK_3.0/Triscend/a7halendifFCP_PATH=d:/syy/fcp/syyTRISCEND_FASTCHIP_PROJECT=syy## Make sure SDK_ROOT is set#ifeq (x$(SDK_ROOT),x)	SDK_ROOT=C:/Triscend/SDK_2.6endif## If the user has not defined BOARD set it to the default value#ifeq (x$(TRISCEND_FASTCHIP_PROJECT),x)	TRISCEND_FASTCHIP_PROJECT=DEVA7endif#	TRISCEND_FASTCHIP_PROJECT=A7DB## If the user has not defined FCP_PATH set it to the default value#ifeq (x$(FCP_PATH),x)	FCP_PATH=$(SDK_ROOT)/Triscend/a7hal/fcp/$(TRISCEND_FASTCHIP_PROJECT)endif## Set the default compiler to GNU#ifeq (x$(TRISCEND_TOOL),x)	TRISCEND_TOOL=gnuendif## The 'all' make target must come first.#all: ./obj/$(TRISCEND_MODE) ram.elf#all: ./obj/$(TRISCEND_MODE) ram.hex## Include the rules to build the A7HAL#include $(SDK_ROOT)/Triscend/a7hal/src/rules.mk## The following objects make up the user application portion of# the image $(TOOLOBJS) must always come first.#OBJS = $(TOOLOBJS) $(OBJ_DIR)/main.oclean:	$(RM) $(OBJ_DIR)/*.o $(OBJ_DIR)/*.a *.elf *.map *.hex *.tmp *.cfg *.cfr## Rule to create the object output directory#$(OBJ_DIR):	mkdir -p $(OBJ_DIR)## Rule to create the .elf file#%.elf:	$(OBJS) $(LIB_DIR)/$(LIB_NAME) $(LD_FILES)	$(LNK) -o $@ $(OBJS) $(LIB_DIR)/$(LIB_NAME) $(LOPTS)## Rule to create a .hex file from the .elf file#%.hex: %.elf	$(DMP)	$(HEX_TO_I)## Default rule to make .o files in the application directory#$(OBJ_DIR)/%.o: %.c main.h Makefile \		$(FCP_PATH)/$(TRISCEND_FASTCHIP_PROJECT).h	$(CC) $(INC) $(CFLAGS) -o $(OBJ_DIR)/$*.o $*.c

⌨️ 快捷键说明

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