From: jsancho Date: Sun, 18 Oct 2009 21:59:49 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=4fe9bd9e78b0e3cee1133da2abcb05bc98322b31;p=gacela.git --- diff --git a/Makefile b/Makefile index b777b4a..d0cbb68 100644 --- a/Makefile +++ b/Makefile @@ -9,11 +9,11 @@ OBJ = gacela.o gacela_misc.o gacela_SDL.o gacela_GL.o gacela_FTGL.o \ GCL_OBJ = $(OBJ:%.o=\"%.o\") %.o: %.lisp - $(LISP) -eval "(progn (setq compiler::*cc* (concatenate 'string compiler::*cc* \"$(INC)\")) (compile-file \"$<\" :system-p t))" -batch + $(LISP) -eval "(progn (load \"gacela_make.lisp\") (compile-gfile \"$<\" :include \"$(INC)\"))" -batch all: $(OBJ) $(LISP) -eval "(compiler::link '($(GCL_OBJ)) \"gacela\" \"\" \"$(LIBS)\")" -batch clean: - rm $(OBJ) gacela + rm -f $(OBJ) gacela diff --git a/gacela_make.lisp b/gacela_make.lisp index 99eacf5..a6950ef 100755 --- a/gacela_make.lisp +++ b/gacela_make.lisp @@ -14,12 +14,10 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with this program. If not, see . -(setq compiler::*cc* (concatenate 'string - compiler::*cc* - "-I/usr/include/FTGL -I/usr/include/freetype2")) - -(defmacro compile-gfile (file-name) - `(compile-file ,file-name :system-p t)) +(defmacro compile-gfile (file-name &key include) + `(progn + (setq compiler::*cc* (concatenate 'string compiler::*cc* ,include " ")) + (compile-file ,file-name :system-p t))) (defun compile-gacela () (compile-gfile "gacela.lisp")