X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=gacela_make.lisp;h=a6950ef8ac1c6620143297e5f30f5c9433c0f134;hb=6a3d1ffb69036e6d4f1c239fd7d52f9bfc48d50c;hp=68bf06d1b5fd862326593a280a782b11b74bee0a;hpb=6b5631c92ca29a80af99d228b3fe346c5b5e8eee;p=gacela.git diff --git a/gacela_make.lisp b/gacela_make.lisp index 68bf06d..a6950ef 100755 --- a/gacela_make.lisp +++ b/gacela_make.lisp @@ -14,26 +14,29 @@ ;;; You should have received a copy of the GNU General Public License ;;; along with this program. If not, see . - -(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") + (compile-gfile "gacela_misc.lisp") (compile-gfile "gacela_SDL.lisp") (compile-gfile "gacela_GL.lisp") + (compile-gfile "gacela_FTGL.lisp") (compile-gfile "gacela_draw.lisp") + (compile-gfile "gacela_ttf.lisp") (compile-gfile "gacela_events.lisp") (compile-gfile "gacela_mobs.lisp") - (compile-gfile "gacela_widgets.lisp") - (compile-gfile "gacela_misc.lisp")) + (compile-gfile "gacela_widgets.lisp")) (defun link-gacela () (compiler::link - '("gacela.o" "gacela_SDL.o" "gacela_GL.o" "gacela_draw.o" "gacela_events.o" "gacela_mobs.o" "gacela_widgets.o" "gacela_misc.o") + '("gacela.o" "gacela_misc.o" "gacela_SDL.o" "gacela_GL.o" "gacela_FTGL.o" "gacela_draw.o" "gacela_ttf.o" "gacela_events.o" "gacela_mobs.o" "gacela_widgets.o") "gacela" "" - "-lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lGL -lGLU")) + "-lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lGL -lGLU -lftgl")) (defun build-gacela () (compile-gacela)