From c291383ce26d975648ac110bf7c8ba04c65de116 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 26 Apr 2012 13:33:01 -0700 Subject: 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. --- makefile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 8e9e967..934485b 100644 --- a/makefile +++ b/makefile @@ -1,13 +1,23 @@ -PLAT?= macosx +# luasocket makefile +# +# see src/makefile for description of how to customize the build +# +# Targets: +# install install system independent support +# install-unix also install unix-only support +# install-both install both lua5.1 and lua5.2 socket support +# print print the build settings + +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) $@ + $(MAKE) -C src $@ + +print: + $(MAKE) -C src $@ test: lua test/hello.lua -- cgit v1.2.3-55-g6feb