diff --git a/justfile b/justfile index 9d7ec8f..a5db2ff 100644 --- a/justfile +++ b/justfile @@ -27,11 +27,14 @@ blocks_include := if os() == "macos" { "" } else { "-I" + blocks_dir / "BlocksRu blocks_src := if os() == "macos" { "" } else { blocks_dir / "BlocksRuntime" / "runtime.c" + " " + blocks_dir / "BlocksRuntime" / "data.c" } # cflags +winflags := if os() == "windows" { "" } else { "" } macflags := if os() == "macos" { "-x objective-c -lobjc -framework Foundation -framework Cocoa -framework CoreFoundation -framework CoreGraphics -framework QuartzCore -framework Metal -framework MetalKit"} else { "" } +lnxflags := if os() == "linux" { "" } else { "" } +allflags := macflags + winflags + lnxflags csrc := "src/main.c" + " " + blocks_src cinc := "-Isrc -Ithirdparty " + blocks_include -cflags := "-std=c23 -fblocks -g " + macflags + " " + cinc +cflags := "-std=c23 -fblocks -g " + allflags + " " + cinc