ia64/xen-unstable

view config/SunOS.mk @ 17135:368d3774a4b5

Fix libxenstat on Solaris

Recent Solaris enhancements have changed the way virtual NIC
statistics are collected - fix libxenstat up for this.

Signed-off-by: John Levon <john.levon@sun.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 27 13:10:42 2008 +0000 (2008-02-27)
parents 7e91007fa727
children b0fe56f7b190
line source
1 AS = $(CROSS_COMPILE)gas
2 LD = $(CROSS_COMPILE)gld
3 CC = $(CROSS_COMPILE)gcc
4 CPP = $(CROSS_COMPILE)gcc -E
5 AR = $(CROSS_COMPILE)gar
6 RANLIB = $(CROSS_COMPILE)granlib
7 NM = $(CROSS_COMPILE)gnm
8 STRIP = $(CROSS_COMPILE)gstrip
9 OBJCOPY = $(CROSS_COMPILE)gobjcopy
10 OBJDUMP = $(CROSS_COMPILE)gobjdump
11 SIZEUTIL = $(CROSS_COMPILE)gsize
13 MSGFMT = gmsgfmt
15 SHELL = bash
17 INSTALL = ginstall
18 INSTALL_DIR = $(INSTALL) -d -m0755 -p
19 INSTALL_DATA = $(INSTALL) -m0644 -p
20 INSTALL_PROG = $(INSTALL) -m0755 -p
22 PREFIX ?= /usr
23 BINDIR = $(PREFIX)/bin
24 INCLUDEDIR = $(PREFIX)/include
25 LIBLEAFDIR = lib
26 LIBLEAFDIR_x86_64 = lib/amd64
27 LIBDIR = $(PREFIX)/$(LIBLEAFDIR)
28 LIBDIR_x86_64 = $(PREFIX)/$(LIBLEAFDIR_x86_64)
29 MANDIR = $(PREFIX)/share/man
30 MAN1DIR = $(MANDIR)/man1
31 MAN8DIR = $(MANDIR)/man8
32 SBINDIR = $(PREFIX)/sbin
34 PRIVATE_PREFIX = $(LIBDIR)/xen
35 PRIVATE_BINDIR = $(PRIVATE_PREFIX)/bin
37 SunOS_LIBDIR = /usr/sfw/lib
38 SunOS_LIBDIR_x86_64 = /usr/sfw/lib/amd64
40 SOCKET_LIBS = -lsocket
41 CURSES_LIBS = -lcurses
42 PTHREAD_LIBS = -lpthread
43 UTIL_LIBS =
44 SONAME_LDFLAG = -h
45 SHLIB_CFLAGS = -R $(SunOS_LIBDIR) -shared
47 ifneq ($(debug),y)
48 # Optimisation flags are overridable
49 CFLAGS ?= -O2 -fno-omit-frame-pointer
50 else
51 # Less than -O1 produces bad code and large stack frames
52 CFLAGS ?= -O1 -fno-omit-frame-pointer
53 endif
55 CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__