summaryrefslogtreecommitdiff
path: root/nuttx/Makefile.unix
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.unix
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.unix')
-rw-r--r--nuttx/Makefile.unix18
1 files changed, 18 insertions, 0 deletions
diff --git a/nuttx/Makefile.unix b/nuttx/Makefile.unix
index b998dd358..6d78d505d 100644
--- a/nuttx/Makefile.unix
+++ b/nuttx/Makefile.unix
@@ -140,6 +140,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.
@@ -252,6 +258,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))
@@ -508,6 +520,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)