summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2007-07-20 00:41:26 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2007-07-20 00:41:26 +0000
commit0bd7e6290e4d185e08bc9c3b3b4956280164e31d (patch)
treefa4703a5af7934b4539671559bc2602ce5d227e6 /test
parent73fcc3cc7918be8925358e3e4ca6b4a136da19e2 (diff)
downloadlibdom-0bd7e6290e4d185e08bc9c3b3b4956280164e31d.tar.gz
libdom-0bd7e6290e4d185e08bc9c3b3b4956280164e31d.tar.bz2
Fix RISC OS build
svn path=/trunk/dom/; revision=3446
Diffstat (limited to 'test')
-rw-r--r--test/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/Makefile b/test/Makefile
index c8e44fe..f2cc1d3 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -20,7 +20,7 @@
# Extend toolchain settings
CFLAGS += -I${TOP}/src/ -I${TOP}/bindings/xml/ -I$(CURDIR)
-LDFLAGS += `pkg-config --libs libxml-2.0`
+LDFLAGS += `${PKGCONFIG} ${PKGCONFIGFLAGS} --libs libxml-2.0`
# Release output
RELEASE =
@@ -47,6 +47,7 @@ debug:
clean:
ifneq (${OBJS}, )
-@${RM} ${RMFLAGS} $(CFILES)
+ -@${RM} ${RMFLAGS} $(CFILES:.c=.o)
-@${RM} ${RMFLAGS} $(addsuffix ${EXEEXT}, $(OBJS))
endif
@@ -59,15 +60,15 @@ export:
test: $(OBJS)
@${PERL} testrunner.pl ${EXEEXT}
-
+
transform: $(CFILES)
# Pattern rules
%: %.c
@${ECHO} ${ECHOFLAGS} "==> $<"
- @${CC} -c -g ${CFLAGS} -o $@.o $<
- @${LD} -g -o $@ $@.o ${LDFLAGS} -ldom-libxml-debug -ldom-debug
+ ${CC} -c -g ${CFLAGS} -o $@.o $<
+ ${LD} -g -o $@ $@.o ${LDFLAGS} -ldom-libxml-debug -ldom-debug
@${RM} ${RMFLAGS} $@.o
-
+
%.c: %.xml
- @${XSLT} -o $@ transform/test-to-c.xsl $<
+ @${XSLT} ${XSLTFLAGS} -o $@ transform/test-to-c.xsl $<