aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests/Makefile
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-28 11:41:54 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-02-28 11:41:54 +0100
commitdfd53f76baf85c6dadaacbcfd5f2786cf4cacf73 (patch)
tree632432b382a94f03d932b1893e0b026f873f2aed /tools/tests/Makefile
parentefc061e453575f1a8d3189e858b8a2d4a39d2310 (diff)
downloadxen-dfd53f76baf85c6dadaacbcfd5f2786cf4cacf73.tar.gz
xen-dfd53f76baf85c6dadaacbcfd5f2786cf4cacf73.tar.bz2
xen-dfd53f76baf85c6dadaacbcfd5f2786cf4cacf73.zip
Fix tools Makefiles to respect CFLAGS. Disable stack-smash
protection when building vmxassist/hvmloader. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/tests/Makefile')
-rw-r--r--tools/tests/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/tests/Makefile b/tools/tests/Makefile
index 015e8ae256..99b6b20408 100644
--- a/tools/tests/Makefile
+++ b/tools/tests/Makefile
@@ -4,13 +4,12 @@ include $(XEN_ROOT)/tools/Rules.mk
TARGET := test_x86_emulator
-CC := gcc
-CFLAGS := -O2 -Wall -Werror -D__TEST_HARNESS__
+HOSTCFLAGS += -D__TEST_HARNESS__
all: $(TARGET)
$(TARGET): x86_emulate.o test_x86_emulator.o
- $(CC) -o $@ $^
+ $(HOSTCC) -o $@ $^
clean:
rm -rf $(TARGET) *.o *~ core
@@ -18,7 +17,7 @@ clean:
install:
x86_emulate.o: $(XEN_ROOT)/xen/arch/x86/x86_emulate.c
- $(CC) $(CFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
+ $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
%.o: %.c
- $(CC) $(CFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<
+ $(HOSTCC) $(HOSTCFLAGS) -I$(XEN_ROOT)/xen/include -c -o $@ $<