Files
Hermes Agent d555071406 fix: stabilize learning path, reliability and legacy Windows builds
Unify beginner syntax while preserving compatibility, repair ownership and parser guards, add verified distribution tooling and VC6 Windows 98 build inputs, and clarify documentation and release status. Preserve DOS build-input line endings and exclude generated binaries/caches.
2026-10-20 22:40:19 +00:00

30 lines
609 B
Makefile

CC = gcc
CFLAGS = -std=c89 -pedantic-errors -Werror=implicit-function-declaration -O0
LDFLAGS = -lm
ifeq ($(OS),Windows_NT)
LDFLAGS += -Wl,--stack,16777216
endif
all: claro claro.exe
claro: src/claro.c
$(CC) $(CFLAGS) -o claro src/claro.c $(LDFLAGS)
claro.exe: src/claro.c
$(CC) $(CFLAGS) -o claro.exe src/claro.c $(LDFLAGS)
test: claro
./claro test
check: claro
./claro check examples/quiz.claro
./claro check lessons/01_hello.claro
./claro check lessons/03_variables.claro
./claro check lessons/08_functions.claro
fmt: claro
./claro fmt tests/22_fmt_input.claro
clean:
rm -f claro claro.exe