mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
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:
18
makefile
18
makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user