Skip to content

Commit f8f1db8

Browse files
committed
refresh
1 parent c08db55 commit f8f1db8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

darwin.makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
CC=gcc
2-
LDFLAGS=-bundle -undefined dynamic_lookup
1+
CC=gcc-9
2+
#LDFLAGS=-bundle -undefined dynamic_lookup
33
KARCH=m64

linux.makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
KARCH=l64
2-
CFLAGS+=-I/usr/include/lua5.1 -pthread
3-
LIBS=-llua5.1
2+
CFLAGS+=-pthread
3+
LIBS=/usr/local/openresty/luajit/lib/libluajit-5.1.so.2.1.0

makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CC=gcc
2-
CFLAGS=-DKXVER=3 -DLUA_COMPAT_MODULE=1 -fpic -I/usr/local/include/lua5.1
2+
CFLAGS=-DKXVER=3 -DLUA_COMPAT_MODULE=1 -fPIC -I/usr/local/include/luajit-2.0/
33
LDFLAGS=-shared
4-
LIBS=-L/usr/local/lib -llua
4+
LIBS=-L/usr/local/lib -lluajit -lpthread
55
OUTPUT=k.so
66

77
makefile=$(shell uname -s | tr A-Z a-z).makefile
@@ -12,4 +12,4 @@ k.o: k.c kx/k.h makefile $(makefile)
1212
kx/k.h kx/$(KARCH)/c.o makefile $(makefile):; sh kx.sh
1313

1414
clean:; rm -f k.so
15-
test: $(OUTPUT) test.lua makefile; lua test.lua
15+
test: $(OUTPUT) test.lua makefile; luajit test.lua

0 commit comments

Comments
 (0)