OSDN Git Service

Add SND_CHMAP_NA and bit flag definitions
[android-x86/external-alsa-lib.git] / include / Makefile.am
index e6fcfe2..de37f2c 100644 (file)
@@ -1,20 +1,64 @@
+SUBDIRS = sound
+
 sysincludedir = ${includedir}/sys
-sysinclude_HEADERS = asoundlib.h
+alsaincludedir = ${includedir}/alsa
+
+alsainclude_HEADERS = asoundlib.h asoundef.h \
+                     version.h global.h input.h output.h error.h \
+                     conf.h control.h iatomic.h use-case.h
+
+if BUILD_CTL_PLUGIN_EXT
+alsainclude_HEADERS += control_external.h
+endif
+
+if BUILD_PCM
+alsainclude_HEADERS += pcm.h pcm_old.h timer.h
+if BUILD_PCM_PLUGIN
+alsainclude_HEADERS += pcm_plugin.h
+endif
+if BUILD_PCM_PLUGIN_RATE
+alsainclude_HEADERS += pcm_rate.h 
+endif
+if BUILD_PCM_PLUGIN_EXTPLUG
+alsainclude_HEADERS += pcm_external.h pcm_extplug.h
+endif
+if BUILD_PCM_PLUGIN_IOPLUG
+if !BUILD_PCM_PLUGIN_EXTPLUG
+alsainclude_HEADERS += pcm_external.h
+endif
+alsainclude_HEADERS += pcm_ioplug.h
+endif
+endif
+
+if BUILD_RAWMIDI
+alsainclude_HEADERS += rawmidi.h
+endif
 
-# This is the order they will be concatenated into asoundlib.h!
-#
-header_files=header.h version.h global.h input.h output.h error.h mixer.h \
-            pcm.h pcm_m4.h rawmidi.h rawmidi_m4.h timer.h \
-            hwdep.h hwdep_m4.h control.h \
-            seq.h seqmid.h seq_midi_event.h \
-             conv.h instr.h conf.h footer.h
+if BUILD_HWDEP
+alsainclude_HEADERS += hwdep.h
+endif
 
-noinst_HEADERS=$(header_files) search.h list.h aserver.h local.h
+if BUILD_MIXER
+alsainclude_HEADERS += mixer.h mixer_abst.h
+endif
 
-asoundlib.h: $(header_files)
-       cat $^ > $@
+if BUILD_SEQ
+alsainclude_HEADERS += seq_event.h seq.h seqmid.h seq_midi_event.h
+endif
 
-version.h: stamp-vh
+if BUILD_ALISP
+alsainclude_HEADERS += alisp.h
+endif
+
+noinst_HEADERS = alsa sys.h search.h list.h aserver.h local.h alsa-symbols.h \
+       asoundlib-head.h asoundlib-tail.h
+
+DISTCLEANFILES = stamp-vh version.h alsa asoundlib.h
+
+alsa:
+       ln -s $(top_srcdir)/include alsa
+
+version.h: stamp-vh alsa
        @:
 
 stamp-vh: $(top_builddir)/configure.in
@@ -22,12 +66,15 @@ stamp-vh: $(top_builddir)/configure.in
        @echo " *  version.h" >> ver.tmp
        @echo " */" >> ver.tmp
        @echo "" >> ver.tmp
-       @echo "#define SND_LIB_MAJOR            $(SND_LIB_MAJOR)" >> ver.tmp
-       @echo "#define SND_LIB_MINOR            $(SND_LIB_MINOR)" >> ver.tmp
-       @echo "#define SND_LIB_SUBMINOR $(SND_LIB_SUBMINOR)" >> ver.tmp
+       @echo "#define SND_LIB_MAJOR            $(SND_LIB_MAJOR) /**< major number of library version */" >> ver.tmp
+       @echo "#define SND_LIB_MINOR            $(SND_LIB_MINOR) /**< minor number of library version */" >> ver.tmp
+       @echo "#define SND_LIB_SUBMINOR $(SND_LIB_SUBMINOR) /**< subminor number of library version */" >> ver.tmp
+       @echo "#define SND_LIB_EXTRAVER $(SND_LIB_EXTRAVER) /**< extra version number, used mainly for betas */" >> ver.tmp
+       @echo "/** library version */" >> ver.tmp
        @echo "#define SND_LIB_VERSION          ((SND_LIB_MAJOR<<16)|\\" >> ver.tmp
        @echo "                          (SND_LIB_MINOR<<8)|\\" >> ver.tmp
        @echo "                           SND_LIB_SUBMINOR)" >> ver.tmp
+       @echo "/** library version (string) */" >> ver.tmp
        @echo "#define SND_LIB_VERSION_STR      \"$(SND_LIB_VERSION)\"" >> ver.tmp
        @echo >> ver.tmp
        @cmp -s version.h ver.tmp \
@@ -37,3 +84,7 @@ stamp-vh: $(top_builddir)/configure.in
        -@rm -f ver.tmp
 
 INCLUDES=-I$(top_srcdir)/include
+
+install-data-hook:
+       test -d $(DESTDIR)$(sysincludedir) || mkdir -p $(DESTDIR)$(sysincludedir)
+       $(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h