CFLAGS = -I/usr/local/include -L/usr/local/lib default: shared cc $(CFLAGS) -o main main.c -L. -lparse-radio -lecl standalone: static cc $(CFLAGS) -o main main.c libparse-radio.a -lecl static: object ecl --eval "(unwind-protect (progn \ (ext:install-c-compiler) \ (c:build-static-library \"parse-radio\" \ :lisp-files (list \"parse-radio.o\") \ :init-name \"init_parse_radio\") \ ) (si:Quit))" shared: object ecl --eval "(unwind-protect (progn \ (ext:install-c-compiler) \ (c:build-shared-library \"parse-radio\" \ :lisp-files (list \"parse-radio.o\") \ :init-name \"init_parse_radio\") \ ) (si:Quit))" object: ecl --eval "(unwind-protect (progn \ (ext:install-c-compiler) \ (compile-file \"parse-radio.lisp\" :system-p t)) (si:Quit))" clean: rm -f parse-radio.o main libparse-radio.so libparse-radio.a