3 sysincludedir = ${includedir}/sys
4 alsaincludedir = ${includedir}/alsa
6 alsainclude_HEADERS = asoundlib.h asoundef.h \
7 version.h global.h input.h output.h error.h \
8 conf.h control.h iatomic.h use-case.h
10 if BUILD_CTL_PLUGIN_EXT
11 alsainclude_HEADERS += control_external.h
15 alsainclude_HEADERS += pcm.h pcm_old.h timer.h
17 alsainclude_HEADERS += pcm_plugin.h
19 if BUILD_PCM_PLUGIN_RATE
20 alsainclude_HEADERS += pcm_rate.h
22 if BUILD_PCM_PLUGIN_EXTPLUG
23 alsainclude_HEADERS += pcm_external.h pcm_extplug.h
25 if BUILD_PCM_PLUGIN_IOPLUG
26 if !BUILD_PCM_PLUGIN_EXTPLUG
27 alsainclude_HEADERS += pcm_external.h
29 alsainclude_HEADERS += pcm_ioplug.h
34 alsainclude_HEADERS += rawmidi.h
38 alsainclude_HEADERS += hwdep.h
42 alsainclude_HEADERS += mixer.h mixer_abst.h
46 alsainclude_HEADERS += seq_event.h seq.h seqmid.h seq_midi_event.h
50 alsainclude_HEADERS += alisp.h
53 noinst_HEADERS = alsa sys.h search.h list.h aserver.h local.h alsa-symbols.h \
54 asoundlib-head.h asoundlib-tail.h
56 DISTCLEANFILES = stamp-vh version.h alsa asoundlib.h
59 ln -s $(top_srcdir)/include alsa
61 version.h: stamp-vh alsa
64 stamp-vh: $(top_builddir)/configure.in
66 @echo " * version.h" >> ver.tmp
67 @echo " */" >> ver.tmp
69 @echo "#define SND_LIB_MAJOR $(SND_LIB_MAJOR) /**< major number of library version */" >> ver.tmp
70 @echo "#define SND_LIB_MINOR $(SND_LIB_MINOR) /**< minor number of library version */" >> ver.tmp
71 @echo "#define SND_LIB_SUBMINOR $(SND_LIB_SUBMINOR) /**< subminor number of library version */" >> ver.tmp
72 @echo "#define SND_LIB_EXTRAVER $(SND_LIB_EXTRAVER) /**< extra version number, used mainly for betas */" >> ver.tmp
73 @echo "/** library version */" >> ver.tmp
74 @echo "#define SND_LIB_VERSION ((SND_LIB_MAJOR<<16)|\\" >> ver.tmp
75 @echo " (SND_LIB_MINOR<<8)|\\" >> ver.tmp
76 @echo " SND_LIB_SUBMINOR)" >> ver.tmp
77 @echo "/** library version (string) */" >> ver.tmp
78 @echo "#define SND_LIB_VERSION_STR \"$(SND_LIB_VERSION)\"" >> ver.tmp
80 @cmp -s version.h ver.tmp \
81 || (echo "Updating version.h"; \
82 cp ver.tmp version.h; \
83 echo timestamp > stamp-vh)
86 INCLUDES=-I$(top_srcdir)/include
89 test -d $(DESTDIR)$(sysincludedir) || mkdir -p $(DESTDIR)$(sysincludedir)
90 $(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h