summaryrefslogtreecommitdiff
path: root/nuttx/libc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/libc/Makefile')
-rw-r--r--nuttx/libc/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/libc/Makefile b/nuttx/libc/Makefile
index ac8fe4bc7..313629f2b 100644
--- a/nuttx/libc/Makefile
+++ b/nuttx/libc/Makefile
@@ -79,7 +79,7 @@ $(COBJS): %$(OBJEXT): %.c
$(call COMPILE, $<, $@)
$(BIN): $(OBJS)
- $(call ARCHIVE, $@, "$(OBJS)")
+ $(call ARCHIVE, $@, $(OBJS))
ifneq ($(BIN),$(UBIN))
.userlib:
@@ -108,16 +108,24 @@ depend: .depend
uclean:
ifneq ($(OBJEXT),)
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+ $(Q) if exist .userlib ]; then del *$(OBJEXT)
+else
$(Q) ( if [ -f .userlib ]; then rm -f *$(OBJEXT); fi )
endif
+endif
$(Q) rm -f .userlib *~ .*.swp
# Clean kernel-mode temporary files (retaining the KBIN binary)
kclean:
ifneq ($(OBJEXT),)
+ifeq ($(CONFIG_WINDOWS_NATIVE),y)
+ $(Q) if exist .kernlib ]; then del *$(OBJEXT)
+else
$(Q) ( if [ -f .kernlib ]; then rm -f *$(OBJEXT); fi )
endif
+endif
$(Q) rm -f .kernlib *~ .*.swp
# Really clean everything