Makefile 655 B

123456789101112131415161718192021222324252627
  1. CSC=csc -R r7rs
  2. INSTALL_PATH=/usr/local
  3. all: cmt
  4. cmt: cmt.scm macduffie.cipher.so
  5. $(CSC) -X macduffie.queue.so -X macduffie.cipher.so cmt.scm -o cmt
  6. macduffie.cipher.so: cipher.sld macduffie.queue.so
  7. $(CSC) -X macduffie.queue.so -library cipher.sld -o macduffie.cipher.so
  8. macduffie.queue.so: queue.sld
  9. $(CSC) -library queue.sld -o macduffie.queue.so
  10. install: cmt
  11. cp macduffie.cipher.so macduffie.queue.so $(INSTALL_PATH)/lib/chicken/8/
  12. cp cmt $(INSTALL_PATH)/bin/
  13. uninstall:
  14. rm -f $(INSTALL_PATH)/lib/chicken/8/macduffie.cipher.so
  15. rm -f $(INSTALL_PATH)/lib/chicken/8/macduffie.queue.so
  16. rm -f $(INSTALL_PATH)/bin/cmt
  17. clean:
  18. rm -f *.so cmt