📄 makefile.tinyxml
字号:
#****************************************************************************## Makefil 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#****************************************************************************CC := gccCXX := g++LD := g++AR := ar rcRANLIB := ranlibDEBUG_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -g -DDEBUGRELEASE_CFLAGS := -Wall -Wno-unknown-pragmas -Wno-format -O2LIBS :=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 CXXFLAGS := ${CXXFLAGS} -pg LDFLAGS := ${LDFLAGS} -pgendif#****************************************************************************# Preprocessor directives#****************************************************************************ifeq (YES, ${PROFILE}) DEFS :=else 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# 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 $@clean: -rm -f core ${OBJS} ${OUTPUT}depend: makedepend ${INCS} ${SRCS}# DO NOT DELETEtinyxml.o: tinyxml.h /usr/include/stdio.h /usr/include/features.htinyxml.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.htinyxml.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.htinyxml.o: /usr/include/bits/sched.h /usr/include/libio.htinyxml.o: /usr/include/_G_config.h /usr/include/wchar.htinyxml.o: /usr/include/bits/wchar.h /usr/include/gconv.htinyxml.o: /usr/include/bits/stdio_lim.h /usr/include/assert.htinyxmlparser.o: tinyxml.h /usr/include/stdio.h /usr/include/features.htinyxmlparser.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.htinyxmlparser.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.htinyxmlparser.o: /usr/include/bits/sched.h /usr/include/libio.htinyxmlparser.o: /usr/include/_G_config.h /usr/include/wchar.htinyxmlparser.o: /usr/include/bits/wchar.h /usr/include/gconv.htinyxmlparser.o: /usr/include/bits/stdio_lim.h /usr/include/assert.htinyxmlparser.o: /usr/include/ctype.h /usr/include/endian.htinyxmlparser.o: /usr/include/bits/endian.hxmltest.o: tinyxml.h /usr/include/stdio.h /usr/include/features.hxmltest.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.hxmltest.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.hxmltest.o: /usr/include/bits/sched.h /usr/include/libio.hxmltest.o: /usr/include/_G_config.h /usr/include/wchar.hxmltest.o: /usr/include/bits/wchar.h /usr/include/gconv.hxmltest.o: /usr/include/bits/stdio_lim.h /usr/include/assert.htinyxmlerror.o: tinyxml.h /usr/include/stdio.h /usr/include/features.htinyxmlerror.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.htinyxmlerror.o: /usr/include/bits/types.h /usr/include/bits/pthreadtypes.htinyxmlerror.o: /usr/include/bits/sched.h /usr/include/libio.htinyxmlerror.o: /usr/include/_G_config.h /usr/include/wchar.htinyxmlerror.o: /usr/include/bits/wchar.h /usr/include/gconv.htinyxmlerror.o: /usr/include/bits/stdio_lim.h /usr/include/assert.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -