summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2013-04-10 21:33:13 +0100
committerRichard Maw <richard.maw@gmail.com>2013-04-11 21:15:23 +0100
commitc660c085ad26a8d215f8648fe96fc80c8086ab6f (patch)
tree9b18f3df67fd47d7452b1d03a3b07e7a0fde36ad
parent07e387c40b128e4d0aec3f3ba2291508112b3dd6 (diff)
downloadbinding-lua-from-c-c660c085ad26a8d215f8648fe96fc80c8086ab6f.tar.bz2
Makefile: allow compiling hello with luajit
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 450d3f5..2c753f8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,10 @@ CC = gcc
OBJS = hello.o
BINS = hello
+CFLAGS = `pkg-config --cflags luajit`
+LDLIBS = `pkg-config --libs-only-l luajit`
+LDFLAGS = `pkg-config --libs-only-L luajit`
+
all: $(BINS)
hello: $(OBJS)