📄 makefile
字号:
ifeq ($(SRCDIR)x,x)SRCDIR = $(CURDIR)/../../..endifSUBDIR = src/test/cpp# BLDDIR is for use in places where a symbolic link won't work.# BUILDDIR is for places in Makefile.common that can use the 'blddir'# symbolic link (but in other directories, doesn't).BLDDIR = ../../..BUILDDIR = blddirVPATH = .:$(SRCDIR)include $(BLDDIR)/Makefile.configPROGS = testdefault: allall: $(PROGS)XMLRPC_C_CONFIG = $(BUILDDIR)/xmlrpc-c-config.testCXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)LDFLAGS += $(shell $(XMLRPC_C_CONFIG) client --ldadd)ifeq ($(MUST_BUILD_CURL_CLIENT),yes) LDFLAGS += $(shell curl-config --libs)endififeq ($(MUST_BUILD_LIBWWW_CLIENT),yes) LDFLAGS += $(shell libwww-config --libs)endifLDFLAGS += "-lpthread"LDFLAGS += $(LADD)INCLUDES = -Isrcdir/include -Iblddir -Isrcdir -Isrcdir/lib/util/include# This 'Makefile' dependency makes sure the symlinks get built before# this make file is used for anything.Makefile: blddir srcdirinclude $(SRCDIR)/Makefile.commonTEST_OBJS = test.o server_abyss.o tools.oifeq ($(MUST_BUILD_CLIENT),yes) TEST_OBJS += testclient.o CLIENT_LIBS = $(LIBXMLRPC_CLIENT++) $(LIBXMLRPC_CLIENT_A)else TEST_OBJS += testclient_dummy.o CLIENT_LIBS =endiftest:$(TEST_OBJS) $(LIBXMLRPC_SERVER_ABYSS++) $(LIBXMLRPC_SERVER++) \ $(CLIENT_LIBS) $(LIBXMLRPC++) $(LIBXMLRPC_CPP) \ $(LIBXMLRPC_SERVER_ABYSS_A) $(LIBXMLRPC_SERVER_A) \ $(LIBXMLRPC_A) $(LIBXMLRPC_ABYSS_A) $(LIBXMLRPC_XML) $(LIBXMLRPC_UTIL_A) $(LIBTOOL) --mode=link $(CXXLD) -o $@ $(LDFLAGS) $^%.o:%.cpp $(CXX) -c $(INCLUDES) $(CXXFLAGS) $<# Note the difference between 'check' and 'runtests'. 'check' means to check# our own correctness. 'runtests' means to run the tests that check our# parent's correctness.PHONY: checkcheck:.PHONY: runtestsruntests: test ./test.PHONY: installinstall:.PHONY: clean clean-local distcleanclean: clean-common clean-localclean-local: rm -f $(PROGS)distclean: clean distclean-common.PHONY: depdep: dep-commoninclude Makefile.depend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -