diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 16:21:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-01 16:21:43 +0000 |
commit | df32d7971d83e11a941bcf446cd6120707ff5f56 (patch) | |
tree | 6b6cdafda067aa6f2eaddc37fd0a51355190f4fb /nuttx | |
parent | db3c14627515ed025cfbe5d2ef70784b995ac5ba (diff) | |
download | px4-nuttx-df32d7971d83e11a941bcf446cd6120707ff5f56.tar.gz px4-nuttx-df32d7971d83e11a941bcf446cd6120707ff5f56.tar.bz2 px4-nuttx-df32d7971d83e11a941bcf446cd6120707ff5f56.zip |
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
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/arch/sim/src/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile index eace0a903..ec01ce406 100644 --- a/nuttx/arch/sim/src/Makefile +++ b/nuttx/arch/sim/src/Makefile @@ -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 |