summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-20 22:07:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-20 22:07:56 +0000
commit60051cba0cf424e01ef2eda09816ee8945867b6d (patch)
tree506ffc7c368b1b0756a12099b0f2401e56ea4496 /apps/examples
parentf6f8f750c7a25d123dc6f20902b38bcda1c95963 (diff)
downloadnuttx-60051cba0cf424e01ef2eda09816ee8945867b6d.tar.gz
nuttx-60051cba0cf424e01ef2eda09816ee8945867b6d.tar.bz2
nuttx-60051cba0cf424e01ef2eda09816ee8945867b6d.zip
More build fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3407 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples')
-rw-r--r--apps/examples/dhcpd/Makefile4
-rw-r--r--apps/examples/hello/Makefile4
-rwxr-xr-xapps/examples/helloxx/Makefile4
-rw-r--r--apps/examples/hidkbd/Makefile4
-rwxr-xr-xapps/examples/igmp/Makefile4
-rw-r--r--apps/examples/mm/Makefile4
-rw-r--r--apps/examples/mount/Makefile4
-rw-r--r--apps/examples/nettest/Makefile2
-rw-r--r--apps/examples/nsh/Makefile4
-rw-r--r--apps/examples/null/Makefile4
-rw-r--r--apps/examples/nx/Makefile4
-rw-r--r--apps/examples/nxflat/Makefile4
-rw-r--r--apps/examples/ostest/Makefile4
-rw-r--r--apps/examples/pashello/Makefile4
-rw-r--r--apps/examples/pipe/Makefile4
-rw-r--r--apps/examples/poll/Makefile4
-rw-r--r--apps/examples/romfs/Makefile4
-rw-r--r--apps/examples/sendmail/Makefile4
-rw-r--r--apps/examples/serloop/Makefile4
-rw-r--r--apps/examples/thttpd/Makefile4
-rw-r--r--apps/examples/udp/Makefile2
-rw-r--r--apps/examples/uip/Makefile4
-rw-r--r--apps/examples/usbserial/Makefile6
-rw-r--r--apps/examples/usbserial/Makefile.host7
-rw-r--r--apps/examples/usbstorage/Makefile4
-rw-r--r--apps/examples/wget/Makefile4
-rwxr-xr-xapps/examples/wlan/Makefile4
27 files changed, 55 insertions, 54 deletions
diff --git a/apps/examples/dhcpd/Makefile b/apps/examples/dhcpd/Makefile
index d3ebff901..d4f03f74b 100644
--- a/apps/examples/dhcpd/Makefile
+++ b/apps/examples/dhcpd/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/hello/Makefile b/apps/examples/hello/Makefile
index 73430c5c5..c856f145f 100644
--- a/apps/examples/hello/Makefile
+++ b/apps/examples/hello/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/helloxx/Makefile b/apps/examples/helloxx/Makefile
index 69c4e08eb..5cbf55ef3 100755
--- a/apps/examples/helloxx/Makefile
+++ b/apps/examples/helloxx/Makefile
@@ -50,7 +50,7 @@ CXXOBJS = $(CXXSRCS:.cxx=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS)
OBJS = $(AOBJS) $(COBJS) $(CXXOBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -98,7 +98,7 @@ $(BIN): chkcxx $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/hidkbd/Makefile b/apps/examples/hidkbd/Makefile
index c0c21d6da..48b0c90a2 100644
--- a/apps/examples/hidkbd/Makefile
+++ b/apps/examples/hidkbd/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/igmp/Makefile b/apps/examples/igmp/Makefile
index 99971469b..d1362f0b8 100755
--- a/apps/examples/igmp/Makefile
+++ b/apps/examples/igmp/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/mm/Makefile b/apps/examples/mm/Makefile
index c9ef6f907..747a1a1e2 100644
--- a/apps/examples/mm/Makefile
+++ b/apps/examples/mm/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/mount/Makefile b/apps/examples/mount/Makefile
index 46a8c0576..04d2d21f6 100644
--- a/apps/examples/mount/Makefile
+++ b/apps/examples/mount/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile
index 37d00914e..52e205f34 100644
--- a/apps/examples/nettest/Makefile
+++ b/apps/examples/nettest/Makefile
@@ -54,7 +54,7 @@ TARG_COBJS = $(TARG_CSRCS:.c=$(OBJEXT))
TARG_SRCS = $(TARG_ASRCS) $(TARG_CSRCS)
TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS)
-TARG_BIN = ../../libapps$(LIBEXT)
+TARG_BIN = $(APPDIR)/libapps$(LIBEXT)
HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_HOST=1
ifeq ($(CONFIG_EXAMPLE_NETTEST_SERVER),y)
diff --git a/apps/examples/nsh/Makefile b/apps/examples/nsh/Makefile
index 92fd8e157..1887d3bbe 100644
--- a/apps/examples/nsh/Makefile
+++ b/apps/examples/nsh/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/null/Makefile b/apps/examples/null/Makefile
index 2b4171e7f..9d842638a 100644
--- a/apps/examples/null/Makefile
+++ b/apps/examples/null/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/nx/Makefile b/apps/examples/nx/Makefile
index bfb0d473e..72ba1915f 100644
--- a/apps/examples/nx/Makefile
+++ b/apps/examples/nx/Makefile
@@ -51,7 +51,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -84,7 +84,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/nxflat/Makefile b/apps/examples/nxflat/Makefile
index b5f3e2d8c..73a5a95d1 100644
--- a/apps/examples/nxflat/Makefile
+++ b/apps/examples/nxflat/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -86,7 +86,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/ostest/Makefile b/apps/examples/ostest/Makefile
index 0e50db434..469fe032a 100644
--- a/apps/examples/ostest/Makefile
+++ b/apps/examples/ostest/Makefile
@@ -88,7 +88,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -121,7 +121,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/pashello/Makefile b/apps/examples/pashello/Makefile
index 501ac2d19..6e2579191 100644
--- a/apps/examples/pashello/Makefile
+++ b/apps/examples/pashello/Makefile
@@ -55,7 +55,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -88,7 +88,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/pipe/Makefile b/apps/examples/pipe/Makefile
index 886409f62..e46bbdd82 100644
--- a/apps/examples/pipe/Makefile
+++ b/apps/examples/pipe/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/poll/Makefile b/apps/examples/poll/Makefile
index 0bfc97ec1..e33e493f1 100644
--- a/apps/examples/poll/Makefile
+++ b/apps/examples/poll/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/romfs/Makefile b/apps/examples/romfs/Makefile
index 70b5e869c..7e12866f8 100644
--- a/apps/examples/romfs/Makefile
+++ b/apps/examples/romfs/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -97,7 +97,7 @@ $(BIN): romfs_testdir.h $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/sendmail/Makefile b/apps/examples/sendmail/Makefile
index def179856..81aed5ca6 100644
--- a/apps/examples/sendmail/Makefile
+++ b/apps/examples/sendmail/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
@make -f Makefile.host clean TOPDIR=$(TOPDIR) APPDIR=$(APPDIR)
diff --git a/apps/examples/serloop/Makefile b/apps/examples/serloop/Makefile
index 99b1aab67..c3c0274db 100644
--- a/apps/examples/serloop/Makefile
+++ b/apps/examples/serloop/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/thttpd/Makefile b/apps/examples/thttpd/Makefile
index acc49d9ac..91c8c19e1 100644
--- a/apps/examples/thttpd/Makefile
+++ b/apps/examples/thttpd/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -84,7 +84,7 @@ $(BIN): headers $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
@make -C content clean TOPDIR=$(TOPDIR) APPDIR=$(APPDIR) CROSSDEV=$(CROSSDEV)
$(call CLEAN)
diff --git a/apps/examples/udp/Makefile b/apps/examples/udp/Makefile
index e0789eda8..ddffda703 100644
--- a/apps/examples/udp/Makefile
+++ b/apps/examples/udp/Makefile
@@ -54,7 +54,7 @@ TARG_COBJS = $(TARG_CSRCS:.c=$(OBJEXT))
TARG_SRCS = $(TARG_ASRCS) $(TARG_CSRCS)
TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS)
-TARG_BIN = ../../libapps$(LIBEXT)
+TARG_BIN = $(APPDIR)/libapps$(LIBEXT)
HOSTCFLAGS += -DCONFIG_EXAMPLE_UDP_HOST=1
ifeq ($(CONFIG_EXAMPLE_UDP_SERVER),y)
diff --git a/apps/examples/uip/Makefile b/apps/examples/uip/Makefile
index 2dd209df3..08abe15b0 100644
--- a/apps/examples/uip/Makefile
+++ b/apps/examples/uip/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/usbserial/Makefile b/apps/examples/usbserial/Makefile
index 61fba5244..2ac0cb085 100644
--- a/apps/examples/usbserial/Makefile
+++ b/apps/examples/usbserial/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,9 +81,9 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
- @(MAKE) -f Makefile.host clean TOPDIR=$(TOPDIR) APPDIR=$(APPDIR)
+ @$(MAKE) -f Makefile.host clean TOPDIR=$(TOPDIR) APPDIR=$(APPDIR)
distclean: clean
@rm -f Make.dep .depend
diff --git a/apps/examples/usbserial/Makefile.host b/apps/examples/usbserial/Makefile.host
index 8c8884b42..cd9319ab3 100644
--- a/apps/examples/usbserial/Makefile.host
+++ b/apps/examples/usbserial/Makefile.host
@@ -39,7 +39,7 @@
-include $(TOPDIR)/Make.defs
SRC = host.c
-BIN = host
+BIN = host$(EXEEXT)
DEFINES =
ifeq ($(CONFIG_EXAMPLES_USBSERIAL_INONLY),y)
@@ -55,12 +55,13 @@ ifeq ($(CONFIG_EXAMPLES_USBSERIAL_ONLYBIG),y)
DEFINES += -DCONFIG_EXAMPLES_USBSERIAL_ONLYBIG=1
endif
-all: $(BIN)$(EXEEXT)
+all: $(BIN)
-$(BIN)$(EXEEXT): $(SRC)
+$(BIN): $(SRC)
@$(HOSTCC) $(HOSTCFLAGS) $(DEFINES) $^ -o $@
clean:
@rm -f $(BIN) *~ .*.swp *.o
$(call CLEAN)
+
diff --git a/apps/examples/usbstorage/Makefile b/apps/examples/usbstorage/Makefile
index 7f777dfec..5e8983f46 100644
--- a/apps/examples/usbstorage/Makefile
+++ b/apps/examples/usbstorage/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean
diff --git a/apps/examples/wget/Makefile b/apps/examples/wget/Makefile
index e39d5f68a..b9cc15510 100644
--- a/apps/examples/wget/Makefile
+++ b/apps/examples/wget/Makefile
@@ -48,7 +48,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -81,7 +81,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
@make -f Makefile.host clean TOPDIR=$(TOPDIR) APPDIR=$(APPDIR)
diff --git a/apps/examples/wlan/Makefile b/apps/examples/wlan/Makefile
index 53f871543..756389571 100755
--- a/apps/examples/wlan/Makefile
+++ b/apps/examples/wlan/Makefile
@@ -49,7 +49,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = ../../libapps$(LIBEXT)
+BIN = $(APPDIR)/libapps$(LIBEXT)
ROOTDEPPATH = --dep-path .
@@ -82,7 +82,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- @rm -f $(BIN) *.o *~ .*.swp .built
+ @rm -f *.o *~ .*.swp .built
$(call CLEAN)
distclean: clean