summaryrefslogtreecommitdiff
path: root/nuttx/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-07 14:08:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-07 14:08:37 +0000
commitd4f815f5cd39cc0c1730f2e3131540b99ea0d921 (patch)
tree0757b55e583be618fe5eae3079126af82845d33d /nuttx/Makefile
parent5c29bff3aecd7f807c5e5e4bcc7b86a99cad44db (diff)
downloadpx4-nuttx-d4f815f5cd39cc0c1730f2e3131540b99ea0d921.tar.gz
px4-nuttx-d4f815f5cd39cc0c1730f2e3131540b99ea0d921.tar.bz2
px4-nuttx-d4f815f5cd39cc0c1730f2e3131540b99ea0d921.zip
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
Diffstat (limited to 'nuttx/Makefile')
-rw-r--r--nuttx/Makefile16
1 files changed, 15 insertions, 1 deletions
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