2013-02-26 wcdj
TinyXPath : tiny C++ XPath
http://sourceforge.net/projects/tinyxpath/
下载后,Linux环境下需要写makefile以将其打包为静态库,然后供自己程序使用。
# Makfile.libtinyxpath
# Linux下创建libtinyxpath.a
# 方法:
# [1] make -f Makefile.configure
# [2] ./configure
# [3] make
# [4] make -f Makfile.libtinyxpath
CC = gcc
CXX = g++
RANLIB = ranlib
AR = ar
AROPT = -scurv
LIB_TOOLS = libtinyxpath.a
# 16个.o文件
OBJS_TOOLS = action_store.o htmlutil.o lex_util.o node_set.o tinystr.o tinyxml.o tinyxmlerror.o tinyxmlparser.o tokenlist.o xml_util.o xpath_expression.o xpath_processor.o xpath_stack.o xpath_static.o xpath_stream.o xpath_syntax.o
all: $(LIB_TOOLS)
$(LIB_TOOLS): $(OBJS_TOOLS)
$(AR) $(AROPT) $@ $?
$(RANLIB) $@