aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2012-04-26 13:33:01 -0700
committerSam Roberts <vieuxtech@gmail.com>2012-05-08 10:51:56 -0700
commitc291383ce26d975648ac110bf7c8ba04c65de116 (patch)
tree1f3c85d1294e154fe9b0850a8ba138e302f65b70 /makefile
parent04be61f88df2277fd0d2010b2deb851d9b081923 (diff)
downloadluasocket-c291383ce26d975648ac110bf7c8ba04c65de116.tar.gz
luasocket-c291383ce26d975648ac110bf7c8ba04c65de116.tar.bz2
luasocket-c291383ce26d975648ac110bf7c8ba04c65de116.zip
Rework makefiles to simplify setting and choosing build options.
Includes documentation for common build settings, reasonable defaults, and ability to set common build options in the environment.
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/makefile b/makefile
index 8e9e967..934485b 100644
--- a/makefile
+++ b/makefile
@@ -1,13 +1,23 @@
1PLAT?= macosx 1# luasocket makefile
2#
3# see src/makefile for description of how to customize the build
4#
5# Targets:
6# install install system independent support
7# install-unix also install unix-only support
8# install-both install both lua5.1 and lua5.2 socket support
9# print print the build settings
10
11PLAT?= linux
2PLATS= macosx linux win32 12PLATS= macosx linux win32
3 13
4#------
5# Hopefully no need to change anything below this line
6#
7all: $(PLAT) 14all: $(PLAT)
8 15
9$(PLATS) none install install-unix local clean: 16$(PLATS) none install install-unix local clean:
10 @cd src; $(MAKE) $@ 17 $(MAKE) -C src $@
18
19print:
20 $(MAKE) -C src $@
11 21
12test: 22test:
13 lua test/hello.lua 23 lua test/hello.lua