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

📄 makefile

📁 a super good method for designing finite state machine
💻
字号:
############################################################################### Time Bomb example# Last Updated for Version: 1.5.00# Date of the Last Update:  Sep 17, 2006## Copyright (C) 2002-2006 Quantum Leaps, LLC. All rights reserved.## This software may be distributed and modified under the terms of the GNU# General Public License version 2 (GPL) as published by the Free Software# Foundation and appearing in the file GPL.TXT included in the packaging of# this file. Please note that GPL Section 2[b] requires that all works based# on this software must also be made publicly available under the terms of# the GPL ("Copyleft").## Alternatively, this software may be distributed and modified under the# terms of Quantum Leaps commercial licenses, which expressly allow the# licensees to retain the proprietary status of their code. The licensees# who use this software under one of Quantum Leaps commercial licenses do# not use this software under the GPL and therefore are not subject to any# of its terms.## Contact information:# Quantum Leaps Web site:  http://www.quantum-leaps.com# Quantum Leaps licensing: http://www.quantum-leaps.com/licensing# Quantum Leaps products:  http://www.quantum-leaps.com/products# e-mail:                  sales@quantum-leaps.com############################################################################### general utilitiesRM = erase# IAR MSP430 tools directoryIAR_430 = C:\tools\IAR\430_KS_3.40A# IAR C/C++ compiler, assembler, and linkerCC   = $(IAR_430)\430\bin\icc430ASM  = $(IAR_430)\430\bin\a430LINK = $(IAR_430)\common\bin\xlinkQP_INCDIR = ..\..\..\..\includeQP_SRCDIR = ..\..\..\..\sourceBLDDIR    = .CCINC     := -I$(QP_INCDIR) -I$(BLDDIR)QP_DEP    := $(QP_INCDIR)\qassert.h \	$(QP_INCDIR)\qepn.h \	$(QP_INCDIR)\qfn.h \	$(BLDDIR)\qpn_port.hAPP_DEP   := $(BLDDIR)\bsp.h \	$(BLDDIR)\bomb.h# dbg (default target) .......................................................BINDIR  = dbg# IAR icc430 compiler optionsCCFLAGS = -I$(IAR_430)\430\inc -I$(IAR_430)\430\inc\dlib -o $(BINDIR) \	-z9 --debug -e --double=32 --reduce_stack_usage \	--dlib_config $(IAR_430)\430\lib\dlib\dl430fn.h	\	--diag_suppress Pa050# IAR linker optionsLINKFLAGS = -xmsnio -I$(IAR_430)\430\lib \	-f $(IAR_430)\430\config\lnk430F2013.xcl \	-D_STACK_SIZE=40 -D_HEAP_SIZE=0 \	-Fubrof $(IAR_430)\430\lib\dlib\dl430fn.r43 \	-e_PrintfTiny=_Printf -e_ScanfSmall=_Scanf -s __program_start# release ....................................................................ifeq ($(MAKECMDGOALS), rel)BINDIR   = rel# IAR icc430 compiler optionsCCFLAGS = -I$(IAR_430)\430\inc -I$(IAR_430)\430\inc\dlib -o $(BINDIR) \	-z9 -e --double=32 --reduce_stack_usage \	--dlib_config $(IAR_430)\430\lib\dlib\dl430fn.h	\	--diag_suppress Pa050# IAR linker optionsLINKFLAGS = -xmsnio -I$(IAR_430)\430\lib \	-f $(IAR_430)\430\config\lnk430F2013.xcl \	-D_STACK_SIZE=40 -D_HEAP_SIZE=0 \	-Fubrof $(IAR_430)\430\lib\dlib\dl430fn.r43 \	-e_PrintfTiny=_Printf -e_ScanfSmall=_Scanf -s __program_startendififeq ($(MAKECMDGOALS), rel_clean)BINDIR   = relendif#.............................................................................$(BINDIR)\bomb.d43 : \	$(BINDIR)\bsp.r43 \	$(BINDIR)\main.r43 \	$(BINDIR)\oper.r43 \	$(BINDIR)\bomb.r43 \	$(BINDIR)\qepn.r43 \	$(BINDIR)\qfn.r43	-$(LINK) \	-o $(BINDIR)\bomb.d43 \	-l $(BINDIR)\bomb.map \	$(BINDIR)\bsp.r43 \	$(BINDIR)\main.r43 \	$(BINDIR)\oper.r43 \	$(BINDIR)\bomb.r43 \	$(BINDIR)\qepn.r43 \	$(BINDIR)\qfn.r43 \	$(LINKFLAGS)$(BINDIR)\main.r43: $(BLDDIR)\main.c $(APP_DEP) $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)\bsp.r43: $(BLDDIR)\bsp.c $(APP_DEP) $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)\bomb.r43: $(BLDDIR)\bomb.c $(APP_DEP) $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)\oper.r43: $(BLDDIR)\oper.c $(APP_DEP) $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)\qepn.r43: $(QP_SRCDIR)\qepn.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)\qfn.r43: $(QP_SRCDIR)\qfn.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<rel: $(BINDIR)\bomb.d43dbg: $(BINDIR)\bomb.d43# clean targets....PHONY: clean rel_cleanrel_clean: cleandbg_clean: cleanclean:	$(RM) $(BINDIR)\*.txt	$(RM) $(BINDIR)\*.d43	$(RM) $(BINDIR)\*.map	$(RM) $(BINDIR)\*.r43

⌨️ 快捷键说明

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