OSDN Git Service

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