diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-01 15:18:02 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-01 15:18:02 +0000 |
commit | bd032945c6126523c1f4ea6eb8d6f74f8b5d9274 (patch) | |
tree | 94c370a496bb4ff8f97cb81c1fe19f81e22f9875 | |
parent | 37701ac70a3047f8f161628e6f59dfacc185233f (diff) | |
download | px4-nuttx-bd032945c6126523c1f4ea6eb8d6f74f8b5d9274.tar.gz px4-nuttx-bd032945c6126523c1f4ea6eb8d6f74f8b5d9274.tar.bz2 px4-nuttx-bd032945c6126523c1f4ea6eb8d6f74f8b5d9274.zip |
Update apps/ Makefiles to fix environmental bug
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3450 42af7a65-404d-4744-a932-0658087f49c3
41 files changed, 120 insertions, 191 deletions
diff --git a/apps/examples/dhcpd/Makefile b/apps/examples/dhcpd/Makefile index ba9a62c61..32b5c4ee5 100644 --- a/apps/examples/dhcpd/Makefile +++ b/apps/examples/dhcpd/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/hello/Makefile b/apps/examples/hello/Makefile index 8644cbbbc..9b42c2f92 100644 --- a/apps/examples/hello/Makefile +++ b/apps/examples/hello/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/helloxx/Makefile b/apps/examples/helloxx/Makefile index 3d930191c..3d4545728 100755 --- a/apps/examples/helloxx/Makefile +++ b/apps/examples/helloxx/Makefile @@ -59,7 +59,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean chkcxx +.PHONY: clean depend disclean chkcxx chkcxx: ifneq ($(CONFIG_HAVE_CXX),y) @@ -82,14 +82,12 @@ $(COBJS): %$(OBJEXT): %.c $(CXXOBJS): %$(OBJEXT): %.cxx $(call COMPILEXX, $<, $@) -$(BIN): chkcxx $(OBJS) +.built: chkcxx $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/hidkbd/Makefile b/apps/examples/hidkbd/Makefile index f83a4ded0..bb6c8083e 100644 --- a/apps/examples/hidkbd/Makefile +++ b/apps/examples/hidkbd/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/igmp/Makefile b/apps/examples/igmp/Makefile index 744cd875d..1f31bc006 100755 --- a/apps/examples/igmp/Makefile +++ b/apps/examples/igmp/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/mm/Makefile b/apps/examples/mm/Makefile index eff33ffe7..e6d6b14b6 100644 --- a/apps/examples/mm/Makefile +++ b/apps/examples/mm/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/mount/Makefile b/apps/examples/mount/Makefile index 200fcc99d..c9e62a71d 100644 --- a/apps/examples/mount/Makefile +++ b/apps/examples/mount/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/nsh/Makefile b/apps/examples/nsh/Makefile index 56695431a..1ec734e82 100644 --- a/apps/examples/nsh/Makefile +++ b/apps/examples/nsh/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/null/Makefile b/apps/examples/null/Makefile index 8bcd8f1b8..eede852dd 100644 --- a/apps/examples/null/Makefile +++ b/apps/examples/null/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/nx/Makefile b/apps/examples/nx/Makefile index 6b13c3402..bdde6bd29 100644 --- a/apps/examples/nx/Makefile +++ b/apps/examples/nx/Makefile @@ -60,7 +60,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,14 +68,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/nxflat/Makefile b/apps/examples/nxflat/Makefile index d8573735e..c2fb246bc 100644 --- a/apps/examples/nxflat/Makefile +++ b/apps/examples/nxflat/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: headers .built clean depend disclean +.PHONY: headers clean depend disclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,14 +68,12 @@ $(COBJS): %$(OBJEXT): %.c headers: @$(MAKE) -C tests TOPDIR=$(TOPDIR) APPDIR=$(APPDIR) CROSSDEV=$(CROSSDEV) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: # We can't make dependencies in this directory because the required diff --git a/apps/examples/ostest/Makefile b/apps/examples/ostest/Makefile index 5a7e6246c..361d7eea4 100644 --- a/apps/examples/ostest/Makefile +++ b/apps/examples/ostest/Makefile @@ -97,7 +97,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -105,14 +105,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/pashello/Makefile b/apps/examples/pashello/Makefile index a46231080..7a08eec7f 100644 --- a/apps/examples/pashello/Makefile +++ b/apps/examples/pashello/Makefile @@ -64,7 +64,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -72,14 +72,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/pipe/Makefile b/apps/examples/pipe/Makefile index f5e73f758..8412babf3 100644 --- a/apps/examples/pipe/Makefile +++ b/apps/examples/pipe/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/poll/Makefile b/apps/examples/poll/Makefile index 5e2a4cf6a..0dc3d9393 100644 --- a/apps/examples/poll/Makefile +++ b/apps/examples/poll/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/romfs/Makefile b/apps/examples/romfs/Makefile index 354e7987f..f5f90e3b2 100644 --- a/apps/examples/romfs/Makefile +++ b/apps/examples/romfs/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: checkgenromfs .built clean depend disclean +.PHONY: checkgenromfs clean depend disclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -81,14 +81,12 @@ testdir.img : checkgenromfs testdir romfs_testdir.h : testdir.img @xxd -i $< >$@ || { echo "xxd of $< failed" ; exit 1 ; } -$(BIN): romfs_testdir.h $(OBJS) +.built: romfs_testdir.h $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/sendmail/Makefile b/apps/examples/sendmail/Makefile index 94208b8fc..6ee90208a 100644 --- a/apps/examples/sendmail/Makefile +++ b/apps/examples/sendmail/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/serloop/Makefile b/apps/examples/serloop/Makefile index 487a86242..0caefbef1 100644 --- a/apps/examples/serloop/Makefile +++ b/apps/examples/serloop/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/thttpd/Makefile b/apps/examples/thttpd/Makefile index 4d5fb964e..4d39d7d17 100644 --- a/apps/examples/thttpd/Makefile +++ b/apps/examples/thttpd/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built headers clean depend disclean +.PHONY: headers clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,14 +68,12 @@ $(COBJS): %$(OBJEXT): %.c headers: @$(MAKE) -C content TOPDIR=$(TOPDIR) APPDIR=$(APPDIR) CROSSDEV=$(CROSSDEV) -$(BIN): headers $(OBJS) +.built: headers $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/uip/Makefile b/apps/examples/uip/Makefile index f7e82f6b1..a712fa70c 100644 --- a/apps/examples/uip/Makefile +++ b/apps/examples/uip/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/usbserial/Makefile b/apps/examples/usbserial/Makefile index a0b530122..cd6e7599a 100644 --- a/apps/examples/usbserial/Makefile +++ b/apps/examples/usbserial/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/usbstorage/Makefile b/apps/examples/usbstorage/Makefile index c57e96acd..4b6f36889 100644 --- a/apps/examples/usbstorage/Makefile +++ b/apps/examples/usbstorage/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/wget/Makefile b/apps/examples/wget/Makefile index 09e06c735..018b54ceb 100644 --- a/apps/examples/wget/Makefile +++ b/apps/examples/wget/Makefile @@ -57,7 +57,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -65,14 +65,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/examples/wlan/Makefile b/apps/examples/wlan/Makefile index 5097e4186..9b161ae66 100755 --- a/apps/examples/wlan/Makefile +++ b/apps/examples/wlan/Makefile @@ -58,7 +58,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built clean depend disclean +.PHONY: clean depend distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -66,14 +66,12 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built -.built: $(BIN) - context: .depend: Makefile $(SRCS) diff --git a/apps/namedapp/Makefile b/apps/namedapp/Makefile index 6b3610e18..50dedfc39 100644 --- a/apps/namedapp/Makefile +++ b/apps/namedapp/Makefile @@ -62,7 +62,7 @@ VPATH = # Build Targets all: .built -.PHONY: .context context .depend depend clean distclean +.PHONY: .context context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -70,13 +70,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) .context: @echo "/* List of application requirements, generated during make context. */" > namedapp_list.h diff --git a/apps/netutils/dhcpc/Makefile b/apps/netutils/dhcpc/Makefile index 6374933bf..da390acb3 100644 --- a/apps/netutils/dhcpc/Makefile +++ b/apps/netutils/dhcpc/Makefile @@ -61,6 +61,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,13 +69,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/dhcpd/Makefile b/apps/netutils/dhcpd/Makefile index 96857c6de..a03b24005 100644 --- a/apps/netutils/dhcpd/Makefile +++ b/apps/netutils/dhcpd/Makefile @@ -61,6 +61,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,13 +69,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/resolv/Makefile b/apps/netutils/resolv/Makefile index 1a9fa8e6f..84857e430 100644 --- a/apps/netutils/resolv/Makefile +++ b/apps/netutils/resolv/Makefile @@ -61,6 +61,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,13 +69,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/smtp/Makefile b/apps/netutils/smtp/Makefile index 245188e9d..682b3311d 100644 --- a/apps/netutils/smtp/Makefile +++ b/apps/netutils/smtp/Makefile @@ -61,6 +61,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,13 +69,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/telnetd/Makefile b/apps/netutils/telnetd/Makefile index 736f1e130..7fb0ffa47 100644 --- a/apps/netutils/telnetd/Makefile +++ b/apps/netutils/telnetd/Makefile @@ -61,6 +61,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,13 +69,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/tftpc/Makefile b/apps/netutils/tftpc/Makefile index b4b8e80b3..d6a724e79 100644 --- a/apps/netutils/tftpc/Makefile +++ b/apps/netutils/tftpc/Makefile @@ -63,6 +63,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -70,13 +71,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/thttpd/Makefile b/apps/netutils/thttpd/Makefile index 375484379..ec0df4ba6 100644 --- a/apps/netutils/thttpd/Makefile +++ b/apps/netutils/thttpd/Makefile @@ -95,7 +95,7 @@ cgi-bin/$(SUBDIR_BIN3): cgi-bin cgi-src/$(SUBDIR_BIN3) @cp -a cgi-src/$(SUBDIR_BIN3) $@ endif -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ $(call ARCHIVE, $@, $${obj}); \ done ; ) diff --git a/apps/netutils/uiplib/Makefile b/apps/netutils/uiplib/Makefile index ef41adda3..aed228bde 100644 --- a/apps/netutils/uiplib/Makefile +++ b/apps/netutils/uiplib/Makefile @@ -70,6 +70,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -77,13 +78,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/webclient/Makefile b/apps/netutils/webclient/Makefile index f0fb805bd..3174e0ce2 100644 --- a/apps/netutils/webclient/Makefile +++ b/apps/netutils/webclient/Makefile @@ -61,6 +61,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,13 +69,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/netutils/webserver/Makefile b/apps/netutils/webserver/Makefile index a836f48ac..545079550 100644 --- a/apps/netutils/webserver/Makefile +++ b/apps/netutils/webserver/Makefile @@ -61,6 +61,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -68,13 +69,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/nshlib/Makefile b/apps/nshlib/Makefile index 7074cd0cc..d0efd684c 100644 --- a/apps/nshlib/Makefile +++ b/apps/nshlib/Makefile @@ -89,13 +89,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) context: diff --git a/apps/vsn/free/Makefile b/apps/vsn/free/Makefile index cac2b1d10..f5e32fac3 100644 --- a/apps/vsn/free/Makefile +++ b/apps/vsn/free/Makefile @@ -70,7 +70,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built context depend clean distclean +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -78,13 +78,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) # Register application diff --git a/apps/vsn/hello/Makefile b/apps/vsn/hello/Makefile index 23aba200c..80d6a03e9 100644 --- a/apps/vsn/hello/Makefile +++ b/apps/vsn/hello/Makefile @@ -70,7 +70,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built context depend clean distclean +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -78,13 +78,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) # Register application diff --git a/apps/vsn/poweroff/Makefile b/apps/vsn/poweroff/Makefile index 5337fd45b..d8badc91c 100644 --- a/apps/vsn/poweroff/Makefile +++ b/apps/vsn/poweroff/Makefile @@ -70,7 +70,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built context depend clean distclean +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -78,13 +78,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) # Register application diff --git a/apps/vsn/ramtron/Makefile b/apps/vsn/ramtron/Makefile index 440af1ceb..f53d3503b 100644 --- a/apps/vsn/ramtron/Makefile +++ b/apps/vsn/ramtron/Makefile @@ -70,7 +70,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built context depend clean distclean +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -78,13 +78,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) # Register application diff --git a/apps/vsn/sdcard/Makefile b/apps/vsn/sdcard/Makefile index 3a7454140..5ecedccdf 100644 --- a/apps/vsn/sdcard/Makefile +++ b/apps/vsn/sdcard/Makefile @@ -70,7 +70,7 @@ ROOTDEPPATH = --dep-path . VPATH = all: .built -.PHONY: .built context depend clean distclean +.PHONY: context depend clean distclean $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) @@ -78,13 +78,11 @@ $(AOBJS): %$(OBJEXT): %.S $(COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(BIN): $(OBJS) +.built: $(OBJS) @( for obj in $(OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ + $(call ARCHIVE, $(BIN), $${obj}); \ done ; ) @touch .built - -.built: $(BIN) # Register application |