(Somewhat adapted) code and solutions from the book "Build Your Own Lisp" http://www.buildyourownlisp.com
 
 

13 lines
135 B

MPC_DIR := ../mpc
all: lispy
%: %.c
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -lm -o $@
.PHONY: clean
clean:
rm -rf lispy