📄 makefile
字号:
############################################################################### Product: QSpy utility, Linux, g++# Last Updated for Version: 3.4.00# Date of the Last Update: Sep 01, 2007## Q u a n t u m L e a P s# ---------------------------# innovating embedded systems## Copyright (C) 2002-2007 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 supersede# the GPL and are specifically designed for licensees interested in# retaining the proprietary status of their code.## Contact information:# Quantum Leaps Web site: http://www.quantum-leaps.com# e-mail: info@quantum-leaps.com############################################################################### general utilitiesRM = rm# The g++ compiler and linkerCC = g++LINK = g++QP_INCDIR = ../../../../includeINC_DIR = ../../includeSRC_DIR = ../../sourceBLDDIR = .LINKFLAGS =CCINC := -I$(QP_INCDIR) -I$(INC_DIR) -I$(BLDDIR)QP_DEP := $(QP_INCDIR)/qs.hAPP_DEP := \ $(INC_DIR)/dict.h \ $(INC_DIR)/getopt.h \ $(INC_DIR)/hal.h \ $(INC_DIR)/qspy.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#.............................................................................$(BINDIR)/qspy : \ $(BINDIR)/dict.o \ $(BINDIR)/getopt.o \ $(BINDIR)/main.o \ $(BINDIR)/qspy.o \ $(BINDIR)/com.o \ $(BINDIR)/tcp.o $(LINK) $(LINKFLAGS) \ -o $(BINDIR)/qspy \ $(BINDIR)/dict.o \ $(BINDIR)/getopt.o \ $(BINDIR)/main.o \ $(BINDIR)/qspy.o \ $(BINDIR)/com.o \ $(BINDIR)/tcp.o$(BINDIR)/dict.o: $(SRC_DIR)/dict.cpp $(APP_DEP) $(QP_DEP) $(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/getopt.o: $(SRC_DIR)/getopt.c $(APP_DEP) $(QP_DEP) $(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/main.o: $(SRC_DIR)/main.cpp $(APP_DEP) $(QP_DEP) $(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/qspy.o: $(SRC_DIR)/qspy.cpp $(APP_DEP) $(QP_DEP) $(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/com.o: $(BLDDIR)/com.cpp $(APP_DEP) $(QP_DEP) $(CC) $(CCFLAGS) $(CCINC) $<$(BINDIR)/tcp.o: $(BLDDIR)/tcp.cpp $(APP_DEP) $(QP_DEP) $(CC) $(CCFLAGS) $(CCINC) $<dbg: $(BINDIR)/qspyrel: $(BINDIR)/qspy# clean targets....PHONY: clean rel_clean spy_cleanrel_clean: cleandbg_clean: cleanclean: -$(RM) $(BINDIR)/*.o -$(RM) $(BINDIR)/*.d -$(RM) $(BINDIR)/qspy
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -