aboutsummaryrefslogtreecommitdiff
path: root/utils/Makefile
blob: d591d15cc222683ded3cab99e7dc570a75208a69 (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
35
36
37
38
39
40
TOPDIR ?= ..
SRCDIR ?= $(TOPDIR)
INCDIR ?= $(TOPDIR)/include

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

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

LD = $(CROSS_COMPILE)ld
LDFLAGS ?=

VPATH = $(SRCDIR)

.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/