ia64/xen-unstable

view config/SunOS.mk @ 12938:b58670602d35

[POWERPC][XEN] Builtin cmdline dependency rule
Rebuild cmdline.o when the user changes the CMDLINE=X argument passed to
the make invocation. I couldn't find an example of another project that
handles this case properly, so I came up with this.
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Thu Oct 05 15:48:26 2006 -0500 (2006-10-05)
parents 4c2d9a2ef1b7
children 89d4e80cd1b7
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
12 SHELL = bash
14 INSTALL = ginstall
15 INSTALL_DIR = $(INSTALL) -d -m0755
16 INSTALL_DATA = $(INSTALL) -m0644
17 INSTALL_PROG = $(INSTALL) -m0755
19 LIB64DIR = lib/amd64
21 SOCKET_LIBS = -lsocket
22 CURSES_LIBS = -lcurses
23 SONAME_LDFLAG = -h
24 SHLIB_CFLAGS = -R /usr/sfw/$(LIBDIR) -shared
26 ifneq ($(debug),y)
27 # Optimisation flags are overridable
28 CFLAGS ?= -O2 -fno-omit-frame-pointer
29 else
30 # Less than -O1 produces bad code and large stack frames
31 CFLAGS ?= -O1 -fno-omit-frame-pointer
32 endif
34 CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__