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

13 lines
138 B

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