17 lines
316 B
Makefile
17 lines
316 B
Makefile
NUBC = ../compiler/NubLang.CLI/bin/Debug/net9.0/nubc
|
|
|
|
out: out.a
|
|
gcc -nostartfiles -o out x86_64.s out.a
|
|
rm out.a
|
|
|
|
out.a: $(NUBC) main.nub
|
|
$(NUBC) main.nub
|
|
|
|
.PHONY: $(NUBC)
|
|
$(NUBC):
|
|
dotnet build ../compiler/NubLang.CLI/NubLang.CLI.csproj
|
|
|
|
clean:
|
|
@rm -r .build 2>/dev/null || true
|
|
@rm out.a 2>/dev/null || true
|