aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: aa6c49d85830ba8a5b503fe36a5f2e466b1b73a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export TOPDIR = $(shell pwd)
export SRCDIR = $(TOPDIR)/src
export INCDIR = $(TOPDIR)/include

export DESTDIR ?=
export PREFIX ?= /usr/local
export CROSS_COMPILE =

.PHONY: all
all:
	$(MAKE) -C src
	$(MAKE) -C utils

.PHONY: clean
clean:
	$(MAKE) -C src clean
	$(MAKE) -C utils clean

.PHONY: install
install: $(LIB) $(SHLIB)
	mkdir -p $(PREFIX)/include/tinyalsa
	cp -Ru $(INCDIR)/tinyalsa $(PREFIX)/include/
	$(MAKE) -C src install
	$(MAKE) -C utils install