debuggers.hg

view config/StdGNU.mk @ 22906:700ac6445812

Now add KDB to the non-kdb tree
author Mukesh Rathor
date Thu Feb 03 15:42:41 2011 -0800 (2011-02-03)
parents 5d78193d67d1
children
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 WGET ?= wget -c
21 INSTALL = install
22 INSTALL_DIR = $(INSTALL) -d -m0755 -p
23 INSTALL_DATA = $(INSTALL) -m0644 -p
24 INSTALL_PROG = $(INSTALL) -m0755 -p
26 PREFIX ?= /usr
27 BINDIR = $(PREFIX)/bin
28 INCLUDEDIR = $(PREFIX)/include
29 LIBLEAFDIR = lib
30 LIBLEAFDIR_x86_32 = lib
31 LIBLEAFDIR_x86_64 ?= lib64
32 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
33 LIBDIR_x86_32 = $(PREFIX)/$(LIBLEAFDIR_x86_32)
34 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
35 LIBEXEC = $(LIBDIR_x86_32)/xen/bin
36 SHAREDIR = $(PREFIX)/share
37 MANDIR = $(SHAREDIR)/man
38 MAN1DIR = $(MANDIR)/man1
39 MAN8DIR = $(MANDIR)/man8
40 SBINDIR = $(PREFIX)/sbin
41 XENFIRMWAREDIR = $(LIBDIR_x86_32)/xen/boot
43 PRIVATE_PREFIX = $(LIBDIR)/xen
44 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
46 ifeq ($(PREFIX),/usr)
47 CONFIG_DIR = /etc
48 XEN_LOCK_DIR = /var/lock
49 else
50 CONFIG_DIR = $(PREFIX)/etc
51 XEN_LOCK_DIR = $(PREFIX)/var/lock
52 endif
54 SYSCONFIG_DIR = $(CONFIG_DIR)/$(CONFIG_LEAF_DIR)
56 XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
57 XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
59 SOCKET_LIBS =
60 CURSES_LIBS = -lncurses
61 PTHREAD_LIBS = -lpthread
62 UTIL_LIBS = -lutil
63 DLOPEN_LIBS = -ldl
65 SONAME_LDFLAG = -soname
66 SHLIB_LDFLAGS = -shared
68 ifneq ($(debug),y)
69 CFLAGS += -O2 -fomit-frame-pointer
70 else
71 # Less than -O1 produces bad code and large stack frames
72 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
73 endif