diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-11-04 01:06:53 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-11-04 01:06:53 +0000 |
commit | a7628ce11342eb44f318904e084d0fccac9592b4 (patch) | |
tree | c0f000206efc85cc728334c4ed96fb824c6f511a /bindings/xml/Makefile | |
parent | e61cf676eedb342b52df17b904e4dd8efc58a2db (diff) | |
download | libdom-a7628ce11342eb44f318904e084d0fccac9592b4.tar.gz libdom-a7628ce11342eb44f318904e084d0fccac9592b4.tar.bz2 |
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 <dom/functypes.h> (as dom_msg, as it's more useful there)
Fix up testobject to compile once more
svn path=/trunk/dom/; revision=3643
Diffstat (limited to 'bindings/xml/Makefile')
-rw-r--r-- | bindings/xml/Makefile | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/bindings/xml/Makefile b/bindings/xml/Makefile index 53a76f9..b5b9757 100644 --- a/bindings/xml/Makefile +++ b/bindings/xml/Makefile @@ -23,33 +23,47 @@ CFLAGS += -I$(CURDIR) \ `${PKGCONFIG} ${PKGCONFIGFLAGS} --cflags libxml-2.0` \ -D_POSIX_C_SOURCE +# Release output +RELEASE = ${TOP}/${COMPONENT}-libxml.a + +# Debug output +DEBUG = ${TOP}/${COMPONENT}-libxml-debug.a + # Objects OBJS = xmlbinding xmlparser .PHONY: clean debug distclean export release setup test # Targets -release: $(addprefix ../Release/, $(addsuffix .o, $(OBJS))) +release: $(addprefix Release/, $(addsuffix .o, $(OBJS))) + @${AR} ${ARFLAGS} $(RELEASE) Release/* -debug: $(addprefix ../Debug/, $(addsuffix .o, $(OBJS))) +debug: $(addprefix Debug/, $(addsuffix .o, $(OBJS))) + @${AR} ${ARFLAGS} $(DEBUG) Debug/* clean: - -@${RM} ${RMFLAGS} $(addprefix ../Release/, $(addsuffix .o, ${OBJS})) - -@${RM} ${RMFLAGS} $(addprefix ../Debug/, $(addsuffix .o, ${OBJS})) + -@${RM} ${RMFLAGS} $(addprefix Release/, $(addsuffix .o, ${OBJS})) + -@${RM} ${RMFLAGS} $(addprefix Debug/, $(addsuffix .o, ${OBJS})) + -@${RM} ${RMFLAGS} $(RELEASE) $(DEBUG) distclean: + -@${RM} ${RMFLAGS} -r Release + -@${RM} ${RMFLAGS} -r Debug setup: + @${MKDIR} ${MKDIRFLAGS} Release + @${MKDIR} ${MKDIRFLAGS} Debug export: + @${CP} ${CPFLAGS} $(RELEASE) ${EXPORT}/lib/ test: # Pattern rules -../Release/%.o: %.c +Release/%.o: %.c @${ECHO} ${ECHOFLAGS} "==> $<" @${CC} -c ${CFLAGS} -DNDEBUG -o $@ $< -../Debug/%.o: %.c +Debug/%.o: %.c @${ECHO} ${ECHOFLAGS} "==> $<" @${CC} -c -g ${CFLAGS} -o $@ $< |