|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 23 of 30] tools: provide generic rules for compiling
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1300718506 0
# Node ID b298aa44524e9c36619eb00bffaa37f36c68acce
# Parent 6bce01ea806f9fc0a2cd9ceb5ca0e11b179a38b3
tools: provide generic rules for compiling .S files
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 6bce01ea806f -r b298aa44524e tools/Rules.mk
--- a/tools/Rules.mk Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/Rules.mk Mon Mar 21 14:41:46 2011 +0000
@@ -89,6 +89,11 @@ INSTALL_PYTHON_PROG = \
%.o: %.cc
$(CC) $(CPPFLAGS) $(CXXFLAGS) $(CXXFLAGS_$*.o) -c -o $@ $<
+%.o: %.S
+ $(CC) $(CFLAGS) $(CFLAGS_$*.o) -c $< -o $@
+%.opic: %.S
+ $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) $(CFLAGS.opic) -fPIC -c -o $@ $<
+
subdirs-all subdirs-clean subdirs-install subdirs-distclean: .phony
@set -e; for subdir in $(SUBDIRS) $(SUBDIRS-y); do \
$(MAKE) subdir-$(patsubst subdirs-%,%,$@)-$$subdir; \
diff -r 6bce01ea806f -r b298aa44524e tools/libxc/ia64/Makefile
--- a/tools/libxc/ia64/Makefile Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/libxc/ia64/Makefile Mon Mar 21 14:41:46 2011 +0000
@@ -16,13 +16,7 @@ DOMFW_SRCS := $(addprefix ia64/, $(DOMFW
$(DOMFW_SRCS):
ln -sf $(XEN_ROOT)/xen/arch/ia64/xen/$(@F) $@
-# XXX kludge: libxc/Makefile doesn't understand .S.
GUEST_SRCS-y += $(patsubst %.S, %.c, $(DOMFW_SRCS))
-%.o: %.S
- $(CC) $(CFLAGS) -c $< -o $@
-%.opic: %.S
- $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
-
CFLAGS += -Iia64
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 12 of 30] tools: consistently use $({CFLAGS, LDLIBS}_libxenstore) instead of open coding, (continued)
- [Xen-devel] [PATCH 12 of 30] tools: consistently use $({CFLAGS, LDLIBS}_libxenstore) instead of open coding, Ian Campbell
- [Xen-devel] [PATCH 15 of 30] tools: Drop $(X11_LDPATH) from build, Ian Campbell
- [Xen-devel] [PATCH 07 of 30] tools: remove unnecessary uses of -I, Ian Campbell
- [Xen-devel] [PATCH 17 of 30] tools: ocaml: link xl bindings against libxl, Ian Campbell
- [Xen-devel] [PATCH 18 of 30] tools: ocaml: link evtchn bindings against libxenctrl, Ian Campbell
- [Xen-devel] [PATCH 16 of 30] tools: allow Makefiles to define CFLAGS_foo.o, Ian Campbell
- [Xen-devel] [PATCH 19 of 30] tools: users of libxl currently need to see libxc and libxenstore headers, Ian Campbell
- [Xen-devel] [PATCH 20 of 30] tools: ocaml: push CFLAGS usage down into the specific bindings, Ian Campbell
- [Xen-devel] [PATCH 21 of 30] tools: flask: Remove BASECFLAGS, just use CFLAGS, Ian Campbell
- [Xen-devel] [PATCH 22 of 30] tools: flask: remove $(LOADLIBES), Ian Campbell
- [Xen-devel] [PATCH 23 of 30] tools: provide generic rules for compiling .S files,
Ian Campbell <=
- [Xen-devel] [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line, Ian Campbell
- [Xen-devel] [PATCH 26 of 30] libxl: drop protype for libxl_ctx_set_log, Ian Campbell
- [Xen-devel] [PATCH 27 of 30] libxl: remove XS transaction from public API, Ian Campbell
- [Xen-devel] [PATCH 29 of 30] tools: drop further uses of -Wp, -MD, .$(@F).d to generate dependencies, Ian Campbell
- [Xen-devel] [PATCH 24 of 30] tools: Remove $(CFLAGS) from links lines, Ian Campbell
- [Xen-devel] [PATCH 30 of 30] tools: remove pattern matched linking rules, Ian Campbell
- [Xen-devel] [PATCH 28 of 30] libxl: do not expose libxenctrl/libxenstore headers via libxl.h, Ian Campbell
- Re: [Xen-devel] [PATCH 00 of 30] tools: shave build yaks, Ian Jackson
- Re: [Xen-devel] [PATCH 00 of 30] tools: shave build yaks, Olaf Hering
|
|
|
|
|