feat: setup git and build system
This commit is contained in:
commit
00b7db0b39
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
bin/
|
||||
build/
|
||||
Makefile
|
10
justfile
Normal file
10
justfile
Normal file
|
@ -0,0 +1,10 @@
|
|||
build:
|
||||
# BUILDING
|
||||
make
|
||||
|
||||
run:
|
||||
bin/DiceGui
|
||||
|
||||
configure:
|
||||
# CONFIGURING WITH PREMAKE
|
||||
premake5 gmake
|
21
premake5.lua
Normal file
21
premake5.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
workspace "DiceGui"
|
||||
configurations { "debug", "release" }
|
||||
location "."
|
||||
|
||||
project "Dice"
|
||||
kind "ConsoleApp"
|
||||
language "C"
|
||||
cdialect "c23"
|
||||
location "build/"
|
||||
files { "src/**.c" }
|
||||
links { "m", "stdc++" }
|
||||
buildoptions { "-Wall" }
|
||||
targetdir "bin/"
|
||||
filter "configurations:debug"
|
||||
defines { "DEBUG" }
|
||||
symbols "On"
|
||||
optimize "Off"
|
||||
filter "configurations:release"
|
||||
defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
symbols "Off"
|
Loading…
Reference in a new issue