From e9f20b8a1a3e58c8832bf4bc74afb1c7917fd07e Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 9 Apr 2015 02:02:41 +0200 Subject: added custom interactive Lua interpreter for evaluating applause expressions * implements Stream:play() using Jack as the audio backend --- Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3