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

📄 makefile

📁 相信学习过XML的都不会陌生
💻
字号:
#****************************************************************************## Makefile for TinyXml test.# Lee Thomason# www.grinninglizard.com## This is a GNU make (gmake) makefile#****************************************************************************# DEBUG can be set to YES to include debugging info, or NO otherwiseDEBUG          := YES# PROFILE can be set to YES to include profiling info, or NO otherwisePROFILE        := NO# TINYXML_USE_STL can be used to turn on STL support. NO, then STL# will not be used. YES will include the STL files.TINYXML_USE_STL := YES#****************************************************************************CC     := gccCXX    := g++LD     := g++AR     := ar rcRANLIB := ranlibDEBUG_CFLAGS     := -Wall -Wno-format -g -DDEBUGRELEASE_CFLAGS   := -Wall -Wno-unknown-pragmas -Wno-format -O3LIBS		 :=DEBUG_CXXFLAGS   := ${DEBUG_CFLAGS} RELEASE_CXXFLAGS := ${RELEASE_CFLAGS}DEBUG_LDFLAGS    := -gRELEASE_LDFLAGS  :=ifeq (YES, ${DEBUG})   CFLAGS       := ${DEBUG_CFLAGS}   CXXFLAGS     := ${DEBUG_CXXFLAGS}   LDFLAGS      := ${DEBUG_LDFLAGS}else   CFLAGS       := ${RELEASE_CFLAGS}   CXXFLAGS     := ${RELEASE_CXXFLAGS}   LDFLAGS      := ${RELEASE_LDFLAGS}endififeq (YES, ${PROFILE})   CFLAGS   := ${CFLAGS} -pg -O3   CXXFLAGS := ${CXXFLAGS} -pg -O3   LDFLAGS  := ${LDFLAGS} -pgendif#****************************************************************************# Preprocessor directives#****************************************************************************ifeq (YES, ${TINYXML_USE_STL})  DEFS := -DTIXML_USE_STLelse  DEFS :=endif#****************************************************************************# Include paths#****************************************************************************#INCS := -I/usr/include/g++-2 -I/usr/local/includeINCS :=#****************************************************************************# Makefile code common to all platforms#****************************************************************************CFLAGS   := ${CFLAGS}   ${DEFS}CXXFLAGS := ${CXXFLAGS} ${DEFS}#****************************************************************************# Targets of the build#****************************************************************************OUTPUT := xmltestall: ${OUTPUT}#****************************************************************************# Source files#****************************************************************************SRCS := tinyxml.cpp tinyxmlparser.cpp xmltest.cpp tinyxmlerror.cpp tinystr.cpp# Add on the sources for librariesSRCS := ${SRCS}OBJS := $(addsuffix .o,$(basename ${SRCS}))#****************************************************************************# Output#****************************************************************************${OUTPUT}: ${OBJS}	${LD} -o $@ ${LDFLAGS} ${OBJS} ${LIBS} ${EXTRA_LIBS}#****************************************************************************# common rules#****************************************************************************# Rules for compiling source files to object files%.o : %.cpp	${CXX} -c ${CXXFLAGS} ${INCS} $< -o $@%.o : %.c	${CC} -c ${CFLAGS} ${INCS} $< -o $@dist:	bash makedistlinuxclean:	-rm -f core ${OBJS} ${OUTPUT}depend:	#makedepend ${INCS} ${SRCS}tinyxml.o: tinyxml.h tinystr.htinyxmlparser.o: tinyxml.h tinystr.hxmltest.o: tinyxml.h tinystr.htinyxmlerror.o: tinyxml.h tinystr.h

⌨️ 快捷键说明

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