mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-04-08 17:56:50 +02:00
only compile platform-specific code for PSP
This commit is contained in:
parent
a1bbc693c9
commit
e2499fef6d
13
src/makefile
13
src/makefile
@ -323,12 +323,17 @@ LD=$(LD_$(PLAT))
|
|||||||
LUAINC= $(LUAINC_$(PLAT))
|
LUAINC= $(LUAINC_$(PLAT))
|
||||||
LUALIB= $(LUALIB_$(PLAT))
|
LUALIB= $(LUALIB_$(PLAT))
|
||||||
|
|
||||||
|
#------
|
||||||
|
# Platform-specific modules
|
||||||
|
#
|
||||||
|
PLATFORM_OBJS_psp= \
|
||||||
|
netdb-compat.$(O) \
|
||||||
|
getaddrinfo.$(O)
|
||||||
|
|
||||||
#------
|
#------
|
||||||
# Modules belonging to socket-core
|
# Modules belonging to socket-core
|
||||||
#
|
#
|
||||||
SOCKET_OBJS= \
|
SOCKET_OBJS= \
|
||||||
netdb-compat.$(O) \
|
|
||||||
getaddrinfo.$(O) \
|
|
||||||
luasocket.$(O) \
|
luasocket.$(O) \
|
||||||
timeout.$(O) \
|
timeout.$(O) \
|
||||||
buffer.$(O) \
|
buffer.$(O) \
|
||||||
@ -432,7 +437,7 @@ none:
|
|||||||
|
|
||||||
all: $(SOCKET_SO) $(MIME_SO)
|
all: $(SOCKET_SO) $(MIME_SO)
|
||||||
|
|
||||||
$(SOCKET_SO): $(SOCKET_OBJS)
|
$(SOCKET_SO): $(PLATFORM_OBJS_$(PLAT)) $(SOCKET_OBJS)
|
||||||
$(LD) $(SOCKET_OBJS) $(LDFLAGS)$@
|
$(LD) $(SOCKET_OBJS) $(LDFLAGS)$@
|
||||||
|
|
||||||
$(MIME_SO): $(MIME_OBJS)
|
$(MIME_SO): $(MIME_OBJS)
|
||||||
@ -464,7 +469,7 @@ local:
|
|||||||
$(MAKE) install INSTALL_TOP_CDIR=.. INSTALL_TOP_LDIR=..
|
$(MAKE) install INSTALL_TOP_CDIR=.. INSTALL_TOP_LDIR=..
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(SOCKET_SO) $(SOCKET_OBJS) $(SERIAL_OBJS)
|
rm -f $(SOCKET_SO) $(PLATFORM_OBJS_$(PLAT)) $(SOCKET_OBJS) $(SERIAL_OBJS)
|
||||||
rm -f $(MIME_SO) $(UNIX_SO) $(SERIAL_SO) $(MIME_OBJS) $(UNIX_OBJS)
|
rm -f $(MIME_SO) $(UNIX_SO) $(SERIAL_SO) $(MIME_OBJS) $(UNIX_OBJS)
|
||||||
|
|
||||||
.PHONY: all $(PLATS) default clean echo none
|
.PHONY: all $(PLATS) default clean echo none
|
||||||
|
Loading…
x
Reference in New Issue
Block a user