mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-27 04:48:21 +01:00
c8b7cfbfb4
Defaults to Linux and lua5.1, and for all platforms, defaults to the most common locations.
25 lines
425 B
Makefile
25 lines
425 B
Makefile
PLAT?= linux
|
|
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
|
|
|