feat: usaco

This commit is contained in:
Barrett Ruth 2025-04-26 14:16:04 -04:00
parent 7795f9e52f
commit bf585a88f9
26 changed files with 770 additions and 84 deletions

27
usaco/bronze/makefile Normal file
View file

@ -0,0 +1,27 @@
.PHONY: run debug clean setup init
SRC = $(word 2,$(MAKECMDGOALS))
.SILENT:
run:
sh scripts/run.sh $(SRC)
debug:
sh scripts/debug.sh $(SRC)
clean:
rm -rf build/*
setup:
test -d build || mkdir -p build
test -d io || mkdir -p io
test -d scripts || mkdir -p scripts
test -f compile_flags.txt || cp $(HOME)/.config/cp-template/compile_flags.txt .
test -f .clang-format || cp $(HOME)/.config/cp-template/.clang-format .
init:
make setup
%:
@: