diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-11-04 02:08:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-11-04 02:08:05 +0000 |
commit | 175fc45e28c1fdc30da99acbb969ce53272ad588 (patch) | |
tree | 081e9cd7931b54c03d46cadf312dad8dcf327844 /bindings/hubbub/Makefile | |
parent | 3109ad033e095f41ca6e322121b0f96a70073abd (diff) | |
download | libdom-175fc45e28c1fdc30da99acbb969ce53272ad588.tar.gz libdom-175fc45e28c1fdc30da99acbb969ce53272ad588.tar.bz2 |
Beginnings of a hubbub binding to libdom
Currently comprises a stubbed-out parser wrapper
Todo:
1) Complete parser wrapper, such that it actually creates a DOM tree
2) Provide a hubbub-backed DOMImplementationSource
svn path=/trunk/dom/; revision=3646
Diffstat (limited to 'bindings/hubbub/Makefile')
-rw-r--r-- | bindings/hubbub/Makefile | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/bindings/hubbub/Makefile b/bindings/hubbub/Makefile new file mode 100644 index 0000000..dd430c8 --- /dev/null +++ b/bindings/hubbub/Makefile @@ -0,0 +1,70 @@ +# Makefile for libdom +# +# Toolchain is exported by top-level makefile +# +# Top-level makefile also exports the following variables: +# +# COMPONENT Name of component +# EXPORT Absolute path of export directory +# TOP Absolute path of source tree root +# +# The top-level makefile requires the following targets to exist: +# +# clean Clean source tree +# debug Create a debug binary +# distclean Fully clean source tree, back to pristine condition +# export Export distributable components to ${EXPORT} +# release Create a release binary +# setup Perform any setup required prior to compilation +# test Execute any test cases + +# Manipulate include paths +# TODO: fix hubbub include path finding -- needs hubbub to use pkgconfig +CFLAGS += -I$(CURDIR) \ + -I../../../hubbub/include + +# Release output +RELEASE = ${TOP}/${COMPONENT}-libhubbub.a + +# Debug output +DEBUG = ${TOP}/${COMPONENT}-libhubbub-debug.a + +# Objects +OBJS = parser + +.PHONY: clean debug distclean export release setup test + +# Targets +release: $(addprefix Release/, $(addsuffix .o, $(OBJS))) + @${AR} ${ARFLAGS} $(RELEASE) Release/* + +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} $(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 + @${ECHO} ${ECHOFLAGS} "==> $<" + @${CC} -c ${CFLAGS} -DNDEBUG -o $@ $< + +Debug/%.o: %.c + @${ECHO} ${ECHOFLAGS} "==> $<" + @${CC} -c -g ${CFLAGS} -o $@ $< + |