From 4730c179434b9f410eebfaf9bc00079401a3e98e Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 23 Mar 2011 15:50:29 +0000 Subject: tools: provide generic rules for compiling .S files Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/Rules.mk | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/Rules.mk') 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; \ -- cgit v1.2.3