diff options
author | Taylor Holberton <taylorcholberton@gmail.com> | 2016-10-01 12:33:46 -0400 |
---|---|---|
committer | Taylor Holberton <taylorcholberton@gmail.com> | 2016-10-01 12:33:46 -0400 |
commit | b88fd4ff9c6ae7af26c81b6fee069dc90ef2707d (patch) | |
tree | 9b4aff781116b8c812bcf7c7a70c9581b7c56fae /utils/Makefile | |
parent | c01d4a386cfc5997f877ae44712ea6304e8756bd (diff) |
put programs into utils dir
Diffstat (limited to 'utils/Makefile')
-rw-r--r-- | utils/Makefile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/utils/Makefile b/utils/Makefile new file mode 100644 index 0000000..0270975 --- /dev/null +++ b/utils/Makefile @@ -0,0 +1,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/ + |