]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
tools: provide generic rules for compiling .S files
authorIan Campbell <ian.campbell@citrix.com>
Wed, 23 Mar 2011 15:50:29 +0000 (15:50 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 23 Mar 2011 15:50:29 +0000 (15:50 +0000)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/Rules.mk
tools/libxc/ia64/Makefile

index 49eacb7921509f71b759493c2276b2f61c244b25..c1a5e053b0525bc10521ddfe70790fed1310cde5 100644 (file)
@@ -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; \
index 9d4d5ebc77763ba3b39f16f4ede550dc018eec3a..81f472a78d01169e96be34fb05bf38ee7ab8fea3 100644 (file)
@@ -16,13 +16,7 @@ DOMFW_SRCS := $(addprefix ia64/, $(DOMFW_SRCS_BASE))
 $(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