diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-13 18:14:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-12-13 18:14:14 +0000 |
commit | 80c5e02241fa0e4275079f45f45372795a3474dd (patch) | |
tree | f85f3f28fae9fb8edfe9695c5ba23a17029f5a0a /apps/examples/nettest | |
parent | ff4f68ec939e07de62e745dcce3536f19c7690f4 (diff) | |
download | px4-nuttx-80c5e02241fa0e4275079f45f45372795a3474dd.tar.gz px4-nuttx-80c5e02241fa0e4275079f45f45372795a3474dd.tar.bz2 px4-nuttx-80c5e02241fa0e4275079f45f45372795a3474dd.zip |
Fix error in nettest build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4170 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nettest')
-rw-r--r-- | apps/examples/nettest/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/apps/examples/nettest/Makefile b/apps/examples/nettest/Makefile index 7ae5d4aff..9f9d79c77 100644 --- a/apps/examples/nettest/Makefile +++ b/apps/examples/nettest/Makefile @@ -54,10 +54,11 @@ TARG_COBJS = $(TARG_CSRCS:.c=$(OBJEXT)) TARG_SRCS = $(TARG_ASRCS) $(TARG_CSRCS) TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS) +TARG_POSIX = "$(APPDIR)/libapps$(LIBEXT)" ifeq ($(WINTOOL),y) TARG_BIN = "${shell cygpath -w $(APPDIR)/libapps$(LIBEXT)}" else - TARG_BIN = "$(APPDIR)/libapps$(LIBEXT)" + TARG_BIN = "$(TARG_POSIX)" endif HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_HOST=1 @@ -97,20 +98,18 @@ $(TARG_AOBJS): %$(OBJEXT): %.S $(TARG_COBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) -$(TARG_BIN): $(TARG_OBJS) $(HOST_BIN) - @( for obj in $(TARG_OBJS) ; do \ - $(call ARCHIVE, $@, $${obj}); \ - done ; ) - $(HOST_OBJS): %.o: %.c - @echo "CC: $<" + @echo "CC: $<" @$(HOSTCC) -c $(HOSTCFLAGS) $< -o $@ $(HOST_BIN): $(HOST_OBJS) - @echo "LD: $@" + @echo "LD: $@" @$(HOSTCC) $(HOSTLDFLAGS) $(HOST_OBJS) -o $@ -.built: $(TARG_BIN) $(HOST_BIN) +.built: $(HOST_BIN) $(TARG_OBJS) + @( for obj in $(TARG_OBJS) ; do \ + $(call ARCHIVE, $@, $${obj}); \ + done ; ) @touch .built .context: @@ -128,7 +127,7 @@ context: .context depend: .depend clean: - @rm -f $(TARG_BIN) $(HOST_BIN) .built *.o *~ .*.swp + @rm -f $(TARG_POSIX) $(HOST_BIN) .built *.o *~ .*.swp $(call CLEAN) distclean: clean |