ia64/xen-unstable

view config/StdGNU.mk @ 19628:23f9857f642f

tools: get rid of hardcoded config dirs

Remove *all* hardcoded "/etc/xen" strings in python code.

Additionally, it removes pygrub_path from osdep.py. Its use has been
replaced with auxbin.pathTo("pygrub").

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed May 20 15:27:30 2009 +0100 (2009-05-20)
parents b3daeb123b6f
children b55070edb185
line source
1 AS = $(CROSS_COMPILE)as
2 LD = $(CROSS_COMPILE)ld
3 CC = $(CROSS_COMPILE)gcc
4 CPP = $(CC) -E
5 AR = $(CROSS_COMPILE)ar
6 RANLIB = $(CROSS_COMPILE)ranlib
7 NM = $(CROSS_COMPILE)nm
8 STRIP = $(CROSS_COMPILE)strip
9 OBJCOPY = $(CROSS_COMPILE)objcopy
10 OBJDUMP = $(CROSS_COMPILE)objdump
11 SIZEUTIL = $(CROSS_COMPILE)size
13 MSGFMT = msgfmt
14 MSGMERGE = msgmerge
16 # Allow git to be wrappered in the environment
17 GIT ?= git
19 INSTALL = install
20 INSTALL_DIR = $(INSTALL) -d -m0755 -p
21 INSTALL_DATA = $(INSTALL) -m0644 -p
22 INSTALL_PROG = $(INSTALL) -m0755 -p
24 PREFIX ?= /usr
25 BINDIR = $(PREFIX)/bin
26 INCLUDEDIR = $(PREFIX)/include
27 LIBLEAFDIR = lib
28 LIBLEAFDIR_x86_32 = lib
29 LIBLEAFDIR_x86_64 = lib64
30 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
31 LIBDIR_x86_32 = $(PREFIX)/$(LIBLEAFDIR_x86_32)
32 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
33 LIBEXEC = $(LIBDIR_x86_32)/xen/bin
34 SHAREDIR = $(PREFIX)/share
35 MANDIR = $(SHAREDIR)/man
36 MAN1DIR = $(MANDIR)/man1
37 MAN8DIR = $(MANDIR)/man8
38 SBINDIR = $(PREFIX)/sbin
40 PRIVATE_PREFIX = $(LIBDIR)/xen
41 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
43 ifeq ($(PREFIX),/usr)
44 CONFIG_DIR = /etc
45 else
46 CONFIG_DIR = $(PREFIX)/etc
47 endif
48 XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
49 XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
51 SOCKET_LIBS =
52 CURSES_LIBS = -lncurses
53 PTHREAD_LIBS = -lpthread
54 UTIL_LIBS = -lutil
55 SONAME_LDFLAG = -soname
56 SHLIB_CFLAGS = -shared
58 ifneq ($(debug),y)
59 CFLAGS += -O2 -fomit-frame-pointer
60 else
61 # Less than -O1 produces bad code and large stack frames
62 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
63 endif