summaryrefslogtreecommitdiff
path: root/test/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-16 19:13:21 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-16 19:13:21 +0000
commit0955b708c0f7657cb8cd0f1c64595f26f586f629 (patch)
treeb4f587a59b63c575a1c67a5b8cc2420c114ff29a /test/Rules.mak
parentd9099f3dc54d4e9dd182734b039d948b6a0f6b1f (diff)
start pulling in top level Rules.mak so we get access to import CFLAGS/LDFLAGS/CPPFLAGS
Diffstat (limited to 'test/Rules.mak')
-rw-r--r--test/Rules.mak9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index 72a922797..ee080aab3 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -9,10 +9,10 @@
# Note: This does not read the top level Rules.mak file
#
-top_builddir = ../../
+top_builddir ?= ../
TESTDIR=$(top_builddir)test/
--include $(top_builddir).config
+include $(top_builddir)/Rules.mak
UCLIBC_LDSO ?= $(firstword $(wildcard $(top_builddir)lib/ld*))
@@ -69,11 +69,12 @@ OPTIMIZATION += $(call check_gcc,-Os,-O2)
endif
XWARNINGS := $(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes
-XARCH_CFLAGS := $(subst ",, $(strip $(ARCH_CFLAGS)))
+XARCH_CFLAGS := $(subst ",, $(strip $(ARCH_CFLAGS))) $(CPU_CFLAGS)
XCOMMON_CFLAGS := -D_GNU_SOURCE -I$(top_builddir)test
-CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS) -I$(top_builddir)include
+CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS) $(XARCH_CFLAGS) -I$(top_builddir)include $(PTINC)
HOST_CFLAGS += $(XWARNINGS) $(OPTIMIZATION) $(XCOMMON_CFLAGS)
+LDFLAGS := $(CPU_LDFLAGS)
ifeq ($(DODEBUG),y)
CFLAGS += -g
HOST_CFLAGS += -g