build: Add shorthand for HOSTCC compile macro

pull/48/merge
Diego Biurrun 11 years ago
parent 7ffaa19570
commit ad47771024
  1. 1
      Makefile
  2. 2
      common.mak

@ -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)
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)

Loading…
Cancel
Save