From 4aefe7ad7b912ed2619d7ecef296aeccc1aa0a03 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 1 Jun 2008 13:27:17 +0000 Subject: [PATCH] Fix dependency git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@760 42af7a65-404d-4744-a932-0658087f49c3 --- arch/sim/src/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 919058d93eb..f7f323754e6 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -82,7 +82,8 @@ $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c $(call COMPILE, $<, $@) $(HOSTOBJS): %$(OBJEXT): %.c - $(CC) -c $(HOSTCFLAGS) $< -o $@ + @echo "CC: $<" + @$(CC) -c $(HOSTCFLAGS) $< -o $@ # The architecture-specific library libarch$(LIBEXT): $(NXOBJS) @@ -99,10 +100,10 @@ Linux-names.dat: nuttx-names.dat Cygwin-names.dat: nuttx-names.dat @cat $^ | sed -e "s/^/_/g" >$@ -nuttx.rel : $(HOSTOS)-names.dat $(LINKOBJS) +nuttx.rel : libarch$(LIBEXT) $(HOSTOS)-names.dat $(LINKOBJS) @echo "LD: nuttx.rel" @$(LD) -r $(LDFLAGS) $(LDPATHES) -o $@ $(LINKOBJS) --start-group $(LDLIBS) --end-group $(EXTRA_LIBS) - $(OBJCOPY) --redefine-syms=$(HOSTOS)-names.dat nuttx.rel + @$(OBJCOPY) --redefine-syms=$(HOSTOS)-names.dat $@ # Generate the final NuttX binary by linking the host-specific objects with the NuttX # specific objects (with munged names)