Home | History | Annotate | Download | only in include
      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 iatomic.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_ALISP
     50 alsainclude_HEADERS += alisp.h
     51 endif
     52 
     53 noinst_HEADERS = alsa sys.h search.h list.h aserver.h local.h alsa-symbols.h \
     54 	asoundlib-head.h asoundlib-tail.h
     55 
     56 DISTCLEANFILES = stamp-vh version.h alsa asoundlib.h
     57 
     58 alsa:
     59 	ln -s $(top_srcdir)/include alsa
     60 
     61 version.h: stamp-vh alsa
     62 	@:
     63 
     64 stamp-vh: $(top_builddir)/configure.in
     65 	@echo "/*" > ver.tmp
     66 	@echo " *  version.h" >> ver.tmp
     67 	@echo " */" >> ver.tmp
     68 	@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
     79 	@echo >> 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)
     84 	-@rm -f ver.tmp
     85 
     86 INCLUDES=-I$(top_srcdir)/include
     87 
     88 install-data-hook:
     89 	test -d $(DESTDIR)$(sysincludedir) || mkdir -p $(DESTDIR)$(sysincludedir)
     90 	$(INSTALL_DATA) $(srcdir)/sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h
     91