pss-total/build.ninja

86 lines
2.4 KiB
Text
Raw Normal View History

2024-05-24 21:54:17 +00:00
## Generated by ngen
## Do not modify by hand
builddir = build
rule mkdir
command = mkdir -p $out
description = Creating directory $out
rule regen_ninjafile
command = ngen -c $in -o $out
generator = 1
description = Regenerating $out
rule regen_compile_commands
command = ngen -c $in --write-compile-commands $out
description = Regenerating $out
build $builddir: mkdir
build $builddir/compile_commands.json: regen_compile_commands ngen.toml || $builddir
pool = console
build build.ninja: regen_ninjafile ngen.toml || $builddir/compile_commands.json
pool = console
2024-05-24 23:44:00 +00:00
# BEGIN TARGET main
rule cc_main
deps = gcc
depfile = $dep
command = cc -I. -MD -MF $dep -o $out -c $in
description = Building $in -> $out
rule link_main
command = cc -o $out $in
description = Linking $out
build $builddir/main/obj: mkdir
build $builddir/main/dep: mkdir
build $builddir/main/obj/src-main.c.o: cc_main src/main.c
dep = $builddir/main/dep/src-main.c.o.d
build $builddir/main/pss-total-waybar: link_main $builddir/main/obj/src-main.c.o | || $builddir/main/obj $builddir/main/dep
build main: phony $builddir/main/pss-total-waybar
# END TARGET main
2024-05-24 21:54:17 +00:00
# BEGIN TARGET debug
rule cc_debug
deps = gcc
depfile = $dep
command = cc -I. -fsanitize=address -O0 -g -MD -MF $dep -o $out -c $in
description = Building $in -> $out
rule link_debug
command = cc -fsanitize=address -o $out $in
description = Linking $out
build $builddir/debug/obj: mkdir
build $builddir/debug/dep: mkdir
build $builddir/debug/obj/src-main.c.o: cc_debug src/main.c
dep = $builddir/debug/dep/src-main.c.o.d
2024-05-24 23:44:00 +00:00
build $builddir/debug/pss-total-waybar: link_debug $builddir/debug/obj/src-main.c.o | || $builddir/debug/obj $builddir/debug/dep
build debug: phony $builddir/debug/pss-total-waybar
2024-05-24 21:54:17 +00:00
# END TARGET debug
# BEGIN TARGET release
rule cc_release
deps = gcc
depfile = $dep
command = cc -I. -flto -O2 -MD -MF $dep -o $out -c $in
description = Building $in -> $out
rule link_release
command = cc -flto -o $out $in
description = Linking $out
build $builddir/release/obj: mkdir
build $builddir/release/dep: mkdir
build $builddir/release/obj/src-main.c.o: cc_release src/main.c
dep = $builddir/release/dep/src-main.c.o.d
2024-05-24 23:44:00 +00:00
build $builddir/release/pss-total-waybar: link_release $builddir/release/obj/src-main.c.o | || $builddir/release/obj $builddir/release/dep
build release: phony $builddir/release/pss-total-waybar
2024-05-24 21:54:17 +00:00
# END TARGET release