mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
ebc910e186
commit
72bbc4ff73
1 file changed
+3
-3
+3
-3
@@ -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 \
|
||||
|
||||