summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-09-07 16:41:49 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-09-07 16:41:49 +0000
commit42da88597339feda94e4efb0f0dc79e008df5ac0 (patch)
tree9d2f47ec744fd2d42ccf769ef8d513d579215de0 /test
parent044d67e7928db27cc20a61ba6ece47b042252e68 (diff)
downloadlibhubbub-42da88597339feda94e4efb0f0dc79e008df5ac0.tar.gz
libhubbub-42da88597339feda94e4efb0f0dc79e008df5ac0.tar.bz2
Native RO buildsystem. Beware of the NOP.
svn path=/trunk/hubbub/; revision=5275
Diffstat (limited to 'test')
-rw-r--r--test/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index a26df39..c74854d 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -34,9 +34,9 @@ d := $(DIR)
# Extend toolchain settings
# We require the presence of libjson -- http://oss.metaparadigm.com/json-c/
CFLAGS := $(CFLAGS) -I$(TOP)/src/ -I$(d) \
- `$(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags json` \
+ $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --cflags json) \
-Wno-unused-parameter
-LDFLAGS := $(LDFLAGS) `$(PKGCONFIG) $(PKGCONFIGFLAGS) --libs json`
+LDFLAGS := $(LDFLAGS) $(shell $(PKGCONFIG) $(PKGCONFIGFLAGS) --libs json)
ifdef PROFILE
CFLAGS := $(CFLAGS) -pg -fno-omit-frame-pointer
@@ -78,8 +78,14 @@ $(2): $(1)
endef
# Build rules for each test binary -- they all depend on the debug library
+# Except when building on RISC OS, of course because then make utterly fails to
+# detect that the debug library exists.
define compile_test
+ifeq ($(HOST),riscos)
+$(2): $(3)
+else
$(2): $(3) $(TOP)/$(COMPONENT)-debug.a
+endif
@$$(ECHO) $$(ECHOFLAGS) "==> $(1)"
@$$(CC) -c -g $$(DEBUGCFLAGS) -o $$@.o $(1)
@$$(LD) -g -o $$@ $$@.o -lhubbub-debug $$(LDFLAGS) -lgcov