(Somewhat adapted) code and solutions from the book "Build Your Own Lisp" http://www.buildyourownlisp.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
147 B

  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