Working on repl, not fully working yet, read more

After a few hours struggling with the linker, I've got the main.c file
running correctly, with caveats:

- must be executed from out/
- only building on linux for the moment
- no tests written yet

I will write some CI jobs to see if the repl works eventually.
This commit is contained in:
2024-09-27 22:53:10 +10:00
parent c518960171
commit 3d1d3b3b77
6 changed files with 227 additions and 8 deletions

View File

@@ -1,22 +1,26 @@
#compiler settings
CC=gcc
CFLAGS+=-std=c17 -pedantic -Werror
LIBS=-lm
LIBS+=-lm
#directories
export TOY_SOURCEDIR=source
export TOY_OUTDIR=out
export TOY_OBJDIR=obj
#file names
export TOY_SOURCEFILES=$(wildcard $(TOY_SOURCEDIR)/*.c)
#targets
all: clean tests
@echo no targets ready
all: tests
.PHONY: source
source:
$(MAKE) -C source -k
.PHONY: repl
repl: source
$(MAKE) -C repl -k
.PHONY: tests
tests:
tests: clean
$(MAKE) -C tests -k
.PHONY: tests-gdb