diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-22 21:41:45 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-07-22 21:41:45 +0000 |
commit | 9c680981bbc7c3a2456432b0339ffa1fbab01ab9 (patch) | |
tree | 8ad798085d288dc2864e847fd13efe2b580b7e20 /test/Makefile | |
parent | 41ea8d6204a99f123982e87723657742c2c9765e (diff) | |
download | libdom-9c680981bbc7c3a2456432b0339ffa1fbab01ab9.tar.gz libdom-9c680981bbc7c3a2456432b0339ffa1fbab01ab9.tar.bz2 |
Fix binding.c API usage.
Modify testcase Makefile to build things other than the XML-based testsuite
svn path=/trunk/dom/; revision=3460
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/Makefile b/test/Makefile index 82593de..fd17232 100644 --- a/test/Makefile +++ b/test/Makefile @@ -35,7 +35,9 @@ XMLFILES = $(wildcard xml/tests/*.xml) CFILES = $(addprefix xml/c/, $(notdir $(XMLFILES:.xml=.c))) # Objects -OBJS = $(addprefix xml/bin/, $(notdir $(XMLFILES:.xml=))) +XMLOBJS = $(addprefix xml/bin/, $(notdir $(XMLFILES:.xml=))) +OTHEROBJS = binding +OBJS = $(OTHEROBJS) $(XMLOBJS) .PHONY: clean debug export release setup test @@ -46,6 +48,7 @@ debug: clean: ifneq (${OBJS}, ) + -@${RM} ${RMFLAGS} $(addsuffix ${EXEEXT}, $(OTHEROBJS)) -@${RM} ${RMFLAGS} -r xml/c/ -@${RM} ${RMFLAGS} -r xml/bin/ endif @@ -73,3 +76,9 @@ xml/bin/%: xml/c/%.c xml/c/%.c: xml/tests/%.xml @${XSLT} ${XSLTFLAGS} -o $@ transform/test-to-c.xsl $< + +%: %.c + @${ECHO} ${ECHOFLAGS} "==> $<" + @${CC} -c -g ${CFLAGS} -o $@.o $< + @${LD} -g -o $@ $@.o ${LDFLAGS} -ldom-libxml-debug -ldom-debug + @${RM} ${RMFLAGS} $@.o |