summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-14 05:02:38 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-14 05:02:38 +0000
commite907e7f674a68ca6804464db3de5a727a637cc2c (patch)
treeb25268a564d0c131f242a0e166b35a8c319d6350 /test
parentdb32ff428f215ea25c0b27cc42a69d2f5b2e8bb5 (diff)
include toplevel testdir
Diffstat (limited to 'test')
-rw-r--r--test/Rules.mak9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index ed311a163..dc0eecf69 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -75,10 +75,11 @@ else
OPTIMIZATION += $(call check_gcc,-Os,-O2)
endif
-XWARNINGS = $(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes
-XARCH_CFLAGS = $(subst ",, $(strip $(ARCH_CFLAGS)))
-CFLAGS = $(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) -D_GNU_SOURCE
-HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) -D_GNU_SOURCE
+XWARNINGS := $(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes
+XARCH_CFLAGS := $(subst ",, $(strip $(ARCH_CFLAGS)))
+XCOMMON_CFLAGS := -D_GNU_SOURCE -I$(top_builddir)test
+CFLAGS := $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS)
+HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS)
ifeq ($(DODEBUG),y)
CFLAGS += -g