mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Introduce Makefile config fragments for OS-specific differences.
Signed-off-by: John Levon <john.levon@sun.com>
This commit is contained in:
1 parent
6f007b178f
commit
a278bc0ea1
7 files changed
+78
-38
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# -*- mode: Makefile; -*-
|
||||
|
||||
AS = $(CROSS_COMPILE)as
|
||||
LD = $(CROSS_COMPILE)ld
|
||||
CC = $(CROSS_COMPILE)gcc
|
||||
CPP = $(CROSS_COMPILE)gcc -E
|
||||
AR = $(CROSS_COMPILE)ar
|
||||
RANLIB = $(CROSS_COMPILE)ranlib
|
||||
NM = $(CROSS_COMPILE)nm
|
||||
STRIP = $(CROSS_COMPILE)strip
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
OBJDUMP = $(CROSS_COMPILE)objdump
|
||||
|
||||
INSTALL = install
|
||||
INSTALL_DIR = $(INSTALL) -d -m0755
|
||||
INSTALL_DATA = $(INSTALL) -m0644
|
||||
INSTALL_PROG = $(INSTALL) -m0755
|
||||
|
||||
LIB64DIR = lib64
|
||||
|
||||
ifneq ($(debug),y)
|
||||
# Optimisation flags are overridable
|
||||
CFLAGS ?= -O2 -fomit-frame-pointer
|
||||
else
|
||||
# Less than -O1 produces bad code and large stack frames
|
||||
CFLAGS ?= -O1 -fno-omit-frame-pointer
|
||||
endif
|
||||
|
||||
# You may use wildcards, e.g. KERNELS=*2.6*
|
||||
KERNELS ?= linux-2.6-xen
|
||||
|
||||
XKERNELS := $(foreach kernel, $(KERNELS), \
|
||||
$(patsubst buildconfigs/mk.%,%, \
|
||||
$(wildcard buildconfigs/mk.$(kernel))) )
|
||||