diff --git a/Application.mk b/Application.mk index 9a05769a8..ba3b7f7c4 100644 --- a/Application.mk +++ b/Application.mk @@ -63,7 +63,6 @@ else BIN = $(APPDIR)$(DELIM)libapps$(LIBEXT) INSTALL_DIR = $(BIN_DIR) endif -DEPBIN = $(APPDIR)/libapps$(LIBEXT) ROOTDEPPATH = --dep-path . @@ -71,7 +70,7 @@ VPATH = all: .built .PHONY: clean preconfig depend distclean -.PRECIOUS: $(DEPBIN) +.PRECIOUS: $(APPDIR)/libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/Makefile b/Makefile index ec8aad38d..1a0cd7e96 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ BIN = libapps$(LIBEXT) all: $(BIN) .PHONY: import install dirlinks context context_serialize context_rest .depdirs preconfig depend clean distclean -.PRECIOUS: $(BIN) +.PRECIOUS: libapps$(LIBEXT) define MAKE_template $(Q) cd $(1) && $(MAKE) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" BIN_DIR="$(BIN_DIR)" diff --git a/builtin/Makefile b/builtin/Makefile index 610689f59..211569452 100644 --- a/builtin/Makefile +++ b/builtin/Makefile @@ -64,7 +64,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/builtin/registry/Makefile b/builtin/registry/Makefile index b59654d09..5365dd0cc 100644 --- a/builtin/registry/Makefile +++ b/builtin/registry/Makefile @@ -40,7 +40,7 @@ include $(APPDIR)/Make.defs all: .PHONY: context depend clean distclean -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) .updated: $(DEPCONFIG) $(call DELFILE, *.bdat) diff --git a/canutils/libcanard/Makefile b/canutils/libcanard/Makefile index 9808521dc..8315f3087 100644 --- a/canutils/libcanard/Makefile +++ b/canutils/libcanard/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(DEPBIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(LIBCANARD_PACKNAME): @echo "Downloading: $@" diff --git a/canutils/libuavcan/Makefile b/canutils/libuavcan/Makefile index 396eb448b..5cf5b1dcd 100644 --- a/canutils/libuavcan/Makefile +++ b/canutils/libuavcan/Makefile @@ -180,7 +180,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(DEPBIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(LIBUAVCAN_PACKNAME): @echo "Downloading: $@" diff --git a/examples/bastest/Makefile b/examples/bastest/Makefile index cef10460c..7d268f08a 100644 --- a/examples/bastest/Makefile +++ b/examples/bastest/Makefile @@ -91,7 +91,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/bridge/Makefile b/examples/bridge/Makefile index 99523bcb8..1dfed26ac 100644 --- a/examples/bridge/Makefile +++ b/examples/bridge/Makefile @@ -97,7 +97,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(TARG_AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/cc3000/Makefile b/examples/cc3000/Makefile index b57ec9f31..2f34323fc 100644 --- a/examples/cc3000/Makefile +++ b/examples/cc3000/Makefile @@ -100,7 +100,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/chat/Makefile b/examples/chat/Makefile index 79a6d6fd4..54909640c 100644 --- a/examples/chat/Makefile +++ b/examples/chat/Makefile @@ -82,7 +82,7 @@ STACKSIZE = 2048 all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/elf/Makefile b/examples/elf/Makefile index 34376d973..43bb5eead 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -81,7 +81,7 @@ VPATH = tests all: .built .PHONY: really_build clean_tests clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/elf/tests/Makefile b/examples/elf/tests/Makefile index 9d58222a6..1175a90a0 100644 --- a/examples/elf/tests/Makefile +++ b/examples/elf/tests/Makefile @@ -75,7 +75,7 @@ endef all: $(ROMFS_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/elf/tests/errno/Makefile b/examples/elf/tests/errno/Makefile index dd8bd938a..b14c94c2c 100644 --- a/examples/elf/tests/errno/Makefile +++ b/examples/elf/tests/errno/Makefile @@ -73,7 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/hello/Makefile b/examples/elf/tests/hello/Makefile index c10dc3c67..669f0fc49 100644 --- a/examples/elf/tests/hello/Makefile +++ b/examples/elf/tests/hello/Makefile @@ -73,7 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/helloxx/Makefile b/examples/elf/tests/helloxx/Makefile index c4b3f3f82..baee4b34c 100644 --- a/examples/elf/tests/helloxx/Makefile +++ b/examples/elf/tests/helloxx/Makefile @@ -102,7 +102,7 @@ LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) $(BIN5) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.cpp @echo "CC: $<" diff --git a/examples/elf/tests/longjmp/Makefile b/examples/elf/tests/longjmp/Makefile index 5cf19b8e9..0edeaabd2 100644 --- a/examples/elf/tests/longjmp/Makefile +++ b/examples/elf/tests/longjmp/Makefile @@ -73,7 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/mutex/Makefile b/examples/elf/tests/mutex/Makefile index c282bba9a..eb226d0f2 100644 --- a/examples/elf/tests/mutex/Makefile +++ b/examples/elf/tests/mutex/Makefile @@ -73,7 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/pthread/Makefile b/examples/elf/tests/pthread/Makefile index 35c1aaa7a..b8f57d090 100644 --- a/examples/elf/tests/pthread/Makefile +++ b/examples/elf/tests/pthread/Makefile @@ -73,7 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/signal/Makefile b/examples/elf/tests/signal/Makefile index 34138d93f..707b036f4 100644 --- a/examples/elf/tests/signal/Makefile +++ b/examples/elf/tests/signal/Makefile @@ -73,7 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/struct/Makefile b/examples/elf/tests/struct/Makefile index 07c7a57ab..074a3ee6d 100644 --- a/examples/elf/tests/struct/Makefile +++ b/examples/elf/tests/struct/Makefile @@ -74,7 +74,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/elf/tests/task/Makefile b/examples/elf/tests/task/Makefile index b90e97932..b15bcc37f 100644 --- a/examples/elf/tests/task/Makefile +++ b/examples/elf/tests/task/Makefile @@ -73,7 +73,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/ftpd/Makefile b/examples/ftpd/Makefile index 3b881e5fc..03da2970d 100644 --- a/examples/ftpd/Makefile +++ b/examples/ftpd/Makefile @@ -82,7 +82,7 @@ VPATH = all: .built .PHONY: context clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/module/Makefile b/examples/module/Makefile index 9cb8e8364..69ac72210 100644 --- a/examples/module/Makefile +++ b/examples/module/Makefile @@ -91,7 +91,7 @@ VPATH = drivers all: .built .PHONY: really_build clean_drivers clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/module/drivers/Makefile b/examples/module/drivers/Makefile index 6f686779b..b9e85ec70 100644 --- a/examples/module/drivers/Makefile +++ b/examples/module/drivers/Makefile @@ -54,7 +54,7 @@ endef all: $(ROMFS_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/module/drivers/chardev/Makefile b/examples/module/drivers/chardev/Makefile index 545515146..f1a4689b5 100644 --- a/examples/module/drivers/chardev/Makefile +++ b/examples/module/drivers/chardev/Makefile @@ -76,7 +76,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/nettest/Makefile b/examples/nettest/Makefile index 13582b739..f456ac2ce 100644 --- a/examples/nettest/Makefile +++ b/examples/nettest/Makefile @@ -181,7 +181,7 @@ VPATH = all: .built $(HOST_BIN) .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(TARG1_COBJS) $(TARG1_MAINOBJ) $(TARG2_COBJS) $(TARG2_MAINOBJ) $(TARGCMN_COBJS) : %$(OBJEXT): %.c $(call COMPILE, $<, $@) diff --git a/examples/nxflat/Makefile b/examples/nxflat/Makefile index 9ca1dda4f..2ec8772d2 100644 --- a/examples/nxflat/Makefile +++ b/examples/nxflat/Makefile @@ -81,7 +81,7 @@ VPATH = all: .built .PHONY: headers clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/nxflat/tests/Makefile b/examples/nxflat/tests/Makefile index 88c5527e1..4e2334088 100644 --- a/examples/nxflat/tests/Makefile +++ b/examples/nxflat/tests/Makefile @@ -60,7 +60,7 @@ endef all: $(ROMFS_HDR) $(ROMFS_DIRLIST) $(SYMTAB) .PHONY: all build clean install populate -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/poll/Makefile b/examples/poll/Makefile index ffc315c58..28d2a312c 100644 --- a/examples/poll/Makefile +++ b/examples/poll/Makefile @@ -81,7 +81,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/posix_spawn/Makefile b/examples/posix_spawn/Makefile index a37bffc0e..a01b9747c 100644 --- a/examples/posix_spawn/Makefile +++ b/examples/posix_spawn/Makefile @@ -81,7 +81,7 @@ VPATH = filesystem all: build .PHONY: build clean_filesystem clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/posix_spawn/filesystem/Makefile b/examples/posix_spawn/filesystem/Makefile index 819af11e8..7112a9032 100644 --- a/examples/posix_spawn/filesystem/Makefile +++ b/examples/posix_spawn/filesystem/Makefile @@ -45,7 +45,7 @@ SYMTAB_SRC = $(FILESYSTEM_DIR)$(DELIM)symtab.c all: $(ROMFS_HDR) $(SYMTAB_SRC) .PHONY: all hello/hello redirect/redirect clean populate -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) # Create the romfs directory diff --git a/examples/posix_spawn/filesystem/hello/Makefile b/examples/posix_spawn/filesystem/hello/Makefile index 6962129a1..a8f1d6a34 100644 --- a/examples/posix_spawn/filesystem/hello/Makefile +++ b/examples/posix_spawn/filesystem/hello/Makefile @@ -42,7 +42,7 @@ OBJS = $(SRCS:.c=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/posix_spawn/filesystem/redirect/Makefile b/examples/posix_spawn/filesystem/redirect/Makefile index 70efeb117..0658a8bd6 100644 --- a/examples/posix_spawn/filesystem/redirect/Makefile +++ b/examples/posix_spawn/filesystem/redirect/Makefile @@ -42,7 +42,7 @@ OBJS = $(SRCS:.c=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/romfs/Makefile b/examples/romfs/Makefile index 1a9178324..b91b86082 100644 --- a/examples/romfs/Makefile +++ b/examples/romfs/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: checkgenromfs clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/sotest/Makefile b/examples/sotest/Makefile index fab8da1e3..7ae4ebd4a 100644 --- a/examples/sotest/Makefile +++ b/examples/sotest/Makefile @@ -91,7 +91,7 @@ VPATH = lib all: .built .PHONY: really_build clean_lib clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/sotest/lib/Makefile b/examples/sotest/lib/Makefile index eaa9f9b3d..c36287963 100644 --- a/examples/sotest/lib/Makefile +++ b/examples/sotest/lib/Makefile @@ -59,7 +59,7 @@ endef all: $(ROMFS_HDR) $(DIRLIST_HDR) $(SYMTAB_SRC) .PHONY: all build clean install populate -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(foreach DIR, $(BUILD_SUBDIRS), $(eval $(call DIR_template,$(DIR),build, all))) $(foreach DIR, $(ALL_SUBDIRS), $(eval $(call DIR_template,$(DIR),clean,clean))) diff --git a/examples/sotest/lib/modprint/Makefile b/examples/sotest/lib/modprint/Makefile index 51f09e4d9..dd4802580 100644 --- a/examples/sotest/lib/modprint/Makefile +++ b/examples/sotest/lib/modprint/Makefile @@ -76,7 +76,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/sotest/lib/sotest/Makefile b/examples/sotest/lib/sotest/Makefile index 28b5a6424..3b1ababdf 100644 --- a/examples/sotest/lib/sotest/Makefile +++ b/examples/sotest/lib/sotest/Makefile @@ -76,7 +76,7 @@ OBJS = $(SRCS:.c=$(OBJEXT)) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(OBJS): %$(OBJEXT): %.c @echo "CC: $<" diff --git a/examples/thttpd/Makefile b/examples/thttpd/Makefile index a11e95e0c..b76d61ab8 100644 --- a/examples/thttpd/Makefile +++ b/examples/thttpd/Makefile @@ -88,7 +88,7 @@ VPATH = all: .built .PHONY: headers clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/thttpd/content/hello/Makefile b/examples/thttpd/content/hello/Makefile index de617ddac..100827f27 100644 --- a/examples/thttpd/content/hello/Makefile +++ b/examples/thttpd/content/hello/Makefile @@ -45,7 +45,7 @@ R2OBJ = $(R2SRC:.S=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(R1OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/thttpd/content/tasks/Makefile b/examples/thttpd/content/tasks/Makefile index d89d90ae3..7ab8d64db 100644 --- a/examples/thttpd/content/tasks/Makefile +++ b/examples/thttpd/content/tasks/Makefile @@ -48,7 +48,7 @@ R2OBJ = $(R2SRC:.S=.o) all: $(BIN) .PHONY: clean install -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) $(R1OBJS): %.o: %.c @echo "CC: $<" diff --git a/examples/tiff/Makefile b/examples/tiff/Makefile index 1a15acde7..7a6b3f196 100644 --- a/examples/tiff/Makefile +++ b/examples/tiff/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/udgram/Makefile b/examples/udgram/Makefile index 7dd3e7cbc..a9427954e 100644 --- a/examples/udgram/Makefile +++ b/examples/udgram/Makefile @@ -116,7 +116,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/udp/Makefile b/examples/udp/Makefile index 11803ecd8..8db4d1210 100644 --- a/examples/udp/Makefile +++ b/examples/udp/Makefile @@ -161,7 +161,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(TARG1_COBJS) $(TARG1_MAINOBJ) $(TARG2_COBJS) $(TARG2_MAINOBJ) $(TARGCMN_COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) @@ -225,7 +225,6 @@ depend: .depend clean: $(call DELFILE, .built) - #$(call DELFILE, $(TARG_BIN)) ifneq ($(CONFIG_EXAMPLES_UDP_TARGET2),y) $(call DELFILE, $(HOST_BIN)) $(call DELFILE, *.$(HOSTOBJSEXT)) diff --git a/examples/udpblaster/Makefile b/examples/udpblaster/Makefile index e2c3fb03b..204acad54 100644 --- a/examples/udpblaster/Makefile +++ b/examples/udpblaster/Makefile @@ -99,7 +99,7 @@ VPATH = all: .built $(HOST_BIN) .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(TARG_AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/unionfs/Makefile b/examples/unionfs/Makefile index d72a85111..d9d316671 100644 --- a/examples/unionfs/Makefile +++ b/examples/unionfs/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: checkgenromfs clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/usbserial/Makefile b/examples/usbserial/Makefile index a6629f818..6b9de2895 100644 --- a/examples/usbserial/Makefile +++ b/examples/usbserial/Makefile @@ -85,7 +85,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/ustream/Makefile b/examples/ustream/Makefile index dd6d036b7..57686d112 100644 --- a/examples/ustream/Makefile +++ b/examples/ustream/Makefile @@ -108,7 +108,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/examples/webserver/Makefile b/examples/webserver/Makefile index 5f87e537d..60c11b3df 100644 --- a/examples/webserver/Makefile +++ b/examples/webserver/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/fsutils/flash_eraseall/Makefile b/fsutils/flash_eraseall/Makefile index 1c2ca2f1c..94bda913f 100644 --- a/fsutils/flash_eraseall/Makefile +++ b/fsutils/flash_eraseall/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/fsutils/inifile/Makefile b/fsutils/inifile/Makefile index 716f41c13..dae9da321 100644 --- a/fsutils/inifile/Makefile +++ b/fsutils/inifile/Makefile @@ -65,7 +65,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/fsutils/mksmartfs/Makefile b/fsutils/mksmartfs/Makefile index 577c58f1a..f1725c5e6 100644 --- a/fsutils/mksmartfs/Makefile +++ b/fsutils/mksmartfs/Makefile @@ -72,7 +72,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/fsutils/passwd/Makefile b/fsutils/passwd/Makefile index 8dc2109f8..d4bbcc8e2 100644 --- a/fsutils/passwd/Makefile +++ b/fsutils/passwd/Makefile @@ -78,7 +78,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/gpsutils/minmea/Makefile b/gpsutils/minmea/Makefile index 9d25efbc6..9300c0261 100644 --- a/gpsutils/minmea/Makefile +++ b/gpsutils/minmea/Makefile @@ -67,7 +67,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/graphics/screenshot/Makefile b/graphics/screenshot/Makefile index 4b63a4133..c1493ba4c 100644 --- a/graphics/screenshot/Makefile +++ b/graphics/screenshot/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/graphics/tiff/Makefile b/graphics/tiff/Makefile index aad8a4ffe..3f8ec2a98 100644 --- a/graphics/tiff/Makefile +++ b/graphics/tiff/Makefile @@ -66,7 +66,7 @@ VPATH = all: .built .PHONY: context clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/graphics/traveler/Makefile b/graphics/traveler/Makefile index c74d53a58..76631df00 100644 --- a/graphics/traveler/Makefile +++ b/graphics/traveler/Makefile @@ -118,7 +118,7 @@ VPATH = .:src all: .built tools .PHONY: tools clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/graphics/traveler/tools/include/Makefile b/graphics/traveler/tools/include/Makefile index 0b68e002f..4ce597831 100644 --- a/graphics/traveler/tools/include/Makefile +++ b/graphics/traveler/tools/include/Makefile @@ -45,7 +45,7 @@ all: nuttx default: all .PHONY: clean -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../../libapps$(LIBEXT) nuttx : $(NXINCNX) @cp -a $(NXINCNX) nuttx diff --git a/import/Makefile b/import/Makefile index b18bf7823..4039e3f7d 100644 --- a/import/Makefile +++ b/import/Makefile @@ -43,7 +43,7 @@ FILES = .config all: nothing .PHONY: nothing context depend clean distclean -.PRECIOUS: $(BIN) +.PRECIOUS: ../libapps$(LIBEXT) nothing: diff --git a/interpreters/bas/Makefile b/interpreters/bas/Makefile index ee04d64ab..875d159cc 100644 --- a/interpreters/bas/Makefile +++ b/interpreters/bas/Makefile @@ -79,7 +79,7 @@ STACKSIZE = $(CONFIG_INTERPRETER_BAS_STACKSIZE) all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/interpreters/ficl/Makefile b/interpreters/ficl/Makefile index 3ffa65110..5d8dbc4df 100644 --- a/interpreters/ficl/Makefile +++ b/interpreters/ficl/Makefile @@ -79,7 +79,7 @@ VPATH = src:$(FICL_SUBDIR) all: .built .PHONY: debug context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/interpreters/micropython/Makefile b/interpreters/micropython/Makefile index 8d521df33..81e5d6dad 100644 --- a/interpreters/micropython/Makefile +++ b/interpreters/micropython/Makefile @@ -128,7 +128,7 @@ ROOTDEPPATH = --dep-path . all: .built .PHONY: install context clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(MICROPYTHON_TARBALL): @echo "Downloading: $(MICROPYTHON_TARBALL)" diff --git a/interpreters/minibasic/Makefile b/interpreters/minibasic/Makefile index 304de6bfd..7996d87f4 100644 --- a/interpreters/minibasic/Makefile +++ b/interpreters/minibasic/Makefile @@ -74,7 +74,7 @@ STACKSIZE = $(CONFIG_INTERPRETER_MINIBASIC_STACKSIZE) all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/modbus/Makefile b/modbus/Makefile index 2d7af8fca..4efd42af6 100644 --- a/modbus/Makefile +++ b/modbus/Makefile @@ -83,7 +83,7 @@ endif all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../libapps$(LIBEXT) ifeq ($(CONFIG_MODBUS),y) diff --git a/netutils/chat/Makefile b/netutils/chat/Makefile index 39eae033b..a63416beb 100644 --- a/netutils/chat/Makefile +++ b/netutils/chat/Makefile @@ -66,7 +66,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/codecs/Makefile b/netutils/codecs/Makefile index 6d01cfab2..6ebfbac49 100644 --- a/netutils/codecs/Makefile +++ b/netutils/codecs/Makefile @@ -64,7 +64,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/dhcpc/Makefile b/netutils/dhcpc/Makefile index 2bc6512d3..d1b71843d 100644 --- a/netutils/dhcpc/Makefile +++ b/netutils/dhcpc/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/dhcpd/Makefile b/netutils/dhcpd/Makefile index b12678ce1..f10111865 100644 --- a/netutils/dhcpd/Makefile +++ b/netutils/dhcpd/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/discover/Makefile b/netutils/discover/Makefile index 524fa8714..1094cd914 100644 --- a/netutils/discover/Makefile +++ b/netutils/discover/Makefile @@ -73,7 +73,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/esp8266/Makefile b/netutils/esp8266/Makefile index 9b6d98c77..0c303e4de 100644 --- a/netutils/esp8266/Makefile +++ b/netutils/esp8266/Makefile @@ -66,7 +66,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/ftpc/Makefile b/netutils/ftpc/Makefile index 4a92fbc37..31a004d27 100644 --- a/netutils/ftpc/Makefile +++ b/netutils/ftpc/Makefile @@ -86,7 +86,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/ftpd/Makefile b/netutils/ftpd/Makefile index 7a28db320..56eb97aeb 100644 --- a/netutils/ftpd/Makefile +++ b/netutils/ftpd/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/json/Makefile b/netutils/json/Makefile index 5c7f38bd4..cfbb833cd 100644 --- a/netutils/json/Makefile +++ b/netutils/json/Makefile @@ -64,7 +64,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/netlib/Makefile b/netutils/netlib/Makefile index c6637f7b7..4eb0b1a35 100644 --- a/netutils/netlib/Makefile +++ b/netutils/netlib/Makefile @@ -128,7 +128,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/ntpclient/Makefile b/netutils/ntpclient/Makefile index 335b491f7..f93e028bb 100755 --- a/netutils/ntpclient/Makefile +++ b/netutils/ntpclient/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/ping/Makefile b/netutils/ping/Makefile index da7b61319..fb3e63726 100644 --- a/netutils/ping/Makefile +++ b/netutils/ping/Makefile @@ -74,7 +74,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/pppd/Makefile b/netutils/pppd/Makefile index 97fe5f766..48e532985 100644 --- a/netutils/pppd/Makefile +++ b/netutils/pppd/Makefile @@ -69,7 +69,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/smtp/Makefile b/netutils/smtp/Makefile index 8a370a93c..6bbf96fac 100644 --- a/netutils/smtp/Makefile +++ b/netutils/smtp/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/telnetc/Makefile b/netutils/telnetc/Makefile index e12651c81..78741fbb2 100644 --- a/netutils/telnetc/Makefile +++ b/netutils/telnetc/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/telnetd/Makefile b/netutils/telnetd/Makefile index 779f57096..aab332297 100644 --- a/netutils/telnetd/Makefile +++ b/netutils/telnetd/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/tftpc/Makefile b/netutils/tftpc/Makefile index 6553fe19c..a88bad469 100644 --- a/netutils/tftpc/Makefile +++ b/netutils/tftpc/Makefile @@ -72,7 +72,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/thttpd/Makefile b/netutils/thttpd/Makefile index 961d24186..d10132d4a 100644 --- a/netutils/thttpd/Makefile +++ b/netutils/thttpd/Makefile @@ -111,7 +111,7 @@ STACKSIZE = $(CONFIG_THTTPD_CGI_STACKSIZE) all: $(SUBDIR_BIN) .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/webclient/Makefile b/netutils/webclient/Makefile index 02fbcb9b3..e52c9c529 100644 --- a/netutils/webclient/Makefile +++ b/netutils/webclient/Makefile @@ -70,7 +70,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/webserver/Makefile b/netutils/webserver/Makefile index 7561fb4a4..d505ef61c 100644 --- a/netutils/webserver/Makefile +++ b/netutils/webserver/Makefile @@ -77,7 +77,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/netutils/xmlrpc/Makefile b/netutils/xmlrpc/Makefile index a7658930a..cc7ef2159 100644 --- a/netutils/xmlrpc/Makefile +++ b/netutils/xmlrpc/Makefile @@ -71,7 +71,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/nshlib/Makefile b/nshlib/Makefile index 2cfc81582..e75de815c 100644 --- a/nshlib/Makefile +++ b/nshlib/Makefile @@ -160,7 +160,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/platform/Makefile b/platform/Makefile index 785cf8b0e..ceaedb212 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -105,7 +105,7 @@ endif all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../libapps$(LIBEXT) ifneq ($(ASRCS),) # REVISIT: Backslash causes problems in $(AOBJS) target diff --git a/platform/bin/Makefile b/platform/bin/Makefile index 5a614880b..ba4a82873 100644 --- a/platform/bin/Makefile +++ b/platform/bin/Makefile @@ -37,7 +37,7 @@ all: .PHONY: clean distclean -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) # Clean Targets: diff --git a/system/cdcacm/Makefile b/system/cdcacm/Makefile index d8a09ca71..5f4af7fdf 100644 --- a/system/cdcacm/Makefile +++ b/system/cdcacm/Makefile @@ -91,7 +91,7 @@ VPATH = all: .built .PHONY: context clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/cle/Makefile b/system/cle/Makefile index 8a2a5d24f..f590deaff 100644 --- a/system/cle/Makefile +++ b/system/cle/Makefile @@ -66,7 +66,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/composite/Makefile b/system/composite/Makefile index c5a3300e0..00d50b11b 100644 --- a/system/composite/Makefile +++ b/system/composite/Makefile @@ -91,7 +91,7 @@ VPATH = all: .built .PHONY: context clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/cu/Makefile b/system/cu/Makefile index 5de1ee306..9b6b5e91b 100644 --- a/system/cu/Makefile +++ b/system/cu/Makefile @@ -90,7 +90,7 @@ VPATH = all: .built .PHONY: context clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/dhcpc/Makefile b/system/dhcpc/Makefile index 1431cacde..0a12071dd 100644 --- a/system/dhcpc/Makefile +++ b/system/dhcpc/Makefile @@ -90,7 +90,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(RENEW_OBJS) $(RENEW_MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) diff --git a/system/flash_eraseall/Makefile b/system/flash_eraseall/Makefile index d05c04718..a129a2b92 100644 --- a/system/flash_eraseall/Makefile +++ b/system/flash_eraseall/Makefile @@ -90,7 +90,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/free/Makefile b/system/free/Makefile index e75eeb39c..275d41d12 100644 --- a/system/free/Makefile +++ b/system/free/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/hex2bin/Makefile b/system/hex2bin/Makefile index cb278e0d0..f73d46455 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -113,7 +113,7 @@ HEX2MEM_PRIORITY = $(CONFIG_SYSTEM_HEX2MEM_PRIORITY) all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/hexed/Makefile b/system/hexed/Makefile index 43314ab56..16c8b6827 100644 --- a/system/hexed/Makefile +++ b/system/hexed/Makefile @@ -90,7 +90,7 @@ VPATH = src all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/i2c/Makefile b/system/i2c/Makefile index 12b750fd9..aab65ace6 100644 --- a/system/i2c/Makefile +++ b/system/i2c/Makefile @@ -85,7 +85,7 @@ STACKSIZE = 2048 all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/install/Makefile b/system/install/Makefile index 530667fab..59fbd3b80 100644 --- a/system/install/Makefile +++ b/system/install/Makefile @@ -91,7 +91,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/lm75/Makefile b/system/lm75/Makefile index cd8b2a10d..941bf22cc 100644 --- a/system/lm75/Makefile +++ b/system/lm75/Makefile @@ -91,7 +91,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/mdio/Makefile b/system/mdio/Makefile index d412371bf..6f8dfef85 100644 --- a/system/mdio/Makefile +++ b/system/mdio/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/netdb/Makefile b/system/netdb/Makefile index 5ae0db6f3..bc2355605 100644 --- a/system/netdb/Makefile +++ b/system/netdb/Makefile @@ -72,7 +72,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/ntpc/Makefile b/system/ntpc/Makefile index 8d71ea09e..f6b222d52 100644 --- a/system/ntpc/Makefile +++ b/system/ntpc/Makefile @@ -95,7 +95,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/nxplayer/Makefile b/system/nxplayer/Makefile index c0f8f5707..86b12412c 100644 --- a/system/nxplayer/Makefile +++ b/system/nxplayer/Makefile @@ -96,7 +96,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/prun/Makefile b/system/prun/Makefile index 9d864e86c..17bb2d856 100644 --- a/system/prun/Makefile +++ b/system/prun/Makefile @@ -97,7 +97,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/ramtest/Makefile b/system/ramtest/Makefile index 54bcfc1a1..fd744781f 100644 --- a/system/ramtest/Makefile +++ b/system/ramtest/Makefile @@ -88,7 +88,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/readline/Makefile b/system/readline/Makefile index e8cc717dd..cc936f86a 100644 --- a/system/readline/Makefile +++ b/system/readline/Makefile @@ -66,7 +66,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/stackmonitor/Makefile b/system/stackmonitor/Makefile index ee44a8fb2..151300e0a 100644 --- a/system/stackmonitor/Makefile +++ b/system/stackmonitor/Makefile @@ -84,7 +84,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/sudoku/Makefile b/system/sudoku/Makefile index d332a6a37..f2c7b4621 100644 --- a/system/sudoku/Makefile +++ b/system/sudoku/Makefile @@ -87,7 +87,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/symtab/Makefile b/system/symtab/Makefile index b155097af..04ec8f69e 100644 --- a/system/symtab/Makefile +++ b/system/symtab/Makefile @@ -66,7 +66,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/tee/Makefile b/system/tee/Makefile index d531adca5..c9ec9c0a3 100644 --- a/system/tee/Makefile +++ b/system/tee/Makefile @@ -90,7 +90,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/telnet/Makefile b/system/telnet/Makefile index c4f6b3d0b..9d2117afc 100644 --- a/system/telnet/Makefile +++ b/system/telnet/Makefile @@ -120,7 +120,7 @@ VPATH = all: .built .PHONY: clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(CHATD_COBJS) $(CHATD_MAINOBJ) $(CLIENT_COBJS) $(CLIENT_MAINOBJ) : %$(OBJEXT): %.c $(call COMPILE, $<, $@) diff --git a/system/ubloxmodem/Makefile b/system/ubloxmodem/Makefile index 1187945a0..bc1cad245 100644 --- a/system/ubloxmodem/Makefile +++ b/system/ubloxmodem/Makefile @@ -84,7 +84,7 @@ STACKSIZE = 2048 all: .built .PHONY: context .depend depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/usbmsc/Makefile b/system/usbmsc/Makefile index 1998c65fd..1019580c3 100644 --- a/system/usbmsc/Makefile +++ b/system/usbmsc/Makefile @@ -94,7 +94,7 @@ VPATH = all: .built .PHONY: context clean depend distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/vi/Makefile b/system/vi/Makefile index 46b2b9e4e..a3c5802ef 100644 --- a/system/vi/Makefile +++ b/system/vi/Makefile @@ -88,7 +88,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/system/zmodem/Makefile b/system/zmodem/Makefile index ab2f6b2dd..6f96dc808 100644 --- a/system/zmodem/Makefile +++ b/system/zmodem/Makefile @@ -91,7 +91,7 @@ VPATH = all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/ieee802154/Makefile b/wireless/ieee802154/Makefile index 27402828f..500938ccc 100644 --- a/wireless/ieee802154/Makefile +++ b/wireless/ieee802154/Makefile @@ -42,7 +42,7 @@ SUBDIRS = $(dir $(wildcard */Makefile)) all: nothing .PHONY: nothing context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) define SDIR_template $(1)_$(2): diff --git a/wireless/ieee802154/i8sak/Makefile b/wireless/ieee802154/i8sak/Makefile index 4b60962e4..05c3364c1 100644 --- a/wireless/ieee802154/i8sak/Makefile +++ b/wireless/ieee802154/i8sak/Makefile @@ -91,7 +91,7 @@ VPATH = all: .built .PHONY: clean depend distclean -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/ieee802154/libmac/Makefile b/wireless/ieee802154/libmac/Makefile index 66e60a93f..0abafbb16 100644 --- a/wireless/ieee802154/libmac/Makefile +++ b/wireless/ieee802154/libmac/Makefile @@ -99,7 +99,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/ieee802154/libutils/Makefile b/wireless/ieee802154/libutils/Makefile index 1767775b7..f15011f43 100644 --- a/wireless/ieee802154/libutils/Makefile +++ b/wireless/ieee802154/libutils/Makefile @@ -65,7 +65,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/ieee802154/wpanlistener/Makefile b/wireless/ieee802154/wpanlistener/Makefile index 7e1d70cfb..274a05ff6 100644 --- a/wireless/ieee802154/wpanlistener/Makefile +++ b/wireless/ieee802154/wpanlistener/Makefile @@ -66,7 +66,7 @@ VPATH = all: .built .PHONY: context .depend depend clean distclean -.PRECIOUS: $(BIN) +.PRECIOUS: ../../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/iwpan/Makefile b/wireless/iwpan/Makefile index efc6a262e..2a9940b60 100644 --- a/wireless/iwpan/Makefile +++ b/wireless/iwpan/Makefile @@ -94,7 +94,7 @@ ROOTDEPPATH = --dep-path . all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/wireless/wapi/Makefile b/wireless/wapi/Makefile index dec217788..cdc3b0851 100644 --- a/wireless/wapi/Makefile +++ b/wireless/wapi/Makefile @@ -92,7 +92,7 @@ PROGNAME = $(CONFIG_WAPI_PROGNAME) all: .built .PHONY: context depend clean distclean preconfig -.PRECIOUS: $(BIN) +.PRECIOUS: ../../libapps$(LIBEXT) $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@)