Commit ad477710 authored by Diego Biurrun's avatar Diego Biurrun

build: Add shorthand for HOSTCC compile macro

parent 7ffaa195
...@@ -38,6 +38,7 @@ endef ...@@ -38,6 +38,7 @@ endef
COMPILE_C = $(call COMPILE,CC) COMPILE_C = $(call COMPILE,CC)
COMPILE_S = $(call COMPILE,AS) COMPILE_S = $(call COMPILE,AS)
COMPILE_HOSTC = $(call COMPILE,HOSTCC)
%.o: %.c %.o: %.c
$(COMPILE_C) $(COMPILE_C)
......
...@@ -39,7 +39,7 @@ checkheaders: $(HOBJS) ...@@ -39,7 +39,7 @@ checkheaders: $(HOBJS)
alltools: $(TOOLS) alltools: $(TOOLS)
$(HOSTOBJS): %.o: %.c $(HOSTOBJS): %.o: %.c
$(call COMPILE,HOSTCC) $(COMPILE_HOSTC)
$(HOSTPROGS): %$(HOSTEXESUF): %.o $(HOSTPROGS): %$(HOSTEXESUF): %.o
$(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTLIBS) $(HOSTLD) $(HOSTLDFLAGS) $(HOSTLD_O) $^ $(HOSTLIBS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment