aboutsummaryrefslogtreecommitdiffstats
path: root/tools/misc
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-09 21:17:45 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-09 21:17:45 +0100
commit326450f67e011c6cb6ced17c8dcb5e7a8442057d (patch)
treecee4a75a40c795a063b54ee703fcf9cf0ade0785 /tools/misc
parente2b8c751654956aef727ec7ee17091cd8e0938ac (diff)
downloadxen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.tar.gz
xen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.tar.bz2
xen-326450f67e011c6cb6ced17c8dcb5e7a8442057d.zip
Clean up the usage of CFLAGS. This is nice for packagers, who would
like to control the base compilation flags from a central place. Signed-off-by: Charles Coffing <ccoffing@novell.com>
Diffstat (limited to 'tools/misc')
-rw-r--r--tools/misc/Makefile2
-rw-r--r--tools/misc/cpuperf/Makefile2
-rw-r--r--tools/misc/lomount/Makefile2
-rw-r--r--tools/misc/mbootpack/Makefile2
-rw-r--r--tools/misc/miniterm/Makefile7
-rw-r--r--tools/misc/nsplitd/Makefile8
6 files changed, 12 insertions, 11 deletions
diff --git a/tools/misc/Makefile b/tools/misc/Makefile
index 6952868538..70f8e9c675 100644
--- a/tools/misc/Makefile
+++ b/tools/misc/Makefile
@@ -5,7 +5,7 @@ INSTALL_DIR = $(INSTALL) -d -m0755
XEN_ROOT=../..
include $(XEN_ROOT)/tools/Rules.mk
-CFLAGS += -Wall -Werror -O3
+CFLAGS += -Werror -O3
INCLUDES += -I $(XEN_XC)
INCLUDES += -I $(XEN_LIBXC)
diff --git a/tools/misc/cpuperf/Makefile b/tools/misc/cpuperf/Makefile
index 604e149b70..86b9c185fe 100644
--- a/tools/misc/cpuperf/Makefile
+++ b/tools/misc/cpuperf/Makefile
@@ -17,7 +17,7 @@ INSTALL_DIR = $(INSTALL) -d -m0755
XEN_ROOT=../../..
include $(XEN_ROOT)/tools/Rules.mk
-CFLAGS += -Wall -O3
+CFLAGS += -O3
HDRS = $(wildcard *.h)
SRCS = $(wildcard *.c)
diff --git a/tools/misc/lomount/Makefile b/tools/misc/lomount/Makefile
index 32d9db41a4..eed0c66951 100644
--- a/tools/misc/lomount/Makefile
+++ b/tools/misc/lomount/Makefile
@@ -6,7 +6,7 @@ INSTALL_DATA = $(INSTALL) -m0644
XEN_ROOT=../../..
include $(XEN_ROOT)/tools/Rules.mk
-CFLAGS += -Wall -Werror -O3
+CFLAGS += -Werror -O3
HDRS = $(wildcard *.h)
OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
diff --git a/tools/misc/mbootpack/Makefile b/tools/misc/mbootpack/Makefile
index 135c67d85d..d87aa8a838 100644
--- a/tools/misc/mbootpack/Makefile
+++ b/tools/misc/mbootpack/Makefile
@@ -20,7 +20,7 @@ GDB := gdb
INCS := -I. -I-
DEFS :=
LDFLAGS :=
-CFLAGS := -Wall -Wpointer-arith -Wcast-qual -Wno-unused -Wno-format
+CFLAGS += -Wpointer-arith -Wcast-qual -Wno-unused -Wno-format
CFLAGS += -Wmissing-prototypes
#CFLAGS += -pipe -g -O0 -Wcast-align
CFLAGS += -pipe -O3
diff --git a/tools/misc/miniterm/Makefile b/tools/misc/miniterm/Makefile
index a9ae844e84..6229d6b95b 100644
--- a/tools/misc/miniterm/Makefile
+++ b/tools/misc/miniterm/Makefile
@@ -1,9 +1,10 @@
+XEN_ROOT:=../../..
+include $(XEN_ROOT)/tools/Rules.mk
+
INSTALL = install
INSTALL_PROG = $(INSTALL) -m0755
INSTALL_DIR = $(INSTALL) -d -m0755
-CC = gcc
-CFLAGS = -Wall -O3
TARGET = miniterm
all: $(TARGET)
@@ -16,4 +17,4 @@ clean:
$(RM) *.o $(TARGET) *~
$(TARGET): $(TARGET).c
- $(CC) $(CFLAGS) -o $@ $<
+ $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
diff --git a/tools/misc/nsplitd/Makefile b/tools/misc/nsplitd/Makefile
index c5c4c9ed40..8880ceabf7 100644
--- a/tools/misc/nsplitd/Makefile
+++ b/tools/misc/nsplitd/Makefile
@@ -1,6 +1,6 @@
+XEN_ROOT := ../../..
+include $(XEN_ROOT)/tools/Rules.mk
-CC = gcc
-CFLAGS = -Wall -O3
CFILES = $(wildcard *.c)
HDRS = $(wildcard *.h)
@@ -16,7 +16,7 @@ clean:
$(RM) *.o $(TARGET) *~
$(TARGET): $(OBJS)
- $(CC) $(CFLAGS) -o $@ $^
+ $(HOSTCC) $(HOSTCFLAGS) -o $@ $^
%.o: %.c $(HDRS) Makefile
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<