9
0
Fork 0

Fixed dependency problem. nutt.rel must always be rebuilt

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1372 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2008-12-01 16:21:43 +00:00
parent dbd4b4190a
commit 7f28660271
1 changed files with 6 additions and 3 deletions

View File

@ -74,6 +74,7 @@ LDPATHES = $(addprefix -L$(TOPDIR)/,$(dir $(LINKLIBS)))
LDLIBS = $(patsubst lib%,-l%,$(basename $(notdir $(LINKLIBS))))
all: up_head$(OBJEXT) libarch$(LIBEXT)
.PHONY: clean distclean cleanrel depend
$(AOBJS): %$(OBJEXT): %.S
$(call ASSEMBLE, $<, $@)
@ -111,7 +112,7 @@ nuttx.rel : libarch$(LIBEXT) $(HOSTOS)-names.dat $(LINKOBJS)
# Generate the final NuttX binary by linking the host-specific objects with the NuttX
# specific objects (with munged names)
nuttx$(EXEEXT): nuttx.rel $(HOSTOBJS)
nuttx$(EXEEXT): cleanrel nuttx.rel $(HOSTOBJS)
@echo "LD: nuttx$(EXEEXT)"
@$(CC) $(LDFLAGS) $(LDPATHES) -o $(TOPDIR)/$@ nuttx.rel $(HOSTOBJS) $(STDLIBS)
@$(NM) $(TOPDIR)/$@ | \
@ -125,9 +126,11 @@ nuttx$(EXEEXT): nuttx.rel $(HOSTOBJS)
depend: .depend
clean:
@rm -f nuttx.rel libarch$(LIBEXT) *~ .*.swp
cleanrel:
@rm -f nuttx.rel GNU/Linux-names.dat Cygwin-names.dat
clean: cleanrel
@rm -f nuttx.rel libarch$(LIBEXT) *~ .*.swp
$(call CLEAN)
distclean: clean