aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.host
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Makefile.host')
-rw-r--r--scripts/Makefile.host14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
index 575afbe5e370..6943a7a5bb98 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
@@ -114,7 +114,7 @@ hostcxx_flags = -Wp,-MD,$(depfile) $(__hostcxx_flags)
114quiet_cmd_host-csingle = HOSTCC $@ 114quiet_cmd_host-csingle = HOSTCC $@
115 cmd_host-csingle = $(HOSTCC) $(hostc_flags) -o $@ $< \ 115 cmd_host-csingle = $(HOSTCC) $(hostc_flags) -o $@ $< \
116 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) 116 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
117$(host-csingle): %: %.c FORCE 117$(host-csingle): $(obj)/%: $(src)/%.c FORCE
118 $(call if_changed_dep,host-csingle) 118 $(call if_changed_dep,host-csingle)
119 119
120# Link an executable based on list of .o files, all plain c 120# Link an executable based on list of .o files, all plain c
@@ -123,14 +123,14 @@ quiet_cmd_host-cmulti = HOSTLD $@
123 cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \ 123 cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \
124 $(addprefix $(obj)/,$($(@F)-objs)) \ 124 $(addprefix $(obj)/,$($(@F)-objs)) \
125 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) 125 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
126$(host-cmulti): %: $(host-cobjs) $(host-cshlib) FORCE 126$(host-cmulti): $(obj)/%: $(host-cobjs) $(host-cshlib) FORCE
127 $(call if_changed,host-cmulti) 127 $(call if_changed,host-cmulti)
128 128
129# Create .o file from a single .c file 129# Create .o file from a single .c file
130# host-cobjs -> .o 130# host-cobjs -> .o
131quiet_cmd_host-cobjs = HOSTCC $@ 131quiet_cmd_host-cobjs = HOSTCC $@
132 cmd_host-cobjs = $(HOSTCC) $(hostc_flags) -c -o $@ $< 132 cmd_host-cobjs = $(HOSTCC) $(hostc_flags) -c -o $@ $<
133$(host-cobjs): %.o: %.c FORCE 133$(host-cobjs): $(obj)/%.o: $(src)/%.c FORCE
134 $(call if_changed_dep,host-cobjs) 134 $(call if_changed_dep,host-cobjs)
135 135
136# Link an executable based on list of .o files, a mixture of .c and .cc 136# Link an executable based on list of .o files, a mixture of .c and .cc
@@ -140,20 +140,20 @@ quiet_cmd_host-cxxmulti = HOSTLD $@
140 $(foreach o,objs cxxobjs,\ 140 $(foreach o,objs cxxobjs,\
141 $(addprefix $(obj)/,$($(@F)-$(o)))) \ 141 $(addprefix $(obj)/,$($(@F)-$(o)))) \
142 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) 142 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
143$(host-cxxmulti): %: $(host-cobjs) $(host-cxxobjs) $(host-cshlib) FORCE 143$(host-cxxmulti): $(obj)/%: $(host-cobjs) $(host-cxxobjs) $(host-cshlib) FORCE
144 $(call if_changed,host-cxxmulti) 144 $(call if_changed,host-cxxmulti)
145 145
146# Create .o file from a single .cc (C++) file 146# Create .o file from a single .cc (C++) file
147quiet_cmd_host-cxxobjs = HOSTCXX $@ 147quiet_cmd_host-cxxobjs = HOSTCXX $@
148 cmd_host-cxxobjs = $(HOSTCXX) $(hostcxx_flags) -c -o $@ $< 148 cmd_host-cxxobjs = $(HOSTCXX) $(hostcxx_flags) -c -o $@ $<
149$(host-cxxobjs): %.o: %.cc FORCE 149$(host-cxxobjs): $(obj)/%.o: $(src)/%.cc FORCE
150 $(call if_changed_dep,host-cxxobjs) 150 $(call if_changed_dep,host-cxxobjs)
151 151
152# Compile .c file, create position independent .o file 152# Compile .c file, create position independent .o file
153# host-cshobjs -> .o 153# host-cshobjs -> .o
154quiet_cmd_host-cshobjs = HOSTCC -fPIC $@ 154quiet_cmd_host-cshobjs = HOSTCC -fPIC $@
155 cmd_host-cshobjs = $(HOSTCC) $(hostc_flags) -fPIC -c -o $@ $< 155 cmd_host-cshobjs = $(HOSTCC) $(hostc_flags) -fPIC -c -o $@ $<
156$(host-cshobjs): %.o: %.c FORCE 156$(host-cshobjs): $(obj)/%.o: $(src)/%.c FORCE
157 $(call if_changed_dep,host-cshobjs) 157 $(call if_changed_dep,host-cshobjs)
158 158
159# Link a shared library, based on position independent .o files 159# Link a shared library, based on position independent .o files
@@ -162,7 +162,7 @@ quiet_cmd_host-cshlib = HOSTLLD -shared $@
162 cmd_host-cshlib = $(HOSTCC) $(HOSTLDFLAGS) -shared -o $@ \ 162 cmd_host-cshlib = $(HOSTCC) $(HOSTLDFLAGS) -shared -o $@ \
163 $(addprefix $(obj)/,$($(@F:.so=-objs))) \ 163 $(addprefix $(obj)/,$($(@F:.so=-objs))) \
164 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) 164 $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
165$(host-cshlib): %: $(host-cshobjs) FORCE 165$(host-cshlib): $(obj)/%: $(host-cshobjs) FORCE
166 $(call if_changed,host-cshlib) 166 $(call if_changed,host-cshlib)
167 167
168targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\ 168targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\