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

📄 makefile

📁 state machine working with rtos
💻
字号:
############################################################################### Product:  QEP/C port to Linux# Last Updated for Version: 3.1.02# Date of the Last Update:  Oct 24, 2005## Copyright (C) 2002-2005 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 = rm# The gcc compiler and ar librarianCC  = gccLIB = arQP_INCDIR = ../../../../includeQP_PRTDIR = ../../../../ports/80x86/linux/gccSRCDIR    = ../../../sourceLIBDIR    = $(QP_PRTDIR)/$(BINDIR)BLDDIR    = .LIBFLAGS = rsCCINC    := -I$(QP_INCDIR) -I$(QP_PRTDIR) -I$(SRCDIR) -I$(BLDDIR)QP_DEP   := $(QP_INCDIR)/qassert.h \	$(QP_INCDIR)/qep.h \	$(QP_PRTDIR)/qep_port.h \	$(SRCDIR)/qep_pkg.h# dbg (default target) .......................................................BINDIR   = dbg# g++ options# -c    : compile only# -g    : source level debuggingCCFLAGS  = -g -c -Wall -o$@# release ....................................................................ifeq ($(MAKECMDGOALS), rel)BINDIR   = rel# g++ options# -c    : compile only# -O    : optimizeCCFLAGS  = -O -c -Wall -o$@endififeq ($(MAKECMDGOALS), rel_clean)BINDIR   = relendif# spy ........................................................................ifeq ($(MAKECMDGOALS), spy)BINDIR   = spy# g++ options# -c    : compile only# -g    : source level debugging# -D    : define preprocessor macroCCFLAGS  = -g -c -Wall -DQ_SPY -o$@QP_DEP  := $(QP_DEP) \	$(QP_INCDIR)/qs.h \	$(QP_PRTDIR)/qs_port.hendififeq ($(MAKECMDGOALS), spy_clean)BINDIR   = spyendif#.............................................................................$(LIBDIR)/libqep.a: \	$(BINDIR)/qep.o \	$(BINDIR)/qfsm_ini.o \	$(BINDIR)/qfsm_dis.o \	$(BINDIR)/qhsm_ini.o \	$(BINDIR)/qhsm_dis.o \	$(BINDIR)/qhsm_top.o \	$(BINDIR)/qhsm_tra.o \	$(BINDIR)/qhsm_in.o	-rm -f $(LIBDIR)/libqep.a	$(LIB) $(LIBFLAGS) $(LIBDIR)/libqep.a \	$(BINDIR)/qep.o \	$(BINDIR)/qfsm_ini.o \	$(BINDIR)/qfsm_dis.o \	$(BINDIR)/qhsm_ini.o \	$(BINDIR)/qhsm_dis.o \	$(BINDIR)/qhsm_top.o \	$(BINDIR)/qhsm_tra.o \	$(BINDIR)/qhsm_in.o$(BINDIR)/qep.o: $(SRCDIR)/qep.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qfsm_ini.o: $(SRCDIR)/qfsm_ini.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qfsm_dis.o: $(SRCDIR)/qfsm_dis.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qhsm_ini.o: $(SRCDIR)/qhsm_ini.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qhsm_dis.o: $(SRCDIR)/qhsm_dis.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qhsm_top.o: $(SRCDIR)/qhsm_top.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qhsm_tra.o: $(SRCDIR)/qhsm_tra.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qhsm_in.o: $(SRCDIR)/qhsm_in.c $(QP_DEP)	$(CC) $(CCFLAGS) $(CCINC) $<dbg: $(LIBDIR)/libqep.arel: $(LIBDIR)/libqep.aspy: $(LIBDIR)/libqep.a# clean targets....PHONY: clean rel_clean spy_cleanrel_clean: cleanspy_clean: cleandbg_clean: cleanclean:	-$(RM) $(BINDIR)/*.o	-$(RM) $(BINDIR)/*.d	-$(RM) $(LIBDIR)/libqep.a

⌨️ 快捷键说明

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