aboutsummaryrefslogtreecommitdiff
path: root/utils/Makefile
blob: 02709753a4797560732b19aff73ef7a1d31b6061 (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
26
27
28
29
30
31
32
33
34
DESTDIR ?=
PREFIX ?= /usr/local
CROSS_COMPILE ?=

CC = $(CROSS_COMPILE)gcc
CFLAGS ?= -Wall -Wextra -Werror -Wfatal-errors

LD = $(CROSS_COMPILE)ld
LDFLAGS ?=

.PHONY: all
all: tinyplay tinycap tinymix tinypcminfo

tinyplay: tinyplay.c -ltinyalsa

tinycap: tinycap.c -ltinyalsa

tinymix: tinymix.c -ltinyalsa

tinypcminfo: tinypcminfo.c -ltinyalsa

.PHONY: clean
clean:
	rm -f tinyplay tinycap
	rm -f tinymix
	rm -f tinypcminfo

.PHONY: install
install: tinyplay tinycap tinymix tinypcminfo
	cp -u tinyplay $(PREFIX)/bin/
	cp -u tinycap $(PREFIX)/bin/
	cp -u tinymix $(PREFIX)/bin/
	cp -u tinypcminfo $(PREFIX)/bin/