From a7628ce11342eb44f318904e084d0fccac9592b4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Nov 2007 01:06:53 +0000 Subject: Fix up bindings buildsystem to permit multiple bindings to be built -- quite why this wasn't done in the first place is currently beyond me. Tidy up XML binding -- ensure all public API is prefixed dom_xml_ to avoid confusion, remove xml_alloc (it's pointless), and move xml_msg to (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643 --- bindings/Makefile | 42 +++++++----------------------------------- 1 file changed, 7 insertions(+), 35 deletions(-) (limited to 'bindings/Makefile') diff --git a/bindings/Makefile b/bindings/Makefile index 5f1ea53..e552f84 100644 --- a/bindings/Makefile +++ b/bindings/Makefile @@ -18,55 +18,27 @@ # setup Perform any setup required prior to compilation # test Execute any test cases -# Manipulate include paths -CFLAGS += -I$(CURDIR) - -# Release output -RELEASE = ${TOP}/${COMPONENT}-libxml.a - -# Debug output -DEBUG = ${TOP}/${COMPONENT}-libxml-debug.a - -# Objects -OBJS = - .PHONY: clean debug distclean export release setup test # Targets -release: $(addprefix Release/, $(addsuffix .o, $(OBJS))) +release: @${MAKE} -C xml release - @${AR} ${ARFLAGS} $(RELEASE) Release/* -debug: $(addprefix Debug/, $(addsuffix .o, $(OBJS))) +debug: @${MAKE} -C xml debug - @${AR} ${ARFLAGS} $(DEBUG) Debug/* clean: @${MAKE} -C xml clean -ifneq (${OBJS}, ) - -@${RM} ${RMFLAGS} $(addprefix Release/, $(addsuffix .o, ${OBJS})) - -@${RM} ${RMFLAGS} $(addprefix Debug/, $(addsuffix .o, ${OBJS})) -endif - -@${RM} ${RMFLAGS} $(RELEASE) $(DEBUG) - + distclean: - -@${RM} ${RMFLAGS} -r Release - -@${RM} ${RMFLAGS} -r Debug + @${MAKE} -C xml distclean setup: - @${MKDIR} ${MKDIRFLAGS} Release - @${MKDIR} ${MKDIRFLAGS} Debug + @${MAKE} -C xml setup export: - @${CP} ${CPFLAGS} $(RELEASE) ${EXPORT}/lib/ + @${MAKE} -C xml export test: + @${MAKE} -C xml test -# Pattern rules -Release/%.o: %.c - @${ECHO} ${ECHOFLAGS} "==> $<" - @${CC} -c ${CFLAGS} -DNDEBUG -o $@ $< - -Debug/%.o: %.c - @${ECHO} ${ECHOFLAGS} "==> $<" - @${CC} -c -g ${CFLAGS} -o $@ $< -- cgit v1.2.3