[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools: allow Makefiles to define CFLAGS_foo.o
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1300893730 0 # Node ID 44dfaf0c15ff3f865fbba68fa4e2bf4e4f9242c3 # Parent 03317b498d6da6ad0f86222a9fbc7759fb315a40 tools: allow Makefiles to define CFLAGS_foo.o To provide per-file flags. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r 03317b498d6d -r 44dfaf0c15ff tools/Rules.mk --- a/tools/Rules.mk Wed Mar 23 15:20:44 2011 +0000 +++ b/tools/Rules.mk Wed Mar 23 15:22:10 2011 +0000 @@ -81,13 +81,13 @@ $(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 \ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |