yf13 commented on code in PR #2260:
URL: https://github.com/apache/nuttx-apps/pull/2260#discussion_r1455610865


##########
Application.mk:
##########
@@ -235,9 +235,16 @@ $(MAINCOBJ): %.c$(SUFFIX)$(OBJEXT): %.c
        $(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
                $(call ELFCOMPILE, $<, $@), $(call COMPILE, $<, $@))
 
-$(PROGLIST): $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)
+$(MAINZIGOBJ): %$(ZIGEXT)$(SUFFIX)$(OBJEXT): %$(ZIGEXT)
+       $(if $(and $(CONFIG_BUILD_LOADABLE),$(CELFFLAGS)), \
+               $(call ELFCOMPILEZIG,$<,$@), $(call COMPILEZIG, $<, $@))
+       $(Q) echo $(MAINZIGOBJ) $@
+
+$(PROGLIST): $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ) $(MAINZIGOBJ)
        $(Q) mkdir -p $(BINDIR)
-       $(call ELFLD,$(PROGOBJ_$@),$(call CONVERT_PATH,$@))
+       $(if $(PROGOBJ_$@), \

Review Comment:
   @xiaoxiang781216 It seems that this doesn't need change, if we add 
`$(MAINZIGOBJ)` to `PROGOBJ`. See line 97 in updated version.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to