From 6e6b301ceee052ffd4187d9024c09520e4378de3 Mon Sep 17 00:00:00 2001 From: William Ahern Date: Mon, 9 Sep 2013 13:59:31 -0700 Subject: -n update openssl modules to new build --- GNUmakefile | 283 ++++++++++++++++++++++++++++-------------------------------- 1 file changed, 133 insertions(+), 150 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index d484ff5..c895dd1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,163 +1,146 @@ -prefix = /usr/local -bindir = $(prefix)/bin -libdir = $(prefix)/lib -datadir = $(prefix)/share -includedir = $(prefix)/include -luainclude = -luapath = -luacpath = -LUAC = - -# backwards compatible install paths -ifneq ($(origin lua52include), undefined) -luainclude = $(lua52include) -endif +# non-recursive prologue +sp := $(sp).x +dirstack_$(sp) := $(d) +d := $(abspath $(lastword $(MAKEFILE_LIST))/..) -ifneq ($(origin lua52path), undefined) -luapath = $(lua52path) -endif +ifeq ($(origin GUARD_$(d)), undefined) +GUARD_$(d) := 1 -ifneq ($(origin lua52cpath), undefined) -luacpath = $(lua52cpath) -endif +# +# E N V I R O N M E N T C O N F I G U R A T I O N +# +include $(d)/../GNUmakefile -# call helper to derive our Lua paths -ENV = CC CPPFLAGS prefix bindir libdir datadir includedir \ - luainclude luapath luacpath LUAC -$(shell env $(foreach V, $(ENV), $(V)="$(call $(V))") ../mk/lua.path make > .config) -include .config +# +# C O M P I L A T I O N F L A G S +# +OS_$(d) = $(shell $(d)/../mk/vendor.os) +CC_$(d) = $(shell $(d)/../mk/vendor.cc) +LUAPATH_$(d) = $(shell env CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(" +# non-recursive epilogue +d := $(dirstack_$(sp)) +sp := $(basename $(sp)) -- cgit v1.2.3-59-g8ed1b