Fixed dependency problem. nutt.rel must always be rebuilt
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1372 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
531c96260b
commit
b35dbe65a7
@ -74,6 +74,7 @@ LDPATHES = $(addprefix -L$(TOPDIR)/,$(dir $(LINKLIBS)))
|
|||||||
LDLIBS = $(patsubst lib%,-l%,$(basename $(notdir $(LINKLIBS))))
|
LDLIBS = $(patsubst lib%,-l%,$(basename $(notdir $(LINKLIBS))))
|
||||||
|
|
||||||
all: up_head$(OBJEXT) libarch$(LIBEXT)
|
all: up_head$(OBJEXT) libarch$(LIBEXT)
|
||||||
|
.PHONY: clean distclean cleanrel depend
|
||||||
|
|
||||||
$(AOBJS): %$(OBJEXT): %.S
|
$(AOBJS): %$(OBJEXT): %.S
|
||||||
$(call ASSEMBLE, $<, $@)
|
$(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
|
# Generate the final NuttX binary by linking the host-specific objects with the NuttX
|
||||||
# specific objects (with munged names)
|
# specific objects (with munged names)
|
||||||
|
|
||||||
nuttx$(EXEEXT): nuttx.rel $(HOSTOBJS)
|
nuttx$(EXEEXT): cleanrel nuttx.rel $(HOSTOBJS)
|
||||||
@echo "LD: nuttx$(EXEEXT)"
|
@echo "LD: nuttx$(EXEEXT)"
|
||||||
@$(CC) $(LDFLAGS) $(LDPATHES) -o $(TOPDIR)/$@ nuttx.rel $(HOSTOBJS) $(STDLIBS)
|
@$(CC) $(LDFLAGS) $(LDPATHES) -o $(TOPDIR)/$@ nuttx.rel $(HOSTOBJS) $(STDLIBS)
|
||||||
@$(NM) $(TOPDIR)/$@ | \
|
@$(NM) $(TOPDIR)/$@ | \
|
||||||
@ -125,9 +126,11 @@ nuttx$(EXEEXT): nuttx.rel $(HOSTOBJS)
|
|||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|
||||||
clean:
|
cleanrel:
|
||||||
@rm -f nuttx.rel libarch$(LIBEXT) *~ .*.swp
|
|
||||||
@rm -f nuttx.rel GNU/Linux-names.dat Cygwin-names.dat
|
@rm -f nuttx.rel GNU/Linux-names.dat Cygwin-names.dat
|
||||||
|
|
||||||
|
clean: cleanrel
|
||||||
|
@rm -f nuttx.rel libarch$(LIBEXT) *~ .*.swp
|
||||||
$(call CLEAN)
|
$(call CLEAN)
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user