alsa-lib/include/Makefile.am

50 lines
1.7 KiB
Text
Raw Normal View History

alsaincludedir = ${includedir}/alsa
alsainclude_HEADERS = asoundlib.h
1998-11-18 20:42:09 +00:00
sysincludedir = ${includedir}/sys
1998-11-18 20:42:09 +00:00
# This is the order they will be concatenated into asoundlib.h!
#
2001-02-09 11:20:31 +00:00
header_files=header.h version.h global.h input.h output.h error.h \
conf.h pcm.h rawmidi.h timer.h \
2001-07-11 15:52:07 +00:00
hwdep.h control.h mixer.h \
seq_event.h seq.h seqmid.h seq_midi_event.h \
conv.h instr.h footer.h
1998-11-18 20:42:09 +00:00
2001-01-01 15:15:41 +00:00
noinst_HEADERS=$(header_files) search.h list.h aserver.h local.h
1998-11-18 20:42:09 +00:00
1998-11-23 22:11:34 +00:00
asoundlib.h: $(header_files)
1998-11-18 20:42:09 +00:00
cat $^ > $@
1998-11-23 22:11:34 +00:00
version.h: stamp-vh
@:
1998-11-21 20:25:43 +00:00
1998-11-23 22:11:34 +00:00
stamp-vh: $(top_builddir)/configure.in
@echo "/*" > ver.tmp
1998-11-23 22:47:35 +00:00
@echo " * version.h" >> ver.tmp
1998-11-23 22:11:34 +00:00
@echo " */" >> ver.tmp
@echo "" >> 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 "/** library version */" >> ver.tmp
1998-11-23 22:47:35 +00:00
@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
1998-11-23 22:47:35 +00:00
@echo "#define SND_LIB_VERSION_STR \"$(SND_LIB_VERSION)\"" >> ver.tmp
1998-11-23 22:11:34 +00:00
@echo >> ver.tmp
@cmp -s version.h ver.tmp \
|| (echo "Updating version.h"; \
cp ver.tmp version.h; \
echo timestamp > stamp-vh)
-@rm -f ver.tmp
INCLUDES=-I$(top_srcdir)/include
install-exec-hook:
rm -f $(alsaincludedir)/asoundef.h
(cd $(DESTDIR)$(alsaincludedir) && $(LN_S) -f ../sound/asoundef.h asoundef.h)
# should be removed in future
$(INSTALL_DATA) sys.h $(DESTDIR)$(sysincludedir)/asoundlib.h