From 0bd7e6290e4d185e08bc9c3b3b4956280164e31d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 20 Jul 2007 00:41:26 +0000 Subject: Fix RISC OS build svn path=/trunk/dom/; revision=3446 --- test/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'test') 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 $< -- cgit v1.2.3