This repository has been archived on 2025-10-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive/example/makefile
nub31 f95bdc68e9 ...
2025-09-10 23:12:17 +02:00

19 lines
376 B
Makefile

CC = gcc
NUBC = ../src/compiler/NubLang.CLI/bin/Debug/net9.0/nubc
.build/out: .build/out.a
$(CC) -ffreestanding -g -o .build/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: .build/out
./.build/out
clean:
@rm -r .build 2>/dev/null || true
@rm out 2>/dev/null || true