| 1 | hello.exe: hello.c hello-lisp.a |
| 2 | $(CC) `ecl-config --cflags` -o $@ hello.c hello-lisp.a \ |
| 3 | `ecl-config --ldflags` -lecl |
| 4 | |
| 5 | hello-lisp.a: hello-lisp.lisp |
| 6 | ecl -norc \ |
| 7 | -eval '(require :asdf)' \ |
| 8 | -eval '(push "./" asdf:*central-registry*)' \ |
| 9 | -eval '(asdf:make-build :hello-lisp :type :static-library :move-here "./" :init-name "init_lib_HELLO_LISP")' \ |
| 10 | -eval '(quit)' |
| 11 | |
| 12 | clean: |
| 13 | -rm -f hello-lisp.a hello.exe |