
headers := syntax.h parser.h linux.h datum.h stack.h
modules := program evaluate tree tokenizer memory

objects := $(modules:=.o)
sources := $(modules:=.c)
name := test

cflags := -fno-stack-protector -fno-asynchronous-unwind-tables -O3 -g

%.o: %.c $(headers)
	gcc $(cflags) -c $<

all: $(objects)
	nasm -felf64 interface.asm
	ld -s -o $(name) $(objects) interface.o

clean:
	rm *.o

