ia64/xen-unstable

changeset 9212:7e68bc2745af

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>
author kaf24@firebug.cl.cam.ac.uk
date Thu Mar 09 21:17:45 2006 +0100 (2006-03-09)
parents fbeb0a5b7219
children 85b34394c9a2
files Config.mk tools/blktap/Makefile tools/blktap/parallax/Makefile tools/blktap/ublkback/Makefile tools/console/Makefile tools/debugger/libxendebug/Makefile tools/debugger/pdb/Makefile tools/ioemu/Makefile tools/ioemu/target-i386-dm/Makefile tools/libxc/Makefile tools/misc/Makefile tools/misc/cpuperf/Makefile tools/misc/lomount/Makefile tools/misc/mbootpack/Makefile tools/misc/miniterm/Makefile tools/misc/nsplitd/Makefile tools/security/Makefile tools/vnet/libxutil/Makefile tools/vnet/vnetd/Makefile tools/vtpm/Rules.mk tools/vtpm_manager/Rules.mk tools/xcutils/Makefile tools/xenmon/Makefile tools/xentrace/Makefile xen/arch/x86/Rules.mk
line diff
     1.1 --- a/Config.mk	Thu Mar 09 16:24:57 2006 +0000
     1.2 +++ b/Config.mk	Thu Mar 09 21:17:45 2006 +0100
     1.3 @@ -40,6 +40,8 @@ endif
     1.4  
     1.5  test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2))
     1.6  
     1.7 +CFLAGS += -Wall
     1.8 +
     1.9  HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement)
    1.10  CFLAGS     += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)
    1.11  
     2.1 --- a/tools/blktap/Makefile	Thu Mar 09 16:24:57 2006 +0000
     2.2 +++ b/tools/blktap/Makefile	Thu Mar 09 21:17:45 2006 +0100
     2.3 @@ -22,7 +22,6 @@ LIBS     := -lpthread -lz
     2.4  SRCS     :=
     2.5  SRCS     += blktaplib.c xenbus.c blkif.c
     2.6  
     2.7 -CFLAGS   += -Wall
     2.8  CFLAGS   += -Werror
     2.9  CFLAGS   += -Wno-unused
    2.10  #CFLAGS   += -O3
     3.1 --- a/tools/blktap/parallax/Makefile	Thu Mar 09 16:24:57 2006 +0000
     3.2 +++ b/tools/blktap/parallax/Makefile	Thu Mar 09 21:17:45 2006 +0100
     3.3 @@ -31,7 +31,6 @@ VDI_TOOLS += vdi_fill
     3.4  VDI_TOOLS += vdi_tree
     3.5  VDI_TOOLS += vdi_validate
     3.6  
     3.7 -CFLAGS   += -Wall
     3.8  CFLAGS   += -Werror
     3.9  CFLAGS   += -Wno-unused
    3.10  #CFLAGS   += -O3
    3.11 @@ -58,7 +57,7 @@ parallax: $(PLX_SRCS)
    3.12  	$(CC) $(CFLAGS) -o parallax -L.. $(LDFLAGS) $(PLX_SRCS)
    3.13  
    3.14  ${VDI_TOOLS}: %: %.c $(VDI_SRCS)
    3.15 -	$(CC) $(CFLAGS) -g3 -o $@ $@.c $(LDFLAGS) $(VDI_SRCS)
    3.16 +	$(CC) $(CFLAGS) -o $@ $@.c $(LDFLAGS) $(VDI_SRCS)
    3.17  
    3.18  .PHONY: TAGS clean install rpm
    3.19 --include $(DEPS)
    3.20 \ No newline at end of file
    3.21 +-include $(DEPS)
     4.1 --- a/tools/blktap/ublkback/Makefile	Thu Mar 09 16:24:57 2006 +0000
     4.2 +++ b/tools/blktap/ublkback/Makefile	Thu Mar 09 21:17:45 2006 +0100
     4.3 @@ -9,7 +9,6 @@ INSTALL_PROG = $(INSTALL) -m0755
     4.4  IBIN         = ublkback
     4.5  INSTALL_DIR  = /usr/sbin
     4.6  
     4.7 -CFLAGS   += -Wall
     4.8  CFLAGS   += -Werror
     4.9  CFLAGS   += -Wno-unused
    4.10  #CFLAGS   += -O3
     5.1 --- a/tools/console/Makefile	Thu Mar 09 16:24:57 2006 +0000
     5.2 +++ b/tools/console/Makefile	Thu Mar 09 21:17:45 2006 +0100
     5.3 @@ -9,7 +9,7 @@ INSTALL         = install
     5.4  INSTALL_PROG    = $(INSTALL) -m0755
     5.5  INSTALL_DIR     = $(INSTALL) -d -m0755
     5.6  
     5.7 -CFLAGS  += -Wall -Werror -g3
     5.8 +CFLAGS  += -Werror -g
     5.9  
    5.10  CFLAGS  += -I $(XEN_LIBXC)
    5.11  CFLAGS  += -I $(XEN_XENSTORE)
     6.1 --- a/tools/debugger/libxendebug/Makefile	Thu Mar 09 16:24:57 2006 +0000
     6.2 +++ b/tools/debugger/libxendebug/Makefile	Thu Mar 09 21:17:45 2006 +0100
     6.3 @@ -14,7 +14,7 @@ include $(XEN_ROOT)/tools/Rules.mk
     6.4  
     6.5  SRCS     := xendebug.c
     6.6  
     6.7 -CFLAGS   += -Wall -Werror -O3 -fno-strict-aliasing
     6.8 +CFLAGS   += -Werror -O3 -fno-strict-aliasing
     6.9  CFLAGS   += $(INCLUDES) -I. -I$(XEN_ROOT)/tools/libxc
    6.10  # Get gcc to generate the dependencies for us.
    6.11  CFLAGS   += -Wp,-MD,.$(@F).d
     7.1 --- a/tools/debugger/pdb/Makefile	Thu Mar 09 16:24:57 2006 +0000
     7.2 +++ b/tools/debugger/pdb/Makefile	Thu Mar 09 21:17:45 2006 +0100
     7.3 @@ -20,7 +20,6 @@ INCLUDES   += -I ./linux-2.6-module
     7.4  INCLUDES   += -I $(OCAML_ROOT)/lib/ocaml
     7.5  
     7.6  CFLAGS     += $(INCLUDES)
     7.7 -CFLAGS     += -Wall
     7.8  CFLAGS     += -Werror
     7.9  CFLAGS     += -g
    7.10  
     8.1 --- a/tools/ioemu/Makefile	Thu Mar 09 16:24:57 2006 +0000
     8.2 +++ b/tools/ioemu/Makefile	Thu Mar 09 21:17:45 2006 +0100
     8.3 @@ -3,7 +3,7 @@ include $(XEN_ROOT)/tools/Rules.mk
     8.4  
     8.5  -include config-host.mak
     8.6  
     8.7 -CFLAGS+=-Wall -O2 -g -fno-strict-aliasing 
     8.8 +CFLAGS+=-O2 -g -fno-strict-aliasing 
     8.9  ifdef CONFIG_DARWIN
    8.10  CFLAGS+= -mdynamic-no-pic
    8.11  endif
     9.1 --- a/tools/ioemu/target-i386-dm/Makefile	Thu Mar 09 16:24:57 2006 +0000
     9.2 +++ b/tools/ioemu/target-i386-dm/Makefile	Thu Mar 09 21:17:45 2006 +0100
     9.3 @@ -13,7 +13,7 @@ ifdef CONFIG_USER_ONLY
     9.4  VPATH+=:$(SRC_PATH)/linux-user
     9.5  DEFINES+=-I$(SRC_PATH)/linux-user -I$(SRC_PATH)/linux-user/$(TARGET_ARCH)
     9.6  endif
     9.7 -CFLAGS+=-Wall -O2 -g -fno-strict-aliasing
     9.8 +CFLAGS+=-O2 -g -fno-strict-aliasing
     9.9  LDFLAGS=-g
    9.10  LIBS=
    9.11  HELPER_CFLAGS=$(CFLAGS)
    10.1 --- a/tools/libxc/Makefile	Thu Mar 09 16:24:57 2006 +0000
    10.2 +++ b/tools/libxc/Makefile	Thu Mar 09 21:17:45 2006 +0100
    10.3 @@ -48,7 +48,6 @@ BUILD_SRCS += xc_linux_save.c
    10.4  BUILD_SRCS += xc_hvm_build.c
    10.5  endif
    10.6  
    10.7 -CFLAGS   += -Wall
    10.8  CFLAGS   += -Werror
    10.9  CFLAGS   += -O3
   10.10  CFLAGS   += -fno-strict-aliasing
    11.1 --- a/tools/misc/Makefile	Thu Mar 09 16:24:57 2006 +0000
    11.2 +++ b/tools/misc/Makefile	Thu Mar 09 21:17:45 2006 +0100
    11.3 @@ -5,7 +5,7 @@ INSTALL_DIR	= $(INSTALL) -d -m0755
    11.4  XEN_ROOT=../..
    11.5  include $(XEN_ROOT)/tools/Rules.mk
    11.6  
    11.7 -CFLAGS   += -Wall -Werror -O3 
    11.8 +CFLAGS   += -Werror -O3 
    11.9  
   11.10  INCLUDES += -I $(XEN_XC)
   11.11  INCLUDES += -I $(XEN_LIBXC)
    12.1 --- a/tools/misc/cpuperf/Makefile	Thu Mar 09 16:24:57 2006 +0000
    12.2 +++ b/tools/misc/cpuperf/Makefile	Thu Mar 09 21:17:45 2006 +0100
    12.3 @@ -17,7 +17,7 @@ INSTALL_DIR	= $(INSTALL) -d -m0755
    12.4  XEN_ROOT=../../..
    12.5  include $(XEN_ROOT)/tools/Rules.mk
    12.6  
    12.7 -CFLAGS      += -Wall -O3 
    12.8 +CFLAGS      += -O3 
    12.9  
   12.10  HDRS         = $(wildcard *.h)
   12.11  SRCS         = $(wildcard *.c)
    13.1 --- a/tools/misc/lomount/Makefile	Thu Mar 09 16:24:57 2006 +0000
    13.2 +++ b/tools/misc/lomount/Makefile	Thu Mar 09 21:17:45 2006 +0100
    13.3 @@ -6,7 +6,7 @@ INSTALL_DATA	= $(INSTALL) -m0644
    13.4  XEN_ROOT=../../..
    13.5  include $(XEN_ROOT)/tools/Rules.mk
    13.6  
    13.7 -CFLAGS  += -Wall -Werror -O3
    13.8 +CFLAGS  += -Werror -O3
    13.9  
   13.10  HDRS     = $(wildcard *.h)
   13.11  OBJS     = $(patsubst %.c,%.o,$(wildcard *.c))
    14.1 --- a/tools/misc/mbootpack/Makefile	Thu Mar 09 16:24:57 2006 +0000
    14.2 +++ b/tools/misc/mbootpack/Makefile	Thu Mar 09 21:17:45 2006 +0100
    14.3 @@ -20,7 +20,7 @@ GDB	:= gdb
    14.4  INCS	:= -I. -I-
    14.5  DEFS	:= 
    14.6  LDFLAGS	:= 
    14.7 -CFLAGS	:= -Wall -Wpointer-arith -Wcast-qual -Wno-unused -Wno-format
    14.8 +CFLAGS	+= -Wpointer-arith -Wcast-qual -Wno-unused -Wno-format
    14.9  CFLAGS	+= -Wmissing-prototypes
   14.10  #CFLAGS	+= -pipe -g -O0 -Wcast-align
   14.11  CFLAGS	+= -pipe -O3 
    15.1 --- a/tools/misc/miniterm/Makefile	Thu Mar 09 16:24:57 2006 +0000
    15.2 +++ b/tools/misc/miniterm/Makefile	Thu Mar 09 21:17:45 2006 +0100
    15.3 @@ -1,9 +1,10 @@
    15.4 +XEN_ROOT:=../../..
    15.5 +include $(XEN_ROOT)/tools/Rules.mk
    15.6 +
    15.7  INSTALL		= install
    15.8  INSTALL_PROG	= $(INSTALL) -m0755
    15.9  INSTALL_DIR	= $(INSTALL) -d -m0755
   15.10  
   15.11 -CC     = gcc
   15.12 -CFLAGS = -Wall -O3
   15.13  TARGET = miniterm
   15.14  
   15.15  all: $(TARGET)
   15.16 @@ -16,4 +17,4 @@ clean:
   15.17  	$(RM) *.o $(TARGET) *~
   15.18  
   15.19  $(TARGET): $(TARGET).c
   15.20 -	$(CC) $(CFLAGS) -o $@ $<
   15.21 +	$(HOSTCC) $(HOSTCFLAGS) -o $@ $<
    16.1 --- a/tools/misc/nsplitd/Makefile	Thu Mar 09 16:24:57 2006 +0000
    16.2 +++ b/tools/misc/nsplitd/Makefile	Thu Mar 09 21:17:45 2006 +0100
    16.3 @@ -1,6 +1,6 @@
    16.4 +XEN_ROOT := ../../..
    16.5 +include $(XEN_ROOT)/tools/Rules.mk
    16.6  
    16.7 -CC     = gcc
    16.8 -CFLAGS = -Wall -O3
    16.9  CFILES = $(wildcard *.c)
   16.10  
   16.11  HDRS     = $(wildcard *.h)
   16.12 @@ -16,7 +16,7 @@ clean:
   16.13  	$(RM) *.o $(TARGET) *~
   16.14  
   16.15  $(TARGET): $(OBJS)
   16.16 -	$(CC) $(CFLAGS) -o $@ $^
   16.17 +	$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
   16.18  
   16.19  %.o: %.c $(HDRS) Makefile
   16.20 -	$(CC) $(CFLAGS) -c -o $@ $<
   16.21 +	$(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
    17.1 --- a/tools/security/Makefile	Thu Mar 09 16:24:57 2006 +0000
    17.2 +++ b/tools/security/Makefile	Thu Mar 09 21:17:45 2006 +0100
    17.3 @@ -1,7 +1,6 @@
    17.4  XEN_ROOT = ../..
    17.5  include $(XEN_ROOT)/tools/Rules.mk
    17.6  
    17.7 -CFLAGS   += -Wall
    17.8  CFLAGS   += -Werror
    17.9  CFLAGS   += -O3
   17.10  CFLAGS   += -fno-strict-aliasing
    18.1 --- a/tools/vnet/libxutil/Makefile	Thu Mar 09 16:24:57 2006 +0000
    18.2 +++ b/tools/vnet/libxutil/Makefile	Thu Mar 09 21:17:45 2006 +0100
    18.3 @@ -29,8 +29,7 @@ LIB_SRCS += util.c
    18.4  LIB_OBJS := $(LIB_SRCS:.c=.o)
    18.5  PIC_OBJS := $(LIB_SRCS:.c=.opic)
    18.6  
    18.7 -CFLAGS   += -Wall -Werror -O3 -fno-strict-aliasing
    18.8 -CFLAGS   += -g
    18.9 +CFLAGS   += -Werror -O3 -fno-strict-aliasing -g
   18.10  
   18.11  # Get gcc to generate the dependencies for us.
   18.12  CFLAGS   += -Wp,-MD,.$(@F).d
    19.1 --- a/tools/vnet/vnetd/Makefile	Thu Mar 09 16:24:57 2006 +0000
    19.2 +++ b/tools/vnet/vnetd/Makefile	Thu Mar 09 21:17:45 2006 +0100
    19.3 @@ -44,7 +44,6 @@ CPPFLAGS += -D __ARCH_I386_ATOMIC__
    19.4  #----------------------------------------------------------------------------
    19.5  CFLAGS += -g
    19.6  CFLAGS += -O2
    19.7 -CFLAGS += -Wall
    19.8  CFLAGS += $(INCLUDES) $(LIBS)
    19.9  
   19.10  LDFLAGS += $(LIBS)
    20.1 --- a/tools/vtpm/Rules.mk	Thu Mar 09 16:24:57 2006 +0000
    20.2 +++ b/tools/vtpm/Rules.mk	Thu Mar 09 21:17:45 2006 +0100
    20.3 @@ -14,7 +14,7 @@ INSTALL_DIR     = $(INSTALL) -d -m0755
    20.4  TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
    20.5  
    20.6  # General compiler flags
    20.7 -CFLAGS   = -Wall -Werror -g3 -I.
    20.8 +CFLAGS   = -Werror -g3 -I.
    20.9  
   20.10  # For generating dependencies
   20.11  CFLAGS	+= -Wp,-MD,.$(@F).d
    21.1 --- a/tools/vtpm_manager/Rules.mk	Thu Mar 09 16:24:57 2006 +0000
    21.2 +++ b/tools/vtpm_manager/Rules.mk	Thu Mar 09 21:17:45 2006 +0100
    21.3 @@ -14,7 +14,7 @@ INSTALL_DIR     = $(INSTALL) -d -m0755
    21.4  TOOLS_INSTALL_DIR = $(DESTDIR)/usr/bin
    21.5  
    21.6  # General compiler flags
    21.7 -CFLAGS	= -Wall -Werror -g3 -I.
    21.8 +CFLAGS	= -Werror -g3 -I.
    21.9  
   21.10  # For generating dependencies
   21.11  CFLAGS	+= -Wp,-MD,.$(@F).d
    22.1 --- a/tools/xcutils/Makefile	Thu Mar 09 16:24:57 2006 +0000
    22.2 +++ b/tools/xcutils/Makefile	Thu Mar 09 21:17:45 2006 +0100
    22.3 @@ -19,7 +19,7 @@ PROGRAMS_INSTALL_DIR = /usr/$(LIBDIR)/xe
    22.4  
    22.5  INCLUDES += -I $(XEN_LIBXC)
    22.6  
    22.7 -CFLAGS += -Wall -Werror -O3 -fno-strict-aliasing
    22.8 +CFLAGS += -Werror -O3 -fno-strict-aliasing
    22.9  CFLAGS += $(INCLUDES)
   22.10  
   22.11  # Make gcc generate dependencies.
    23.1 --- a/tools/xenmon/Makefile	Thu Mar 09 16:24:57 2006 +0000
    23.2 +++ b/tools/xenmon/Makefile	Thu Mar 09 21:17:45 2006 +0100
    23.3 @@ -20,7 +20,7 @@ sbindir=/usr/sbin
    23.4  XEN_ROOT=../..
    23.5  include $(XEN_ROOT)/tools/Rules.mk
    23.6  
    23.7 -CFLAGS += -Wall -Werror -g
    23.8 +CFLAGS  += -Werror -g
    23.9  CFLAGS  += -I $(XEN_XC)
   23.10  CFLAGS  += -I $(XEN_LIBXC)
   23.11  LDFLAGS += -L $(XEN_LIBXC)
    24.1 --- a/tools/xentrace/Makefile	Thu Mar 09 16:24:57 2006 +0000
    24.2 +++ b/tools/xentrace/Makefile	Thu Mar 09 21:17:45 2006 +0100
    24.3 @@ -6,7 +6,7 @@ INSTALL_DATA	= $(INSTALL) -m0644
    24.4  XEN_ROOT=../..
    24.5  include $(XEN_ROOT)/tools/Rules.mk
    24.6  
    24.7 -CFLAGS  += -Wall -Werror -O3
    24.8 +CFLAGS  += -Werror -O3
    24.9  
   24.10  CFLAGS  += -I $(XEN_XC)
   24.11  CFLAGS  += -I $(XEN_LIBXC)
    25.1 --- a/xen/arch/x86/Rules.mk	Thu Mar 09 16:24:57 2006 +0000
    25.2 +++ b/xen/arch/x86/Rules.mk	Thu Mar 09 21:17:45 2006 +0100
    25.3 @@ -9,7 +9,7 @@ pae ?= n
    25.4  supervisor_mode_kernel ?= n
    25.5  
    25.6  CFLAGS  += -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
    25.7 -CFLAGS  += -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe
    25.8 +CFLAGS  += -iwithprefix include -Werror -Wno-pointer-arith -pipe
    25.9  CFLAGS  += -I$(BASEDIR)/include 
   25.10  CFLAGS  += -I$(BASEDIR)/include/asm-x86/mach-generic
   25.11  CFLAGS  += -I$(BASEDIR)/include/asm-x86/mach-default