summaryrefslogtreecommitdiff
path: root/test/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-03 06:45:58 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-03 06:45:58 +0000
commitf9158d441880222b1ba287947ebc863785bf557c (patch)
tree39cceddbe7fc1457a8224a3b4270db1099d1a991 /test/Rules.mak
parent4836768df76d3919451aa9f847182c8f5f4068e7 (diff)
Scrub up the tests a bit, and force everybody to use the
build dir, so nothing need be installed... -Erik
Diffstat (limited to 'test/Rules.mak')
-rw-r--r--test/Rules.mak15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index ab0cd27ff..63a8b2b95 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -14,8 +14,8 @@ NATIVE_ARCH = $(shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
# If you are running a cross compiler, you may want to set this
# to something more interesting...
-TESTCC = ../$(TESTDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc
-CC = gcc
+CC = ../$(TESTDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc
+HOST_CC = gcc
STRIPTOOL=strip
@@ -29,20 +29,23 @@ WARNINGS=-Wall
OPTIMIZATION = $(shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
then echo "-Os"; else echo "-O2" ; fi)
-TEST_CFLAGS=$(WARNINGS) $(OPTIMIZATION) --uclibc-use-build-dir
-CFLAGS=$(WARNINGS) $(OPTIMIZATION)
-
ifeq ($(DODEBUG),true)
- CFLAGS +=-g
+ CFLAGS +=$(WARNINGS) $(OPTIMIZATION) -g
+ GLIBC_CFLAGS +=$(WARNINGS) $(OPTIMIZATION) -g
LDFLAGS =-Wl,-warn-common
+ GLIBC_LDFLAGS =-Wl,-warn-common
STRIPTOOL =/bin/true -Since_we_are_debugging
else
CFLAGS +=-fomit-frame-pointer
+ GLIBC_CFLAGS +=-fomit-frame-pointer
LDFLAGS =-s -Wl,-warn-common
+ GLIBC_LDFLAGS =-s -Wl,-warn-common
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
endif
ifneq ($(DODYNAMIC),true)
LDFLAGS +=--static
endif
+CFLAGS+=--uclibc-use-build-dir
+LDFLAGS+=--uclibc-use-build-dir