debuggers.hg

annotate config/StdGNU.mk @ 19666: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
rev   line source
kfraser@11844 1 AS = $(CROSS_COMPILE)as
kfraser@11844 2 LD = $(CROSS_COMPILE)ld
kfraser@11844 3 CC = $(CROSS_COMPILE)gcc
ewan@14569 4 CPP = $(CC) -E
kfraser@11844 5 AR = $(CROSS_COMPILE)ar
kfraser@11844 6 RANLIB = $(CROSS_COMPILE)ranlib
kfraser@11844 7 NM = $(CROSS_COMPILE)nm
kfraser@11844 8 STRIP = $(CROSS_COMPILE)strip
kfraser@11844 9 OBJCOPY = $(CROSS_COMPILE)objcopy
kfraser@11844 10 OBJDUMP = $(CROSS_COMPILE)objdump
keir@16994 11 SIZEUTIL = $(CROSS_COMPILE)size
kfraser@11844 12
kaf24@13228 13 MSGFMT = msgfmt
tom@14902 14 MSGMERGE = msgmerge
kaf24@13228 15
keir@17991 16 # Allow git to be wrappered in the environment
keir@17991 17 GIT ?= git
keir@17991 18
keir@18447 19 INSTALL = install
kfraser@14314 20 INSTALL_DIR = $(INSTALL) -d -m0755 -p
kfraser@14314 21 INSTALL_DATA = $(INSTALL) -m0644 -p
kfraser@14314 22 INSTALL_PROG = $(INSTALL) -m0755 -p
kfraser@11844 23
keir@16823 24 PREFIX ?= /usr
keir@16826 25 BINDIR = $(PREFIX)/bin
keir@16825 26 INCLUDEDIR = $(PREFIX)/include
keir@16988 27 LIBLEAFDIR = lib
keir@19437 28 LIBLEAFDIR_x86_32 = lib
keir@16988 29 LIBLEAFDIR_x86_64 = lib64
keir@16988 30 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
keir@19437 31 LIBDIR_x86_32 = $(PREFIX)/$(LIBLEAFDIR_x86_32)
keir@16988 32 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
keir@19437 33 LIBEXEC = $(LIBDIR_x86_32)/xen/bin
keir@19513 34 SHAREDIR = $(PREFIX)/share
keir@19513 35 MANDIR = $(SHAREDIR)/man
keir@16829 36 MAN1DIR = $(MANDIR)/man1
keir@16829 37 MAN8DIR = $(MANDIR)/man8
keir@16828 38 SBINDIR = $(PREFIX)/sbin
kfraser@11844 39
keir@16937 40 PRIVATE_PREFIX = $(LIBDIR)/xen
keir@16937 41 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
keir@16937 42
keir@19666 43 ifeq ($(PREFIX),/usr)
keir@19666 44 CONFIG_DIR = /etc
keir@19666 45 else
keir@19666 46 CONFIG_DIR = $(PREFIX)/etc
keir@19666 47 endif
keir@19666 48 XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
keir@19666 49 XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
keir@19666 50
kfraser@11844 51 SOCKET_LIBS =
kfraser@11844 52 CURSES_LIBS = -lncurses
keir@17070 53 PTHREAD_LIBS = -lpthread
keir@16117 54 UTIL_LIBS = -lutil
kfraser@11844 55 SONAME_LDFLAG = -soname
kfraser@11844 56 SHLIB_CFLAGS = -shared
kfraser@11844 57
kfraser@11844 58 ifneq ($(debug),y)
keir@17237 59 CFLAGS += -O2 -fomit-frame-pointer
kfraser@11844 60 else
kfraser@11844 61 # Less than -O1 produces bad code and large stack frames
keir@17237 62 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
kfraser@11844 63 endif