commit 00b7db0b39a8d4cc6ef5e8a30cbd373cd3b76730 Author: Sara Date: Mon Sep 15 19:35:36 2025 +0200 feat: setup git and build system diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d294ec1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +bin/ +build/ +Makefile diff --git a/justfile b/justfile new file mode 100644 index 0000000..f412b58 --- /dev/null +++ b/justfile @@ -0,0 +1,10 @@ +build: + # BUILDING + make + +run: + bin/DiceGui + +configure: + # CONFIGURING WITH PREMAKE + premake5 gmake diff --git a/premake5.lua b/premake5.lua new file mode 100644 index 0000000..0aee051 --- /dev/null +++ b/premake5.lua @@ -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"