1export DESTDIR ?= 2export PREFIX ?= /usr/local 3 4export INCDIR ?= $(PREFIX)/include/tinyalsa 5export LIBDIR ?= $(PREFIX)/lib 6export BINDIR ?= $(PREFIX)/bin 7export MANDIR ?= $(PREFIX)/share/man 8 9export VERSIONSCRIPT = $(shell pwd)/scripts/version.sh 10 11export TINYALSA_VERSION_MAJOR = $(shell $(VERSIONSCRIPT) -s print major) 12export TINYALSA_VERSION = $(shell $(VERSIONSCRIPT) -s print ) 13 14.PHONY: all 15all: 16 $(MAKE) -C src 17 $(MAKE) -C utils 18 $(MAKE) -C doxygen 19 $(MAKE) -C examples 20 21.PHONY: clean 22clean: 23 $(MAKE) -C src clean 24 $(MAKE) -C utils clean 25 $(MAKE) -C doxygen clean 26 $(MAKE) -C examples clean 27 28.PHONY: install 29install: 30 install -d $(DESTDIR)$(INCDIR)/ 31 install include/tinyalsa/attributes.h $(DESTDIR)$(INCDIR)/ 32 install include/tinyalsa/pcm.h $(DESTDIR)$(INCDIR)/ 33 install include/tinyalsa/mixer.h $(DESTDIR)$(INCDIR)/ 34 install include/tinyalsa/asoundlib.h $(DESTDIR)$(INCDIR)/ 35 install include/tinyalsa/version.h $(DESTDIR)$(INCDIR)/ 36 install include/tinyalsa/plugin.h $(DESTDIR)$(INCDIR)/ 37 $(MAKE) -C src install 38 $(MAKE) -C utils install 39 $(MAKE) -C doxygen install 40 41