diff options
-rw-r--r-- | Config.mk | 2 | ||||
-rw-r--r-- | tools/blktap/Makefile | 1 | ||||
-rw-r--r-- | tools/blktap/parallax/Makefile | 5 | ||||
-rw-r--r-- | tools/blktap/ublkback/Makefile | 1 | ||||
-rw-r--r-- | tools/console/Makefile | 2 | ||||
-rw-r--r-- | tools/debugger/libxendebug/Makefile | 2 | ||||
-rw-r--r-- | tools/debugger/pdb/Makefile | 1 | ||||
-rw-r--r-- | tools/ioemu/Makefile | 2 | ||||
-rw-r--r-- | tools/ioemu/target-i386-dm/Makefile | 2 | ||||
-rw-r--r-- | tools/libxc/Makefile | 1 | ||||
-rw-r--r-- | tools/misc/Makefile | 2 | ||||
-rw-r--r-- | tools/misc/cpuperf/Makefile | 2 | ||||
-rw-r--r-- | tools/misc/lomount/Makefile | 2 | ||||
-rw-r--r-- | tools/misc/mbootpack/Makefile | 2 | ||||
-rw-r--r-- | tools/misc/miniterm/Makefile | 7 | ||||
-rw-r--r-- | tools/misc/nsplitd/Makefile | 8 | ||||
-rw-r--r-- | tools/security/Makefile | 1 | ||||
-rw-r--r-- | tools/vnet/libxutil/Makefile | 3 | ||||
-rw-r--r-- | tools/vnet/vnetd/Makefile | 1 | ||||
-rw-r--r-- | tools/vtpm/Rules.mk | 2 | ||||
-rw-r--r-- | tools/vtpm_manager/Rules.mk | 2 | ||||
-rw-r--r-- | tools/xcutils/Makefile | 2 | ||||
-rw-r--r-- | tools/xenmon/Makefile | 2 | ||||
-rw-r--r-- | tools/xentrace/Makefile | 2 | ||||
-rw-r--r-- | xen/arch/x86/Rules.mk | 2 |
25 files changed, 27 insertions, 32 deletions
@@ -40,6 +40,8 @@ endif test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2)) +CFLAGS += -Wall + HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement) CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement) diff --git a/tools/blktap/Makefile b/tools/blktap/Makefile index d61c407c03..6f19e79f3f 100644 --- a/tools/blktap/Makefile +++ b/tools/blktap/Makefile @@ -22,7 +22,6 @@ LIBS := -lpthread -lz SRCS := SRCS += blktaplib.c xenbus.c blkif.c -CFLAGS += -Wall CFLAGS += -Werror CFLAGS += -Wno-unused #CFLAGS += -O3 diff --git a/tools/blktap/parallax/Makefile b/tools/blktap/parallax/Makefile index c61b684c00..d2cc0ee624 100644 --- a/tools/blktap/parallax/Makefile +++ b/tools/blktap/parallax/Makefile @@ -31,7 +31,6 @@ VDI_TOOLS += vdi_fill VDI_TOOLS += vdi_tree VDI_TOOLS += vdi_validate -CFLAGS += -Wall CFLAGS += -Werror CFLAGS += -Wno-unused #CFLAGS += -O3 @@ -58,7 +57,7 @@ parallax: $(PLX_SRCS) $(CC) $(CFLAGS) -o parallax -L.. $(LDFLAGS) $(PLX_SRCS) ${VDI_TOOLS}: %: %.c $(VDI_SRCS) - $(CC) $(CFLAGS) -g3 -o $@ $@.c $(LDFLAGS) $(VDI_SRCS) + $(CC) $(CFLAGS) -o $@ $@.c $(LDFLAGS) $(VDI_SRCS) .PHONY: TAGS clean install rpm --include $(DEPS)
\ No newline at end of file +-include $(DEPS) diff --git a/tools/blktap/ublkback/Makefile b/tools/blktap/ublkback/Makefile index 48d2bbfe4b..d6083478e9 100644 --- a/tools/blktap/ublkback/Makefile +++ b/tools/blktap/ublkback/Makefile @@ -9,7 +9,6 @@ INSTALL_PROG = $(INSTALL) -m0755 IBIN = ublkback INSTALL_DIR = /usr/sbin -CFLAGS += -Wall CFLAGS += -Werror CFLAGS += -Wno-unused #CFLAGS += -O3 diff --git a/tools/console/Makefile b/tools/console/Makefile index a27aa8e458..206621d083 100644 --- a/tools/console/Makefile +++ b/tools/console/Makefile @@ -9,7 +9,7 @@ INSTALL = install INSTALL_PROG = $(INSTALL) -m0755 INSTALL_DIR = $(INSTALL) -d -m0755 -CFLAGS += -Wall -Werror -g3 +CFLAGS += -Werror -g CFLAGS += -I $(XEN_LIBXC) CFLAGS += -I $(XEN_XENSTORE) diff --git a/tools/debugger/libxendebug/Makefile b/tools/debugger/libxendebug/Makefile index 0d8881ad49..1708802116 100644 --- a/tools/debugger/libxendebug/Makefile +++ b/tools/debugger/libxendebug/Makefile @@ -14,7 +14,7 @@ include $(XEN_ROOT)/tools/Rules.mk SRCS := xendebug.c -CFLAGS += -Wall -Werror -O3 -fno-strict-aliasing +CFLAGS += -Werror -O3 -fno-strict-aliasing CFLAGS += $(INCLUDES) -I. -I$(XEN_ROOT)/tools/libxc # Get gcc to generate the dependencies for us. CFLAGS += -Wp,-MD,.$(@F).d diff --git a/tools/debugger/pdb/Makefile b/tools/debugger/pdb/Makefile index 85f8beaff7..1842ec7d0b 100644 --- a/tools/debugger/pdb/Makefile +++ b/tools/debugger/pdb/Makefile @@ -20,7 +20,6 @@ INCLUDES += -I ./linux-2.6-module INCLUDES += -I $(OCAML_ROOT)/lib/ocaml CFLAGS += $(INCLUDES) -CFLAGS += -Wall CFLAGS += -Werror CFLAGS += -g diff --git a/tools/ioemu/Makefile b/tools/ioemu/Makefile index 0cb6ab5e5d..bf3deef77b 100644 --- a/tools/ioemu/Makefile +++ b/tools/ioemu/Makefile @@ -3,7 +3,7 @@ include $(XEN_ROOT)/tools/Rules.mk -include config-host.mak -CFLAGS+=-Wall -O2 -g -fno-strict-aliasing +CFLAGS+=-O2 -g -fno-strict-aliasing ifdef CONFIG_DARWIN CFLAGS+= -mdynamic-no-pic endif diff --git a/tools/ioemu/target-i386-dm/Makefile b/tools/ioemu/target-i386-dm/Makefile index ac2774f14f..40f68a10f6 100644 --- a/tools/ioemu/target-i386-dm/Makefile +++ b/tools/ioemu/target-i386-dm/Makefile @@ -13,7 +13,7 @@ ifdef CONFIG_USER_ONLY VPATH+=:$(SRC_PATH)/linux-user DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH) endif -CFLAGS+=-Wall -O2 -g -fno-strict-aliasing +CFLAGS+=-O2 -g -fno-strict-aliasing LDFLAGS=-g LIBS= HELPER_CFLAGS=$(CFLAGS) diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile index 84d4829ecf..3ec4c05d4e 100644 --- a/tools/libxc/Makefile +++ b/tools/libxc/Makefile @@ -48,7 +48,6 @@ BUILD_SRCS += xc_linux_save.c BUILD_SRCS += xc_hvm_build.c endif -CFLAGS += -Wall CFLAGS += -Werror CFLAGS += -O3 CFLAGS += -fno-strict-aliasing 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 $@ $< diff --git a/tools/security/Makefile b/tools/security/Makefile index eefbd48a69..ea12a81147 100644 --- a/tools/security/Makefile +++ b/tools/security/Makefile @@ -1,7 +1,6 @@ XEN_ROOT = ../.. include $(XEN_ROOT)/tools/Rules.mk -CFLAGS += -Wall CFLAGS += -Werror CFLAGS += -O3 CFLAGS += -fno-strict-aliasing diff --git a/tools/vnet/libxutil/Makefile b/tools/vnet/libxutil/Makefile index d268b2cb39..f6a5ca0780 100644 --- a/tools/vnet/libxutil/Makefile +++ b/tools/vnet/libxutil/Makefile @@ -29,8 +29,7 @@ LIB_SRCS += util.c LIB_OBJS := $(LIB_SRCS:.c=.o) PIC_OBJS := $(LIB_SRCS:.c=.opic) -CFLAGS += -Wall -Werror -O3 -fno-strict-aliasing -CFLAGS += -g +CFLAGS += -Werror -O3 -fno-strict-aliasing -g # Get gcc to generate the dependencies for us. CFLAGS += -Wp,-MD,.$(@F).d diff --git a/tools/vnet/vnetd/Makefile b/tools/vnet/vnetd/Makefile index b7347ed7da..93482fa419 100644 --- a/tools/vnet/vnetd/Makefile +++ b/tools/vnet/vnetd/Makefile @@ -44,7 +44,6 @@ CPPFLAGS += -D __ARCH_I386_ATOMIC__ #---------------------------------------------------------------------------- CFLAGS += -g CFLAGS += -O2 -CFLAGS += -Wall CFLAGS += $(INCLUDES) $(LIBS) LDFLAGS += $(LIBS) diff --git a/tools/vtpm/Rules.mk b/tools/vtpm/Rules.mk index 93b84cdaa5..bc0d864c62 100644 --- a/tools/vtpm/Rules.mk +++ b/tools/vtpm/Rules.mk @@ -14,7 +14,7 @@ INSTALL_DIR = $(INSTALL) -d -m0755 TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin # General compiler flags -CFLAGS = -Wall -Werror -g3 -I. +CFLAGS = -Werror -g3 -I. # For generating dependencies CFLAGS += -Wp,-MD,.$(@F).d diff --git a/tools/vtpm_manager/Rules.mk b/tools/vtpm_manager/Rules.mk index c7395864ac..9644eba6bc 100644 --- a/tools/vtpm_manager/Rules.mk +++ b/tools/vtpm_manager/Rules.mk @@ -14,7 +14,7 @@ INSTALL_DIR = $(INSTALL) -d -m0755 TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin # General compiler flags -CFLAGS = -Wall -Werror -g3 -I. +CFLAGS = -Werror -g3 -I. # For generating dependencies CFLAGS += -Wp,-MD,.$(@F).d diff --git a/tools/xcutils/Makefile b/tools/xcutils/Makefile index b7de270e07..5bf5f3d68a 100644 --- a/tools/xcutils/Makefile +++ b/tools/xcutils/Makefile @@ -19,7 +19,7 @@ PROGRAMS_INSTALL_DIR = /usr/$(LIBDIR)/xen/bin INCLUDES += -I $(XEN_LIBXC) -CFLAGS += -Wall -Werror -O3 -fno-strict-aliasing +CFLAGS += -Werror -O3 -fno-strict-aliasing CFLAGS += $(INCLUDES) # Make gcc generate dependencies. diff --git a/tools/xenmon/Makefile b/tools/xenmon/Makefile index 6ff8391f9c..ffdca8049e 100644 --- a/tools/xenmon/Makefile +++ b/tools/xenmon/Makefile @@ -20,7 +20,7 @@ sbindir=/usr/sbin XEN_ROOT=../.. include $(XEN_ROOT)/tools/Rules.mk -CFLAGS += -Wall -Werror -g +CFLAGS += -Werror -g CFLAGS += -I $(XEN_XC) CFLAGS += -I $(XEN_LIBXC) LDFLAGS += -L $(XEN_LIBXC) diff --git a/tools/xentrace/Makefile b/tools/xentrace/Makefile index e814d0f2e8..8179695fb5 100644 --- a/tools/xentrace/Makefile +++ b/tools/xentrace/Makefile @@ -6,7 +6,7 @@ INSTALL_DATA = $(INSTALL) -m0644 XEN_ROOT=../.. include $(XEN_ROOT)/tools/Rules.mk -CFLAGS += -Wall -Werror -O3 +CFLAGS += -Werror -O3 CFLAGS += -I $(XEN_XC) CFLAGS += -I $(XEN_LIBXC) diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk index f3597ee722..0cf48cd5da 100644 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -9,7 +9,7 @@ pae ?= n supervisor_mode_kernel ?= n CFLAGS += -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -CFLAGS += -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe +CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe CFLAGS += -I$(BASEDIR)/include CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default |