From 72bbc4ff73e667adab3e4cdcf1b1ed5022456e28 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 23 Mar 2011 15:22:10 +0000 Subject: tools: allow Makefiles to define CFLAGS_foo.o To provide per-file flags. Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/Rules.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/Rules.mk') diff --git a/tools/Rules.mk b/tools/Rules.mk index a86e59fe78..db109acd6c 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -81,13 +81,13 @@ INSTALL_PYTHON_PROG = \ $(XEN_ROOT)/tools/python/install-wrap "$(PYTHON_PATH)" $(INSTALL_PROG) %.opic: %.c - $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $< + $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) $(CFLAGS_$*.opic) -fPIC -c -o $@ $< %.o: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$*.o) -c -o $@ $< %.o: %.cc - $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CXXFLAGS) $(CXXFLAGS_$*.o) -c -o $@ $< subdirs-all subdirs-clean subdirs-install subdirs-distclean: .phony @set -e; for subdir in $(SUBDIRS) $(SUBDIRS-y); do \ -- cgit v1.2.3