Update build system. Now libraries are produced as build artifacts.
There are currently 3 ways to build:
* Easy: `./configure; make`
* Simple: use Bazel
* Portable: use premake5 to generate XCode / MSVS projects
diff --git a/premake5.lua b/premake5.lua
new file mode 100644
index 0000000..b62abcd
--- /dev/null
+++ b/premake5.lua
@@ -0,0 +1,47 @@
+-- A solution contains projects, and defines the available configurations
+solution "brotli"
+configurations { "Release", "Debug" }
+platforms { "Static", "Shared" }
+targetdir "bin"
+location "build"
+flags "RelativeLinks"
+
+filter "configurations:Release"
+ optimize "Speed"
+ flags { "StaticRuntime" }
+
+filter "configurations:Debug"
+ flags { "Symbols" }
+
+filter { "platforms:Static" }
+ kind "StaticLib"
+
+filter { "platforms:Shared" }
+ kind "SharedLib"
+
+configuration { "gmake" }
+ buildoptions { "-Wall -fno-omit-frame-pointer" }
+ location "build/gmake"
+
+configuration { "macosx" }
+ defines { "DOS_MACOSX" }
+
+project "brotli_common"
+ language "C"
+ files { "common/**.h", "common/**.c" }
+
+project "brotli_dec"
+ language "C"
+ files { "dec/**.h", "dec/**.c" }
+ links "brotli_common"
+
+project "brotli_enc"
+ language "C"
+ files { "enc/**.h", "enc/**.c" }
+ links "brotli_common"
+
+project "bro"
+ kind "ConsoleApp"
+ language "C++"
+ files { "tools/bro.cc" }
+ links { "brotli_common", "brotli_dec", "brotli_enc" }