luasocket/makefile
Sam Roberts c8b7cfbfb4 Tweaked makefiles to contain only common build settings.
Defaults to Linux and lua5.1, and for all platforms, defaults to the
most common locations.
2012-04-26 13:35:17 -07:00

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