?? makefile
字號:
#******************************************************************************
#
# Makefile - Rules for building the BLDC Motor Application.
#
# Copyright (c) 2007-2008 Luminary Micro, Inc. All rights reserved.
#
# Software License Agreement
#
# Luminary Micro, Inc. (LMI) is supplying this software for use solely and
# exclusively on LMI's microcontroller products.
#
# The software is owned by LMI and/or its suppliers, and is protected under
# applicable copyright laws. All rights are reserved. You may not combine
# this software with "viral" open-source software in order to form a larger
# program. Any use in violation of the foregoing restrictions may subject
# the user to criminal sanctions under applicable laws, as well as to civil
# liability for the breach of the terms and conditions of this license.
#
# THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
# OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
# LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
# CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
#
# This is part of revision 716 of the BLDC motor application.
#
#******************************************************************************
#
# Defines the part type that this project uses.
#
PART=LM3S8971
#
# The base directory for DriverLib.
#
ROOT=../../DriverLib
#
# Include the common make definitions.
#
include ${ROOT}/makedefs
#
# Where to find source files that do not live in this directory.
#
VPATH=../../DriverLib/boot_loader
VPATH+=../../DriverLib/third_party/lwip-1.2.0/src/core
VPATH+=../../DriverLib/third_party/lwip-1.2.0/src/core/ipv4
VPATH+=../../DriverLib/third_party/lwip-1.2.0/src/netif
VPATH+=../../DriverLib/third_party/lwip-1.2.0/port
#
# Where to find header files that do not live in the source directory.
#
IPATH=.
IPATH+=./
IPATH+=../../DriverLib/boot_loader
IPATH+=../../DriverLib/third_party/lwip-1.2.0/src/include
IPATH+=../../DriverLib/third_party/lwip-1.2.0/src/include/ipv4
IPATH+=../../DriverLib/third_party/lwip-1.2.0/port
#
# The default rule, which causes the BLDC Motor Application to be built.
#
all: ${COMPILER}
all: ${COMPILER}/bldc.axf
all: ${COMPILER}/bl_bldc.axf
#
# The rule to clean out all the build products.
#
clean:
@rm -rf ${COMPILER} settings
@rm -rf ${wildcard *~} ${wildcard *.Bak} ${wildcard *.dep}
@rm -rf bl_config.inc
##### INTERNAL BEGIN #####
#
# Cleans out everything, including the Makefile. Should return this directory
# to fresh from subversion status.
#
realclean: clean
@rm -rf ewarm gcc rvmdk settings sourcerygxx
@rm -f ${wildcard *.Uv2} ${wildcard *.Opt}
@rm -f ${wildcard *.ew?} ${wildcard *.xcl} ${wildcard *.icf}
@rm -f ${wildcard *.ld}
@rm -f ${wildcard startup_*}
@rm -f Makefile
##### INTERNAL END #####
#
# The rule to create the target directory.
#
${COMPILER}:
@mkdir ${COMPILER}
#
# Rules for building the BLDC Motor Application.
#
${COMPILER}/bldc.axf: ${COMPILER}/adc_ctrl.o
${COMPILER}/bldc.axf: ${COMPILER}/brake.o
${COMPILER}/bldc.axf: ${COMPILER}/cpu_usage.o
${COMPILER}/bldc.axf: ${COMPILER}/dhcp.o
${COMPILER}/bldc.axf: ${COMPILER}/etharp.o
${COMPILER}/bldc.axf: ${COMPILER}/flash_pb.o
${COMPILER}/bldc.axf: ${COMPILER}/hall_ctrl.o
${COMPILER}/bldc.axf: ${COMPILER}/icmp.o
${COMPILER}/bldc.axf: ${COMPILER}/inet.o
${COMPILER}/bldc.axf: ${COMPILER}/ip.o
${COMPILER}/bldc.axf: ${COMPILER}/ip_addr.o
${COMPILER}/bldc.axf: ${COMPILER}/luminaryif.o
${COMPILER}/bldc.axf: ${COMPILER}/main.o
${COMPILER}/bldc.axf: ${COMPILER}/mem.o
${COMPILER}/bldc.axf: ${COMPILER}/memp.o
${COMPILER}/bldc.axf: ${COMPILER}/netif.o
${COMPILER}/bldc.axf: ${COMPILER}/pbuf.o
${COMPILER}/bldc.axf: ${COMPILER}/pwm_ctrl.o
${COMPILER}/bldc.axf: ${COMPILER}/raw.o
${COMPILER}/bldc.axf: ${COMPILER}/sine.o
${COMPILER}/bldc.axf: ${COMPILER}/sinemod.o
${COMPILER}/bldc.axf: ${COMPILER}/speed_sense.o
${COMPILER}/bldc.axf: ${COMPILER}/startup_${COMPILER}.o
${COMPILER}/bldc.axf: ${COMPILER}/stats.o
${COMPILER}/bldc.axf: ${COMPILER}/sys.o
${COMPILER}/bldc.axf: ${COMPILER}/tcp.o
${COMPILER}/bldc.axf: ${COMPILER}/tcp_in.o
${COMPILER}/bldc.axf: ${COMPILER}/tcp_out.o
${COMPILER}/bldc.axf: ${COMPILER}/trapmod.o
${COMPILER}/bldc.axf: ${COMPILER}/udp.o
${COMPILER}/bldc.axf: ${COMPILER}/ui.o
${COMPILER}/bldc.axf: ${COMPILER}/ui_can.o
${COMPILER}/bldc.axf: ${COMPILER}/ui_ethernet.o
${COMPILER}/bldc.axf: ${COMPILER}/ui_onboard.o
${COMPILER}/bldc.axf: ${COMPILER}/ui_serial.o
${COMPILER}/bldc.axf: ../../DriverLib/src/${COMPILER}/libdriver.a
ifeq (${COMPILER}, gcc)
${COMPILER}/bldc.axf: bldc.ld
endif
ifeq (${COMPILER}, ewarm)
${COMPILER}/bldc.axf: bldc.xcl
endif
ROBASE_bldc=0x00001000
SCATTERgcc_bldc=bldc.ld
SCATTERewarm_bldc=bldc.xcl
SCATTERsourcerygxx_bldc=lm3s8971-rom.ld
ENTRY_bldc=ResetISR
LDFLAGSsourcerygxx_bldc=-T bldc_sourcerygxx.ld
#
# Rules for building the Stellaris Boot Loader.
#
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_autobaud.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_check.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_decrypt.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_enet.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_i2c.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_main.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_packet.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_ssi.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_startup_${COMPILER}.o
${COMPILER}/bl_bldc.axf: ${COMPILER}/bl_uart.o
SCATTERgcc_bl_bldc=../../DriverLib/boot_loader/bl_link.ld
SCATTERewarm_bl_bldc=../../DriverLib/boot_loader/bl_link.xcl
SCATTERrvmdk_bl_bldc=../../DriverLib/boot_loader/bl_link.sct
SCATTERsourcerygxx_bl_bldc=../../DriverLib/boot_loader/bl_link.ld
ENTRY_bl_bldc=ResetISR
LDFLAGSsourcerygxx_bl_bldc=--entry ResetISR
#
# Since RV-MDK can not pass assembly source through the C preprocessor,
# generate an assembly include file from the C header file that contains the
# boot loader configuration.
#
ifeq (${COMPILER},rvmdk)
rvmdk/bl_startup_rvmdk.o: bl_config.inc
bl_config.inc: bl_config.h
@armcc --device DLM -I . -E -o bl_config.inc -c \
../../DriverLib/boot_loader/bl_config.c
endif
#
# Include the automatically generated dependency files.
#
ifneq (${MAKECMDGOALS},clean)
-include ${wildcard ${COMPILER}/*.d} __dummy__
endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -