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

Makefile 147B

12345678910111213
  1. MPC_DIR := ../mpc
  2. all: lispy
  3. %: %.c %.h
  4. cc -std=c11 -Wall -Wextra $@.c ${MPC_DIR}/mpc.c -ledit -lm -o $@
  5. .PHONY: clean
  6. clean:
  7. rm -rf lispy