|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-unstable] tools: provide generic rules for	compilin
 
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1300895429 0
# Node ID 8e5a9ad6f820e6f551c94b6c0138c9b8795272ed
# Parent  3c2c593bac4b79cea1771ff58012bdcb07b6f530
tools: provide generic rules for compiling .S files
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
diff -r 3c2c593bac4b -r 8e5a9ad6f820 tools/Rules.mk
--- a/tools/Rules.mk    Wed Mar 23 15:42:48 2011 +0000
+++ b/tools/Rules.mk    Wed Mar 23 15:50:29 2011 +0000
@@ -89,6 +89,11 @@
 %.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 3c2c593bac4b -r 8e5a9ad6f820 tools/libxc/ia64/Makefile
--- a/tools/libxc/ia64/Makefile Wed Mar 23 15:42:48 2011 +0000
+++ b/tools/libxc/ia64/Makefile Wed Mar 23 15:50:29 2011 +0000
@@ -16,13 +16,7 @@
 $(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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] [xen-unstable] tools: provide generic rules for	compiling .S files,
Xen patchbot-unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |