medfall

A super great game engine
Log | Files | Refs

commit 5c06e1f91c7b3a3b97f70e5b09cb2720ae2f21b7
parent fc3bfcbeff45adb8ccd453ce87d0465ccae2f53e
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jun 25 14:31:58 +0300

OpenBSD server take two

Diffstat:
scripts/gen_makefile.lua | 21++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/scripts/gen_makefile.lua b/scripts/gen_makefile.lua @@ -1,3 +1,11 @@ +local function copy( t ) + local res = { } + for k, v in pairs( t ) do + res[ k ] = v + end + return res +end + local configs = { [ "windows" ] = { bin_suffix = ".exe", @@ -56,12 +64,15 @@ local configs = { -- TODO: OSX } -configs[ "openbsd" ] = configs[ "linux" ] -configs[ "openbsd-debug" ] = configs[ "linux-debug" ] +configs[ "openbsd" ] = copy( configs[ "linux" ] ) +configs[ "openbsd" ].cxx = "-eg++" +configs[ "openbsd" ].ldflags = "-lm -lpthread -lexecinfo" + +configs[ "openbsd-debug" ] = copy( configs[ "linux-debug" ] ) + configs[ "openbsd-release" ] = { - ldflags = "-lm -lpthread -s", - cxxflags = configs.openbsd.cxxflags .. " -O2", - cxx = "eg++", + ldflags = "-s", + cxxflags = "-O2", } local function identify_host()