summaryrefslogtreecommitdiff
path: root/nuttx/Makefile.win
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-05-19 15:12:28 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-05-19 15:12:28 -0600
commitb97a5893e75583cc0d2afeb5c3bcf1f52331a55d (patch)
tree607094cfdf7856d0e0c01f6b762d5bbf1b2df28e /nuttx/Makefile.win
parent13cbdd000fffdd62699e6af081f06ff847d5a5cc (diff)
downloadpx4-nuttx-b97a5893e75583cc0d2afeb5c3bcf1f52331a55d.tar.gz
px4-nuttx-b97a5893e75583cc0d2afeb5c3bcf1f52331a55d.tar.bz2
px4-nuttx-b97a5893e75583cc0d2afeb5c3bcf1f52331a55d.zip
Add audio/ sub-syste, include/nuttx/audio.h interface, and drivers/audio/vs1053.c driver to NuttX. From Ken Pettit
Diffstat (limited to 'nuttx/Makefile.win')
-rw-r--r--nuttx/Makefile.win18
1 files changed, 18 insertions, 0 deletions
diff --git a/nuttx/Makefile.win b/nuttx/Makefile.win
index 013281a41..a424580b7 100644
--- a/nuttx/Makefile.win
+++ b/nuttx/Makefile.win
@@ -133,6 +133,12 @@ else
OTHERDIRS += graphics
endif
+ifeq ($(CONFIG_AUDIO),y)
+NONFSDIRS += audio
+else
+OTHERDIRS += audio
+endif
+
# CLEANDIRS are the directories that will clean in. These are
# all directories that we know about.
# KERNDEPDIRS are the directories in which we will build target dependencies.
@@ -245,6 +251,12 @@ ifeq ($(CONFIG_NX),y)
NUTTXLIBS += lib\libgraphics$(LIBEXT)
endif
+# Add libraries for the Audio sub-system
+
+ifeq ($(CONFIG_AUDIO),y)
+NUTTXLIBS += lib\libaudio$(LIBEXT)
+endif
+
# LINKLIBS derives from NUTTXLIBS and is simply the same list with the subdirectory removed
LINKLIBS = $(patsubst lib\\%,%,$(NUTTXLIBS))
@@ -524,6 +536,12 @@ graphics\libgraphics$(LIBEXT): context
lib\libgraphics$(LIBEXT): graphics\libgraphics$(LIBEXT)
$(Q) install graphics\libgraphics$(LIBEXT) lib\libgraphics$(LIBEXT)
+audio\libaudio$(LIBEXT): context
+ $(Q) $(MAKE) -C audio TOPDIR="$(TOPDIR)" libaudio$(LIBEXT) EXTRADEFINES=$(KDEFINE)
+
+lib\libaudio$(LIBEXT): audio\libaudio$(LIBEXT)
+ $(Q) install audio\libaudio$(LIBEXT) lib\libaudio$(LIBEXT)
+
syscall\libstubs$(LIBEXT): context
$(Q) $(MAKE) -C syscall TOPDIR="$(TOPDIR)" libstubs$(LIBEXT) EXTRADEFINES=$(KDEFINE)