Makefile 286 B

12345678910111213141516
  1. prefix=/usr/local
  2. exec_prefix=$(prefix)
  3. bindir=$(exec_prefix)/bin
  4. all: lcli
  5. lcli: interpreter.h interpreter.c lcli.c
  6. gcc -Wall -std=c99 interpreter.h interpreter.c lcli.c -o lcli -lreadline
  7. clean:
  8. rm -f lcli
  9. install:
  10. mkdir -p "$(DESTDIR)$(bindir)"
  11. mv lcli "$(DESTDIR)$(bindir)"