?? makefile
字號:
# $Id: //depot/software/SDK/Triscend/a7hal/examples/hello/Makefile#24 $#*#**********************************************************#* 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.0endifFCP_PATH=D:/tmp/ssssTRISCEND_FASTCHIP_PROJECT=ssss## Make sure SDK_ROOT is set#ifeq (x$(SDK_ROOT),x) SDK_ROOT=../../../..endif## If the user has not defined BOARD set it to the default value#ifeq (x$(TRISCEND_FASTCHIP_PROJECT),x) TRISCEND_FASTCHIP_PROJECT=A7DBendif## 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## 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 + -