From 35c768d6dbc22d731b9f2626b783b91530ea651f Mon Sep 17 00:00:00 2001 From: jsancho Date: Wed, 14 Oct 2009 23:13:09 +0000 Subject: [PATCH] --- Makefile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 06f3666..b777b4a 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,18 @@ LISP = gcl -LIBS = "-lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lGL -lGLU -lftgl" +INC = -I/usr/include/FTGL -I/usr/include/freetype2 +LIBS = -lSDL -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_gfx -lGL -lGLU -lftgl -OBJ = "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" +OBJ = 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 -OBJ = "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" +GCL_OBJ = $(OBJ:%.o=\"%.o\") %.o: %.lisp - $(LISP) -compile $< -system-p + $(LISP) -eval "(progn (setq compiler::*cc* (concatenate 'string compiler::*cc* \"$(INC)\")) (compile-file \"$<\" :system-p t))" -batch all: $(OBJ) - $(LISP) -eval "(compiler::link '($(OBJ)) \"gacela\" \"\" $(LIBS))" + $(LISP) -eval "(compiler::link '($(GCL_OBJ)) \"gacela\" \"\" \"$(LIBS)\")" -batch clean: rm $(OBJ) gacela -- 2.39.5