cli improvements

This commit is contained in:
nub31
2025-08-18 17:38:51 +02:00
parent f80be58fed
commit 37dd110bb6
6 changed files with 62 additions and 105 deletions

View File

@@ -1,17 +1,18 @@
CC = clang
NUBC = ../src/compiler/NubLang.CLI/bin/Debug/net9.0/nubc
out: $(NUBC) main.nub
$(NUBC) main.nub
out: build/out.a
$(CC) -o out build/out.a
build/out.a: $(NUBC) src/main.nub
$(NUBC) src/main.nub
$(NUBC):
dotnet build ../src/compiler/NubLang.CLI/NubLang.CLI.csproj
run: out
out
./out
clean:
@rm -r build 2>/dev/null || true
@rm out 2>/dev/null || true
@rm out.a 2>/dev/null || true
@find . -name "*.o" -type f -delete
@find . -name "*.s" -type f -delete
@find . -name "*.ssa" -type f -delete