mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-27 04:48:21 +01:00
link against static Lua library on PSP
This commit is contained in:
parent
69d4916a0f
commit
fe6d7ee9c6
15
src/makefile
15
src/makefile
@ -106,13 +106,18 @@ CDIR_solaris?=lib/lua/$(LUAV)
|
|||||||
LDIR_solaris?=share/lua/$(LUAV)
|
LDIR_solaris?=share/lua/$(LUAV)
|
||||||
|
|
||||||
# LUAINC_psp:
|
# LUAINC_psp:
|
||||||
# /usr/local/include/lua$(LUAV)
|
# LUALIB_psp:
|
||||||
# where lua headers are found for psp builds
|
# where lua headers and libraries are found for psp builds
|
||||||
LUAINC_psp_base?=/usr/local/pspdev/psp/include
|
ifeq ($(PLAT),psp)
|
||||||
LUAINC_psp?=$(LUAINC_psp_base)/lua/$(LUAV) $(LUAINC_psp_base)/lua$(LUAV)
|
PSP_PREFIX=$(shell psp-config -P)
|
||||||
|
endif
|
||||||
|
LUAINC_psp_base?=$(PSP_PREFIX)/include
|
||||||
|
LUAINC_psp?=$(LUAINC_psp_base)/lua$(LUAV)
|
||||||
LUAPREFIX_psp?=/usr/local/
|
LUAPREFIX_psp?=/usr/local/
|
||||||
CDIR_psp?=lib/lua/$(LUAV)
|
CDIR_psp?=lib/lua/$(LUAV)
|
||||||
LDIR_psp?=share/lua/$(LUAV)
|
LDIR_psp?=share/lua/$(LUAV)
|
||||||
|
LUALIB_psp_base?=$(PSP_PREFIX)/lib
|
||||||
|
LUALIB_psp=$(LUALIB_psp_base)/liblua$(LUAV).a
|
||||||
|
|
||||||
# prefix: /usr/local /usr /opt/local /sw
|
# prefix: /usr/local /usr /opt/local /sw
|
||||||
# the top of the default install tree
|
# the top of the default install tree
|
||||||
@ -284,7 +289,7 @@ CC_psp=psp-gcc
|
|||||||
DEF_psp=-DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN
|
DEF_psp=-DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN
|
||||||
CFLAGS_psp=$(LUAINC:%=-I%) $(PSPSDK:%=-I%)/include $(DEF) -Wall -Wshadow -Wextra \
|
CFLAGS_psp=$(LUAINC:%=-I%) $(PSPSDK:%=-I%)/include $(DEF) -Wall -Wshadow -Wextra \
|
||||||
-Wimplicit -O2 -ggdb3
|
-Wimplicit -O2 -ggdb3
|
||||||
LDFLAGS_psp=-O -static -o
|
LDFLAGS_psp=$(LUALIB) -O -static -o
|
||||||
LD_psp=psp-gcc
|
LD_psp=psp-gcc
|
||||||
SOCKET_psp=usocket.o
|
SOCKET_psp=usocket.o
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user