mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-08 22:38:21 +01:00
4b671f4551
Conflicts in options.c were just due to independent small functions being close to each other. unix.c in mwild was broken, it wasn't using LUASOCKET_API. serial.c needed luaL_reg renamed, and to use LUASOCKET_API. makefile didn't respect standard DESTDIR and prefix makefile variables, and didn't allow LUAV variable to select lua version to build against. I've tested the top-level install-both target builds and installs against both lua5.1 and lua5.2, but not done further testing. Conflicts: README config gem/ltn012.tex makefile src/makefile src/options.c src/options.h src/tcp.c src/usocket.c
25 lines
426 B
Makefile
25 lines
426 B
Makefile
PLAT?= macosx
|
|
PLATS= macosx linux win32
|
|
|
|
#------
|
|
# Hopefully no need to change anything below this line
|
|
#
|
|
all: $(PLAT)
|
|
|
|
$(PLATS) none install install-unix local clean:
|
|
@cd src; $(MAKE) $@
|
|
|
|
test:
|
|
lua test/hello.lua
|
|
|
|
install-both:
|
|
touch src/*.c
|
|
@cd src; $(MAKE) $(PLAT) LUAV=5.1
|
|
@cd src; $(MAKE) install-unix LUAV=5.1
|
|
touch src/*.c
|
|
@cd src; $(MAKE) $(PLAT) LUAV=5.2
|
|
@cd src; $(MAKE) install-unix LUAV=5.2
|
|
|
|
.PHONY: test
|
|
|