This commit is contained in:
nub31
2025-08-18 16:56:20 +02:00
parent 860e1fd0e4
commit f80be58fed
5 changed files with 73 additions and 153 deletions

View File

@@ -1,11 +1,17 @@
CFLAGS = -g
NUBC = ../src/compiler/NubLang.CLI/bin/Debug/net9.0/nubc
bin/out: src/main.nub
dotnet build ../src/compiler/NubLang.CLI/NubLang.CLI.csproj -c Release
../src/compiler/NubLang.CLI/bin/Release/net9.0/nubc src/main.nub
out: $(NUBC) main.nub
$(NUBC) main.nub
run: bin/out
bin/out
$(NUBC):
dotnet build ../src/compiler/NubLang.CLI/NubLang.CLI.csproj
run: out
out
clean:
rm -r bin-int bin
@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