projects/aports·blob master · refs

25 lines · 878 B

1--- ./Makefile.orig
2+++ ./Makefile
3@@ -7,19 +7,13 @@
4 # out this line when debugging.
5 OMIT_FRAME_POINTER = -fomit-frame-pointer
6
7-# Seach for lua .pc file
8-LUAPKG_CMD = $(shell pkg-config --list-all | grep Lua | awk 'FNR == 1 {print $$1}')
9-CFLAGS = -fPIC -O3 -Wall $(shell pkg-config "$(LUAPKG_CMD)" --cflags)
10-LFLAGS = -shared $(OMIT_FRAME_POINTER)
11-INSTALL_PATH = $(shell pkg-config "$(LUAPKG_CMD)" --variable=INSTALL_CMOD)
12-
13 ## If your system doesn't have pkg-config, comment out the previous
14 ## lines and uncomment and change the following ones according to your
15 ## building enviroment.
16
17-#CFLAGS = -I/usr/include/lua5.1/ -fPIC -O3 -Wall
18-#LFLAGS = -shared $(OMIT_FRAME_POINTER)
19-#INSTALL_PATH = /usr/lib/lua/5.1
20+CFLAGS = -I/usr/include/lua$(LUAVER)/ -fPIC -O3 -Wall
21+LFLAGS = -shared $(OMIT_FRAME_POINTER)
22+INSTALL_PATH = /usr/lib/lua/$(LUAVER)
23
24 all: $(LIBNAME)
25