feat: implement M1 Ferro frontend

This commit is contained in:
2026-08-16 07:10:53 +09:00
parent 990068f424
commit 005056a5ea
32 changed files with 986 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
CC ?= cc
CFLAGS ?= -O2 -Wall -Wextra -std=c89
CPPFLAGS ?= -Isrc
SRC = src/arena.c src/diag.c src/lexer.c src/ast.c src/parser.c src/driver.c
OBJ = $(SRC:.c=.o)
.PHONY: all clean test dos-build
all: fec
fec: $(OBJ)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ)
src/%.o: src/%.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
test: fec
@./tests/run-tests.sh
dos-build:
@echo "Run build-dos.bat inside FreeDOS/Open Watcom."
clean:
$(RM) $(OBJ) fec