From d4f815f5cd39cc0c1730f2e3131540b99ea0d921 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sat, 7 Apr 2012 14:08:37 +0000 Subject: Move include/math.h to include/nuttx/math.h git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4568 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'nuttx/Makefile') diff --git a/nuttx/Makefile b/nuttx/Makefile index a413fb7a2..4b832898e 100644 --- a/nuttx/Makefile +++ b/nuttx/Makefile @@ -251,6 +251,18 @@ BIN = nuttx$(EXEEXT) all: $(BIN) .PHONY: context clean_context check_context export subdir_clean clean subdir_distclean distclean apps_clean apps_distclean +# Targets used to copy include/nuttx/math.h. If CONFIG_ARCH_MATH_H is +# defined, then there is an architecture specific math.h header file +# that will be included indirectly from include/math.h. But first, we +# have to copy math.h from include/nuttx/. to include/. + +ifeq ($(CONFIG_ARCH_MATH_H),y) +include/math.h: include/nuttx/math.h + @cp -f include/nuttx/math.h include/math.h +else +include/math.h: +endif + # Targets used to build include/nuttx/version.h. Creation of version.h is # part of the overall NuttX configuration sequency. Notice that the # tools/mkversion tool is cuilt and used to create include/nuttx/version.h @@ -331,7 +343,7 @@ dirlinks: include/arch include/arch/board include/arch/chip $(ARCH_SRC)/board $( # the config.h and version.h header files in the include/nuttx directory and # the establishment of symbolic links to configured directories. -context: check_context include/nuttx/config.h include/nuttx/version.h dirlinks +context: check_context include/nuttx/config.h include/nuttx/version.h include/math.h dirlinks @for dir in $(CONTEXTDIRS) ; do \ $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" context; \ done @@ -343,6 +355,8 @@ context: check_context include/nuttx/config.h include/nuttx/version.h dirlinks clean_context: @rm -f include/nuttx/config.h + @rm -f include/nuttx/version.h + @rm -f include/math.h @$(DIRUNLINK) include/arch/board @$(DIRUNLINK) include/arch/chip @$(DIRUNLINK) include/arch -- cgit v1.2.3