forked from SanderMertens/bake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
34 lines (24 loc) · 805 Bytes
/
premake5.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
workspace "bake"
configurations { "debug", "release" }
location ("build")
configuration { "linux", "gmake" }
buildoptions { "-std=c99", "-fPIC", "-D_XOPEN_SOURCE=600"}
project "bake"
kind "ConsoleApp"
language "C"
targetdir "."
files { "include/*.h", "src/*.c", "util/include/*.h", "util/src/*.c", "util/include/posix/*.h", "util/src/posix/*.c"}
includedirs { ".", "util" }
objdir (".bake_cache")
defines { "BAKE_IMPL" }
configuration "debug"
defines { "DEBUG" }
symbols "On"
configuration "release"
defines { "NDEBUG" }
optimize "On"
filter { "system:macosx", "action:gmake"}
toolset "clang"
links { "dl", "pthread" }
filter { "system:linux", "action:gmake"}
links { "rt", "dl", "pthread", "m" }