diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-04-09 02:02:41 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-04-11 14:59:27 +0200 |
commit | e9f20b8a1a3e58c8832bf4bc74afb1c7917fd07e (patch) | |
tree | 5ed27160a926531d20599641323ef7fedce957a3 /Makefile | |
parent | e8d9c7dfd4f38c6c073dd6e7c86a39a77c4b8938 (diff) | |
download | applause2-e9f20b8a1a3e58c8832bf4bc74afb1c7917fd07e.tar.gz |
added custom interactive Lua interpreter for evaluating applause expressions
* implements Stream:play() using Jack as the audio backend
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..722c053 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +CC = gcc + +CFLAGS = -std=c99 -Wall -O2 + +LUAJIT = yes + +ifeq ($(LUAJIT),yes) +LUA_CFLAGS = $(shell pkg-config --cflags luajit) +LUA_LDFLAGS = $(shell pkg-config --libs luajit) +else +LUA_CFLAGS = $(shell pkg-config --cflags lua5.1) +LUA_LDFLAGS = $(shell pkg-config --libs lua5.1) +endif + +READLINE_CFLAGS = +READLINE_LDFLAGS = -lreadline -lhistory + +JACK_CFLAGS := $(shell pkg-config --cflags jack) +JACK_LDFLAGS := $(shell pkg-config --libs jack) + +CFLAGS += $(LUA_CFLAGS) $(READLINE_CFLAGS) $(JACK_CFLAGS) +LDFLAGS += $(LUA_LDFLAGS) $(READLINE_LDFLAGS) $(JACK_LDFLAGS) + +all : applause + +applause : applause.o + $(CC) -o $@ $< $(LDFLAGS) + +clean: + $(RM) *.o applause |