aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Rules.mk
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-03-23 15:50:29 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-03-23 15:50:29 +0000
commit4730c179434b9f410eebfaf9bc00079401a3e98e (patch)
treed56ec384f9f73f0f0bb55cfe29eaf6d627738cdc /tools/Rules.mk
parent5d3ae471f90b134a62c283fda208425471ec199f (diff)
downloadxen-4730c179434b9f410eebfaf9bc00079401a3e98e.tar.gz
xen-4730c179434b9f410eebfaf9bc00079401a3e98e.tar.bz2
xen-4730c179434b9f410eebfaf9bc00079401a3e98e.zip
tools: provide generic rules for compiling .S files
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>
Diffstat (limited to 'tools/Rules.mk')
-rw-r--r--tools/Rules.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/Rules.mk b/tools/Rules.mk
index 49eacb7921..c1a5e053b0 100644
--- a/tools/Rules.mk
+++ b/tools/Rules.mk
@@ -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; \