ia64/xen-unstable

view config/Linux.mk @ 11865:bd207697f0c7

Avoid need for GREP variable by avoiding GNUisms. The
only one we appear to have is use of '-q'. Replace it
with redirection to /dev/null.

Also avoid use of 'tail' by replacing with 'head' or
'grep' as appropriate.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Oct 18 13:43:35 2006 +0100 (2006-10-18)
parents 1e6d52d06fa4
children 3409c35a0b0e
line source
1 # -*- mode: Makefile; -*-
3 AS = $(CROSS_COMPILE)as
4 LD = $(CROSS_COMPILE)ld
5 CC = $(CROSS_COMPILE)gcc
6 CPP = $(CROSS_COMPILE)gcc -E
7 AR = $(CROSS_COMPILE)ar
8 RANLIB = $(CROSS_COMPILE)ranlib
9 NM = $(CROSS_COMPILE)nm
10 STRIP = $(CROSS_COMPILE)strip
11 OBJCOPY = $(CROSS_COMPILE)objcopy
12 OBJDUMP = $(CROSS_COMPILE)objdump
14 INSTALL = install
15 INSTALL_DIR = $(INSTALL) -d -m0755
16 INSTALL_DATA = $(INSTALL) -m0644
17 INSTALL_PROG = $(INSTALL) -m0755
19 LIB64DIR = lib64
21 SOCKET_LIBS =
22 CURSES_LIBS = -lncurses
23 SONAME_LDFLAG = -soname
24 SHLIB_CFLAGS = -shared
26 ifneq ($(debug),y)
27 # Optimisation flags are overridable
28 CFLAGS ?= -O2 -fomit-frame-pointer
29 else
30 # Less than -O1 produces bad code and large stack frames
31 CFLAGS ?= -O1 -fno-omit-frame-pointer
32 endif
34 # You may use wildcards, e.g. KERNELS=*2.6*
35 KERNELS ?= linux-2.6-xen
37 XKERNELS := $(foreach kernel, $(KERNELS), \
38 $(patsubst buildconfigs/mk.%,%, \
39 $(wildcard buildconfigs/mk.$(kernel))) )