Support the recently added verbosity control.
This commit is contained in:
parent
ff5d6e091d
commit
8d23d1b0bb
|
@ -74,18 +74,22 @@ AROPTS = a
|
||||||
|
|
||||||
CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
|
CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
|
||||||
$(OBJECTDIR)/%.o: %.c | $(OBJECTDIR)
|
$(OBJECTDIR)/%.o: %.c | $(OBJECTDIR)
|
||||||
$(CC) -c -o $@ $(CFLAGS) --create-dep $(@:.o=.d) $<
|
$(TRACE_CC)
|
||||||
|
$(Q)$(CC) -c -o $@ $(CFLAGS) --create-dep $(@:.o=.d) $<
|
||||||
|
|
||||||
CUSTOM_RULE_C_TO_CO = 1
|
CUSTOM_RULE_C_TO_CO = 1
|
||||||
%.co: %.c
|
%.co: %.c
|
||||||
$(CC) -c -o $@ $(CFLAGS) -DAUTOSTART_ENABLE --create-dep $(@:.o=.d) $<
|
$(TRACE_CC)
|
||||||
|
$(Q)$(CC) -c -o $@ $(CFLAGS) -DAUTOSTART_ENABLE --create-dep $(@:.o=.d) $<
|
||||||
|
|
||||||
CUSTOM_RULE_LINK = 1
|
CUSTOM_RULE_LINK = 1
|
||||||
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
||||||
$(LD) -o $@ $(LDFLAGS) -u _main $^ $(TARGET).lib
|
$(TRACE_LD)
|
||||||
|
$(Q)$(LD) -o $@ $(LDFLAGS) -u _main $^ $(TARGET).lib
|
||||||
|
|
||||||
%.eth: $(OBJECTDIR)/%.o
|
%.eth: $(OBJECTDIR)/%.o
|
||||||
$(LD) -o $@ -t module -m $@.map $<
|
$(TRACE_LD)
|
||||||
|
$(Q)$(LD) -o $@ -t module -m $@.map $<
|
||||||
|
|
||||||
ifdef ETHERNET
|
ifdef ETHERNET
|
||||||
$(ETHERNET)-eth.S: $(ETHERNET).eth
|
$(ETHERNET)-eth.S: $(ETHERNET).eth
|
||||||
|
|
|
@ -72,10 +72,11 @@ ${foreach DSC,$(DSCS),${eval ${call dsc_template,$(DSC),${call appname,$(DSC)}}}
|
||||||
|
|
||||||
### Generic module-link rules, no prerequisites here
|
### Generic module-link rules, no prerequisites here
|
||||||
$(PRGS:=.prg) $(DSCS:=.dsc):
|
$(PRGS:=.prg) $(DSCS:=.dsc):
|
||||||
|
$(TRACE_LD)
|
||||||
ifdef VCINSTALLDIR
|
ifdef VCINSTALLDIR
|
||||||
link -nologo -debug -dll $^ contiki-main.$(TARGET).a -out:$@
|
$(Q)link -nologo -debug -dll $^ contiki-main.$(TARGET).a -out:$@
|
||||||
else
|
else
|
||||||
$(LD) -shared $^ contiki-main.$(TARGET).a -o $@
|
$(Q)$(LD) -shared $^ contiki-main.$(TARGET).a -o $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef VCINSTALLDIR
|
ifdef VCINSTALLDIR
|
||||||
|
@ -84,19 +85,23 @@ VCFLAGS = -Od -Z7 $(filter-out -Wall -g -O,$(CFLAGS))
|
||||||
|
|
||||||
CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
|
CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
|
||||||
$(OBJECTDIR)/%.o: %.c | $(OBJECTDIR)
|
$(OBJECTDIR)/%.o: %.c | $(OBJECTDIR)
|
||||||
cl -nologo $(VCFLAGS) -c $< -Fo$@
|
$(TRACE_CC)
|
||||||
@makedepend $(CFLAGS) -o.o -f- $< 2> nul: | sed -e s!$(<:.c=.o)!$@! -e s!\\!/!g > $(@:.o=.d)
|
$(Q)cl -nologo $(VCFLAGS) -c $< -Fo$@
|
||||||
|
$(Q)makedepend $(CFLAGS) -o.o -f- $< 2> nul: | sed -e s!$(<:.c=.o)!$@! -e s!\\!/!g > $(@:.o=.d)
|
||||||
|
|
||||||
CUSTOM_RULE_C_TO_CO = 1
|
CUSTOM_RULE_C_TO_CO = 1
|
||||||
%.co: %.c
|
%.co: %.c
|
||||||
cl -nologo $(VCFLAGS) -DAUTOSTART_ENABLE -c $< -Fo$@
|
$(TRACE_CC)
|
||||||
|
$(Q)cl -nologo $(VCFLAGS) -DAUTOSTART_ENABLE -c $< -Fo$@
|
||||||
|
|
||||||
CUSTOM_RULE_ALLOBJS_TO_TARGETLIB = 1
|
CUSTOM_RULE_ALLOBJS_TO_TARGETLIB = 1
|
||||||
contiki-$(TARGET).a: $(CONTIKI_OBJECTFILES)
|
contiki-$(TARGET).a: $(CONTIKI_OBJECTFILES)
|
||||||
lib -nologo $^ -out:$@
|
$(TRACE_AR)
|
||||||
|
$(Q)lib -nologo $^ -out:$@
|
||||||
|
|
||||||
CUSTOM_RULE_LINK = 1
|
CUSTOM_RULE_LINK = 1
|
||||||
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
%.$(TARGET): %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a
|
||||||
link -nologo $(LINKFLAGS) -debug -map:contiki-$(TARGET).map $^ user32.lib ws2_32.lib iphlpapi.lib -out:$@
|
$(TRACE_LD)
|
||||||
|
$(Q)link -nologo $(LINKFLAGS) -debug -map:contiki-$(TARGET).map $^ user32.lib ws2_32.lib iphlpapi.lib -out:$@
|
||||||
|
|
||||||
endif # VCINSTALLDIR
|
endif # VCINSTALLDIR
|
Loading…
Reference in a new issue