aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Rules.mk
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-03-23 15:22:10 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-03-23 15:22:10 +0000
commit72bbc4ff73e667adab3e4cdcf1b1ed5022456e28 (patch)
treedd97f6f7a459339bfe8e847a204d8e604fbea588 /tools/Rules.mk
parentebc910e1866ad0c97ae1d792ec7b8845183cac4a (diff)
downloadxen-72bbc4ff73e667adab3e4cdcf1b1ed5022456e28.tar.gz
xen-72bbc4ff73e667adab3e4cdcf1b1ed5022456e28.tar.bz2
xen-72bbc4ff73e667adab3e4cdcf1b1ed5022456e28.zip
tools: allow Makefiles to define CFLAGS_foo.o
To provide per-file flags. 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.mk6
1 files changed, 3 insertions, 3 deletions
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 \