diff --git a/arch/8051/src/Makefile b/arch/8051/src/Makefile index f045189135..87ff4daf54 100644 --- a/arch/8051/src/Makefile +++ b/arch/8051/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/8051/src/Makefile # -# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2007, 2008, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -107,6 +107,8 @@ STACK_BASE = ${shell \ all: up_head$(OBJEXT) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(ASRCS) $(LINKASRCS): %$(ASMEXT): %.S $(CPP) -P $(CPPFLAGS) $< -o $@ @@ -189,7 +191,7 @@ nuttx$(EXEEXT): pass1.ihx nuttx.ihx # This is part of the top-level export target -export_head: uboard/libboard$(LIBEXT) p_head$(OBJEXT) +export_head: board/libboard$(LIBEXT) p_head$(OBJEXT) @if [ -d "$(EXPORT_DIR)/startup" ]; then \ cp -f up_head$(OBJEXT) "$(EXPORT_DIR)/startup"; \ else \ diff --git a/arch/arm/src/Makefile b/arch/arm/src/Makefile index 7e1cfdb0c8..3868f6c9a0 100644 --- a/arch/arm/src/Makefile +++ b/arch/arm/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/arm/src/Makefile # -# Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -91,6 +91,8 @@ VPATH = chip:common:$(ARCH_SUBDIR) all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(AOBJS) $(HEAD_OBJ): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/arch/avr/src/Makefile b/arch/avr/src/Makefile index fa66d6dfab..7b297f1c1e 100644 --- a/arch/avr/src/Makefile +++ b/arch/avr/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/avr/src/Makefile # -# Copyright (C) 2010-2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2010-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -96,6 +96,8 @@ VPATH = chip:common:$(ARCH_SUBDIR) all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(AOBJS) $(HEAD_OBJ): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/arch/hc/src/Makefile b/arch/hc/src/Makefile index a5e0425a86..101f24e42c 100755 --- a/arch/hc/src/Makefile +++ b/arch/hc/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/hc/src/Makefile # -# Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2009, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -87,6 +87,7 @@ LIBGCC = "${shell $(CC) $(ARCHCPUFLAGS) -print-libgcc-file-name}" VPATH = chip:common:$(ARCH_SUBDIR) all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) $(AOBJS) $(HEAD_OBJ): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/arch/mips/src/Makefile b/arch/mips/src/Makefile index 8d0f4d5af4..b578314415 100644 --- a/arch/mips/src/Makefile +++ b/arch/mips/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/mips/src/Makefile # -# Copyright (C) 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -85,6 +85,8 @@ VPATH = chip:common:$(ARCH_SUBDIR) all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(AOBJS) $(HEAD_OBJ): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/arch/rgmp/src/Makefile b/arch/rgmp/src/Makefile index f973a28fab..4f5d87ad63 100644 --- a/arch/rgmp/src/Makefile +++ b/arch/rgmp/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/rgmp/src/Makefile # -# Copyright (C) 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -56,6 +56,7 @@ LDPATHS += -L$(RGMPLIBDIR) LDLIBS += -lrgmp -lm -ltest $(shell gcc -print-libgcc-file-name) all: libarch$(LIBEXT) + .PHONY: clean distclean depend $(AOBJS): %$(OBJEXT): %.S diff --git a/arch/sh/src/Makefile b/arch/sh/src/Makefile index fdf6cc8526..a9683fe08f 100644 --- a/arch/sh/src/Makefile +++ b/arch/sh/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/sh/src/Makefile # -# Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -65,6 +65,8 @@ VPATH = chip:common all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(AOBJS) $(HEAD_OBJ): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 9189a2165d..e457e54116 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -131,7 +131,8 @@ LDLIBS += -lboard # Make targets begin here all: up_head$(OBJEXT) libarch$(LIBEXT) -.PHONY: export_head clean distclean cleanrel depend + +.PHONY: board/libboard$(LIBEXT) export_head clean distclean cleanrel depend $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/arch/x86/src/Makefile b/arch/x86/src/Makefile index d7b2140c85..e91df0c858 100644 --- a/arch/x86/src/Makefile +++ b/arch/x86/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/x86/src/Makefile # -# Copyright (C) 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -93,6 +93,8 @@ VPATH = chip:common:$(ARCH_SUBDIR) all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(AOBJS) $(HEAD_OBJ): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) diff --git a/arch/z16/src/Makefile b/arch/z16/src/Makefile index 56ae6eb54c..40dc73c5e1 100644 --- a/arch/z16/src/Makefile +++ b/arch/z16/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/z16/src/Makefile # -# Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -71,6 +71,8 @@ VPATH = chip:common all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + ifeq ($(COMPILER),zneocc.exe) $(ASRCS) $(HEAD_ASRC): %$(ASMEXT): %.S @$(CPP) $(CPPFLAGS) $< -o $@.tmp diff --git a/arch/z80/src/Makefile b/arch/z80/src/Makefile index 93f32aa9d2..92759de175 100644 --- a/arch/z80/src/Makefile +++ b/arch/z80/src/Makefile @@ -1,8 +1,8 @@ ############################################################################ # arch/z80/src/Makefile # -# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2007, 2008, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions diff --git a/arch/z80/src/Makefile.sdcc b/arch/z80/src/Makefile.sdcc index a9152ea795..fdb949fa58 100644 --- a/arch/z80/src/Makefile.sdcc +++ b/arch/z80/src/Makefile.sdcc @@ -1,8 +1,8 @@ ############################################################################ # arch/z80/src/Makefile.sdcc # -# Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -86,6 +86,8 @@ HEAP_BASE = ${shell ./mkhpbase.sh} all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(AOBJS) $(HEAD_OBJ): %$(OBJEXT): %$(ASMEXT) $(call ASSEMBLE, $<, $@) diff --git a/arch/z80/src/Makefile.zdsii b/arch/z80/src/Makefile.zdsii index 319d94cb29..a105597a92 100644 --- a/arch/z80/src/Makefile.zdsii +++ b/arch/z80/src/Makefile.zdsii @@ -1,8 +1,8 @@ ############################################################################ # arch/z16/src/Makefile # -# Copyright (C) 2008, 2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -69,8 +69,11 @@ VPATH = chip:common ############################################################################ # Targets + all: $(HEAD_OBJ) libarch$(LIBEXT) +.PHONY: board/libboard$(LIBEXT) + $(HEAD_GENSRC) $(GENSRCS) : %$(ASMEXT): %.S @$(CPP) $(CPPFLAGS) $< -o $@.tmp @cat $@.tmp | sed -e "s/^#/;/g" > $@