debuggers.hg

annotate config/StdGNU.mk @ 21896:d4b48e743431

tools and Makefiles: introduce and use new SYSCONFIG_DIR variable

On SuSE the configuration files in /etc/sysconfig/ will be updated in
a smart way from templates found in /var/adm/fillup-templates/
Introduce new variable SYSCONFIG_DIR for Linux installations. Now
only one place needs patching, or it can be specified as option to
make(1).

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Olaf Hering <olaf@aepfle.de>
date Fri Jul 23 17:50:05 2010 +0100 (2010-07-23)
parents 50d33023051d
children d3de6f484610
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@20468 19 WGET ?= wget -c
keir@20468 20
keir@18447 21 INSTALL = install
kfraser@14314 22 INSTALL_DIR = $(INSTALL) -d -m0755 -p
kfraser@14314 23 INSTALL_DATA = $(INSTALL) -m0644 -p
kfraser@14314 24 INSTALL_PROG = $(INSTALL) -m0755 -p
kfraser@11844 25
keir@16823 26 PREFIX ?= /usr
keir@16826 27 BINDIR = $(PREFIX)/bin
keir@16825 28 INCLUDEDIR = $(PREFIX)/include
keir@16988 29 LIBLEAFDIR = lib
keir@19437 30 LIBLEAFDIR_x86_32 = lib
keir@16988 31 LIBLEAFDIR_x86_64 = lib64
keir@16988 32 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
keir@19437 33 LIBDIR_x86_32 = $(PREFIX)/$(LIBLEAFDIR_x86_32)
keir@16988 34 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
keir@19437 35 LIBEXEC = $(LIBDIR_x86_32)/xen/bin
keir@19513 36 SHAREDIR = $(PREFIX)/share
keir@19513 37 MANDIR = $(SHAREDIR)/man
keir@16829 38 MAN1DIR = $(MANDIR)/man1
keir@16829 39 MAN8DIR = $(MANDIR)/man8
keir@16828 40 SBINDIR = $(PREFIX)/sbin
keir@19851 41 XENFIRMWAREDIR = $(LIBDIR_x86_32)/xen/boot
kfraser@11844 42
keir@16937 43 PRIVATE_PREFIX = $(LIBDIR)/xen
keir@16937 44 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
keir@16937 45
keir@19666 46 ifeq ($(PREFIX),/usr)
keir@19666 47 CONFIG_DIR = /etc
keir@19666 48 else
keir@19666 49 CONFIG_DIR = $(PREFIX)/etc
keir@19666 50 endif
olaf@21896 51
olaf@21896 52 SYSCONFIG_DIR = $(CONFIG_DIR)/sysconfig
olaf@21896 53
keir@19666 54 XEN_CONFIG_DIR = $(CONFIG_DIR)/xen
keir@19666 55 XEN_SCRIPT_DIR = $(XEN_CONFIG_DIR)/scripts
keir@19666 56
kfraser@11844 57 SOCKET_LIBS =
kfraser@11844 58 CURSES_LIBS = -lncurses
keir@17070 59 PTHREAD_LIBS = -lpthread
keir@16117 60 UTIL_LIBS = -lutil
kfraser@11844 61 SONAME_LDFLAG = -soname
kfraser@11844 62 SHLIB_CFLAGS = -shared
kfraser@11844 63
kfraser@11844 64 ifneq ($(debug),y)
keir@17237 65 CFLAGS += -O2 -fomit-frame-pointer
kfraser@11844 66 else
kfraser@11844 67 # Less than -O1 produces bad code and large stack frames
keir@17237 68 CFLAGS += -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
kfraser@11844 69 endif