1SUBDIRS = sound 2 3sysincludedir = ${includedir}/sys 4alsaincludedir = ${includedir}/alsa 5 6alsainclude_HEADERS = asoundlib.h asoundef.h \ 7 version.h global.h input.h output.h error.h \ 8 conf.h control.h 9 10if BUILD_CTL_PLUGIN 11alsainclude_HEADERS += control_plugin.h 12endif 13if BUILD_CTL_PLUGIN_EXT 14alsainclude_HEADERS += control_external.h 15endif 16 17if BUILD_PCM 18alsainclude_HEADERS += pcm.h pcm_old.h timer.h 19if BUILD_PCM_PLUGIN 20alsainclude_HEADERS += pcm_plugin.h 21endif 22if BUILD_PCM_PLUGIN_RATE 23alsainclude_HEADERS += pcm_rate.h 24endif 25if BUILD_PCM_PLUGIN_EXTPLUG 26alsainclude_HEADERS += pcm_external.h pcm_extplug.h 27endif 28if BUILD_PCM_PLUGIN_IOPLUG 29if !BUILD_PCM_PLUGIN_EXTPLUG 30alsainclude_HEADERS += pcm_external.h 31endif 32alsainclude_HEADERS += pcm_ioplug.h 33endif 34endif 35 36if BUILD_RAWMIDI 37alsainclude_HEADERS += rawmidi.h 38endif 39 40if BUILD_HWDEP 41alsainclude_HEADERS += hwdep.h 42endif 43 44if BUILD_MIXER 45alsainclude_HEADERS += mixer.h mixer_abst.h 46endif 47 48if BUILD_SEQ 49alsainclude_HEADERS += seq_event.h seq.h seqmid.h seq_midi_event.h 50endif 51 52if BUILD_UCM 53alsainclude_HEADERS += use-case.h 54endif 55 56if BUILD_TOPOLOGY 57alsainclude_HEADERS += topology.h 58endif 59 60if BUILD_ALISP 61alsainclude_HEADERS += alisp.h 62endif 63 64noinst_HEADERS = alsa sys.h search.h list.h aserver.h local.h alsa-symbols.h \ 65 asoundlib-head.h asoundlib-tail.h bswap.h type_compat.h 66 67DISTCLEANFILES = stamp-vh version.h alsa asoundlib.h 68 69.DUMMY: alsa_link 70alsa_link: 71 if ! test -r alsa/local.h; then \ 72 ln -s $(top_srcdir)/include alsa; \ 73 fi 74 75version.h: stamp-vh alsa_link 76 for f in asoundlib.h version.h; do \ 77 if ! test -r $(top_srcdir)/include/$$f; then \ 78 ln -s $(abs_top_builddir)/include/$$f $(top_srcdir)/include/$$f; \ 79 fi; \ 80 done 81 82stamp-vh: $(top_builddir)/configure.ac 83 @echo "/*" > ver.tmp 84 @echo " * version.h" >> ver.tmp 85 @echo " */" >> ver.tmp 86 @echo "" >> ver.tmp 87 @echo "#define SND_LIB_MAJOR $(SND_LIB_MAJOR) /**< major number of library version */" >> ver.tmp 88 @echo "#define SND_LIB_MINOR $(SND_LIB_MINOR) /**< minor number of library version */" >> ver.tmp 89 @echo "#define SND_LIB_SUBMINOR $(SND_LIB_SUBMINOR) /**< subminor number of library version */" >> ver.tmp 90 @echo "#define SND_LIB_EXTRAVER $(SND_LIB_EXTRAVER) /**< extra version number, used mainly for betas */" >> ver.tmp 91 @echo "/** library version */" >> ver.tmp 92 @echo "#define SND_LIB_VER(maj, min, sub) (((maj)<<16)|((min)<<8)|(sub))" >> ver.tmp 93 @echo "#define SND_LIB_VERSION SND_LIB_VER(SND_LIB_MAJOR, SND_LIB_MINOR, SND_LIB_SUBMINOR)" >> ver.tmp 94 @echo "/** library version (string) */" >> ver.tmp 95 @echo "#define SND_LIB_VERSION_STR \"$(SND_LIB_VERSION)\"" >> ver.tmp 96 @echo >> ver.tmp 97 @cmp -s version.h ver.tmp \ 98 || (echo "Updating version.h"; \ 99 cp ver.tmp version.h; \ 100 echo timestamp > stamp-vh) 101 -@rm -f ver.tmp 102 103AM_CPPFLAGS=-I$(top_srcdir)/include 104 105install-data-hook: 106 test -d $(DESTDIR)$(sysincludedir) || mkdir -p $(DESTDIR)$(sysincludedir) 107 $(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h 108 $(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(includedir)/asoundlib.h 109